From 57502e9b0b5f954fab5f27fa17a0c7a974376480 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 18 Mar 2024 07:28:22 +0000 Subject: [PATCH] CodeGen from PR 27757 in Azure/azure-rest-api-specs Merge 6e4e3c209ba01c42531fc7ad746b07b18adb7eb7 into 7da91b7b55e8f6e689a2edceaa8f7b05e8aa3139 --- common/config/rush/pnpm-lock.yaml | 764 +- .../arm-apimanagement/CHANGELOG.md | 665 +- sdk/apimanagement/arm-apimanagement/LICENSE | 2 +- sdk/apimanagement/arm-apimanagement/README.md | 2 +- .../arm-apimanagement/_meta.json | 8 +- .../arm-apimanagement/package.json | 28 +- .../review/arm-apimanagement.api.md | 2898 +- .../src/apiManagementClient.ts | 275 +- .../arm-apimanagement/src/lroImpl.ts | 6 +- .../arm-apimanagement/src/models/index.ts | 10590 +++++--- .../arm-apimanagement/src/models/mappers.ts | 22550 +++++++++------- .../src/models/parameters.ts | 1246 +- .../src/operations/allPolicies.ts | 201 + .../arm-apimanagement/src/operations/api.ts | 329 +- .../src/operations/apiDiagnostic.ts | 150 +- .../src/operations/apiExport.ts | 23 +- .../src/operations/apiIssue.ts | 152 +- .../src/operations/apiIssueAttachment.ts | 129 +- .../src/operations/apiIssueComment.ts | 129 +- .../src/operations/apiManagementGateway.ts | 728 + .../src/operations/apiManagementOperations.ts | 32 +- .../src/operations/apiManagementService.ts | 544 +- .../operations/apiManagementServiceSkus.ts | 51 +- .../src/operations/apiManagementSkus.ts | 37 +- .../src/operations/apiOperation.ts | 150 +- .../src/operations/apiOperationPolicy.ts | 95 +- .../src/operations/apiPolicy.ts | 91 +- .../src/operations/apiProduct.ts | 53 +- .../src/operations/apiRelease.ts | 148 +- .../src/operations/apiRevision.ts | 53 +- .../src/operations/apiSchema.ts | 158 +- .../src/operations/apiTagDescription.ts | 129 +- .../src/operations/apiVersionSet.ts | 148 +- .../src/operations/apiWiki.ts | 95 +- .../src/operations/apiWikis.ts | 51 +- .../src/operations/authorization.ts | 133 +- .../operations/authorizationAccessPolicy.ts | 119 +- .../src/operations/authorizationLoginLinks.ts | 21 +- .../src/operations/authorizationProvider.ts | 110 +- .../src/operations/authorizationServer.ts | 163 +- .../src/operations/backend.ts | 165 +- .../arm-apimanagement/src/operations/cache.ts | 146 +- .../src/operations/certificate.ts | 144 +- .../src/operations/contentItem.ts | 127 +- .../src/operations/contentType.ts | 106 +- .../src/operations/delegationSettings.ts | 93 +- .../src/operations/deletedServices.ts | 96 +- .../src/operations/diagnostic.ts | 148 +- .../src/operations/documentation.ts | 148 +- .../src/operations/emailTemplate.ts | 148 +- .../src/operations/gateway.ts | 342 +- .../src/operations/gatewayApi.ts | 106 +- .../operations/gatewayCertificateAuthority.ts | 132 +- .../gatewayHostnameConfiguration.ts | 128 +- .../src/operations/globalSchema.ts | 156 +- .../src/operations/graphQLApiResolver.ts | 150 +- .../operations/graphQLApiResolverPolicy.ts | 129 +- .../arm-apimanagement/src/operations/group.ts | 146 +- .../src/operations/groupUser.ts | 102 +- .../src/operations/identityProvider.ts | 167 +- .../arm-apimanagement/src/operations/index.ts | 41 +- .../arm-apimanagement/src/operations/issue.ts | 70 +- .../src/operations/logger.ts | 148 +- .../src/operations/namedValue.ts | 279 +- .../src/operations/networkStatus.ts | 44 +- .../src/operations/notification.ts | 87 +- .../operations/notificationRecipientEmail.ts | 71 +- .../operations/notificationRecipientUser.ts | 71 +- .../src/operations/openIdConnectProvider.ts | 163 +- .../src/operations/operationOperations.ts | 55 +- .../outboundNetworkDependenciesEndpoints.ts | 22 +- .../src/operations/policy.ts | 224 +- .../src/operations/policyDescription.ts | 19 +- .../src/operations/policyFragment.ts | 278 +- .../src/operations/policyRestriction.ts | 454 + .../policyRestrictionValidations.ts | 161 + .../src/operations/portalConfig.ts | 232 +- .../src/operations/portalRevision.ts | 195 +- .../src/operations/portalSettings.ts | 19 +- .../privateEndpointConnectionOperations.ts | 183 +- .../src/operations/product.ts | 201 +- .../src/operations/productApi.ts | 102 +- .../src/operations/productApiLink.ts | 375 + .../src/operations/productGroup.ts | 102 +- .../src/operations/productGroupLink.ts | 375 + .../src/operations/productPolicy.ts | 238 +- .../src/operations/productSubscriptions.ts | 53 +- .../src/operations/productWiki.ts | 97 +- .../src/operations/productWikis.ts | 53 +- .../src/operations/quotaByCounterKeys.ts | 38 +- .../src/operations/quotaByPeriodKeys.ts | 42 +- .../src/operations/region.ts | 51 +- .../src/operations/reports.ts | 410 +- .../src/operations/signInSettings.ts | 76 +- .../src/operations/signUpSettings.ts | 76 +- .../src/operations/subscription.ts | 193 +- .../arm-apimanagement/src/operations/tag.ts | 507 +- .../src/operations/tagApiLink.ts | 368 + .../src/operations/tagOperationLink.ts | 375 + .../src/operations/tagProductLink.ts | 375 + .../src/operations/tagResource.ts | 53 +- .../src/operations/tenantAccess.ts | 180 +- .../src/operations/tenantAccessGit.ts | 32 +- .../src/operations/tenantConfiguration.ts | 177 +- .../src/operations/tenantSettings.ts | 70 +- .../arm-apimanagement/src/operations/user.ts | 292 +- .../operations/userConfirmationPassword.ts | 15 +- .../src/operations/userGroup.ts | 53 +- .../src/operations/userIdentities.ts | 51 +- .../src/operations/userSubscription.ts | 70 +- .../src/operations/workspace.ts | 460 + .../src/operations/workspaceApi.ts | 610 + .../src/operations/workspaceApiExport.ts | 99 + .../src/operations/workspaceApiOperation.ts | 570 + .../operations/workspaceApiOperationPolicy.ts | 542 + .../src/operations/workspaceApiPolicy.ts | 473 + .../src/operations/workspaceApiRelease.ts | 564 + .../src/operations/workspaceApiRevision.ts | 239 + .../src/operations/workspaceApiSchema.ts | 578 + .../src/operations/workspaceApiVersionSet.ts | 514 + .../src/operations/workspaceGlobalSchema.ts | 540 + .../src/operations/workspaceGroup.ts | 510 + .../src/operations/workspaceGroupUser.ts | 396 + .../src/operations/workspaceNamedValue.ts | 901 + .../src/operations/workspaceNotification.ts | 326 + .../workspaceNotificationRecipientEmail.ts | 258 + .../workspaceNotificationRecipientUser.ts | 258 + .../src/operations/workspacePolicy.ts | 437 + .../src/operations/workspacePolicyFragment.ts | 579 + .../src/operations/workspaceProduct.ts | 511 + .../src/operations/workspaceProductApiLink.ts | 427 + .../operations/workspaceProductGroupLink.ts | 429 + .../src/operations/workspaceProductPolicy.ts | 325 + .../src/operations/workspaceSubscription.ts | 650 + .../src/operations/workspaceTag.ts | 503 + .../src/operations/workspaceTagApiLink.ts | 420 + .../operations/workspaceTagOperationLink.ts | 422 + .../src/operations/workspaceTagProductLink.ts | 420 + .../src/operationsInterfaces/allPolicies.ts | 29 + .../src/operationsInterfaces/api.ts | 42 +- .../src/operationsInterfaces/apiDiagnostic.ts | 14 +- .../src/operationsInterfaces/apiExport.ts | 6 +- .../src/operationsInterfaces/apiIssue.ts | 14 +- .../apiIssueAttachment.ts | 12 +- .../operationsInterfaces/apiIssueComment.ts | 12 +- .../apiManagementGateway.ts | 147 + .../apiManagementOperations.ts | 4 +- .../apiManagementService.ts | 46 +- .../apiManagementServiceSkus.ts | 4 +- .../operationsInterfaces/apiManagementSkus.ts | 4 +- .../src/operationsInterfaces/apiOperation.ts | 14 +- .../apiOperationPolicy.ts | 12 +- .../src/operationsInterfaces/apiPolicy.ts | 12 +- .../src/operationsInterfaces/apiProduct.ts | 2 +- .../src/operationsInterfaces/apiRelease.ts | 14 +- .../src/operationsInterfaces/apiRevision.ts | 4 +- .../src/operationsInterfaces/apiSchema.ts | 14 +- .../operationsInterfaces/apiTagDescription.ts | 12 +- .../src/operationsInterfaces/apiVersionSet.ts | 14 +- .../src/operationsInterfaces/apiWiki.ts | 12 +- .../src/operationsInterfaces/apiWikis.ts | 2 +- .../src/operationsInterfaces/authorization.ts | 12 +- .../authorizationAccessPolicy.ts | 10 +- .../authorizationLoginLinks.ts | 4 +- .../authorizationProvider.ts | 10 +- .../authorizationServer.ts | 16 +- .../src/operationsInterfaces/backend.ts | 16 +- .../src/operationsInterfaces/cache.ts | 14 +- .../src/operationsInterfaces/certificate.ts | 14 +- .../src/operationsInterfaces/contentItem.ts | 12 +- .../src/operationsInterfaces/contentType.ts | 10 +- .../delegationSettings.ts | 12 +- .../operationsInterfaces/deletedServices.ts | 10 +- .../src/operationsInterfaces/diagnostic.ts | 14 +- .../src/operationsInterfaces/documentation.ts | 14 +- .../src/operationsInterfaces/emailTemplate.ts | 14 +- .../src/operationsInterfaces/gateway.ts | 73 +- .../src/operationsInterfaces/gatewayApi.ts | 10 +- .../gatewayCertificateAuthority.ts | 12 +- .../gatewayHostnameConfiguration.ts | 12 +- .../src/operationsInterfaces/globalSchema.ts | 14 +- .../graphQLApiResolver.ts | 14 +- .../graphQLApiResolverPolicy.ts | 12 +- .../src/operationsInterfaces/group.ts | 14 +- .../src/operationsInterfaces/groupUser.ts | 10 +- .../operationsInterfaces/identityProvider.ts | 16 +- .../src/operationsInterfaces/index.ts | 41 +- .../src/operationsInterfaces/issue.ts | 6 +- .../src/operationsInterfaces/logger.ts | 14 +- .../src/operationsInterfaces/namedValue.ts | 24 +- .../src/operationsInterfaces/networkStatus.ts | 6 +- .../src/operationsInterfaces/notification.ts | 8 +- .../notificationRecipientEmail.ts | 10 +- .../notificationRecipientUser.ts | 10 +- .../openIdConnectProvider.ts | 16 +- .../operationOperations.ts | 4 +- .../outboundNetworkDependenciesEndpoints.ts | 4 +- .../src/operationsInterfaces/policy.ts | 19 +- .../operationsInterfaces/policyDescription.ts | 4 +- .../operationsInterfaces/policyFragment.ts | 23 +- .../operationsInterfaces/policyRestriction.ts | 111 + .../policyRestrictionValidations.ts | 44 + .../src/operationsInterfaces/portalConfig.ts | 19 +- .../operationsInterfaces/portalRevision.ts | 16 +- .../operationsInterfaces/portalSettings.ts | 4 +- .../privateEndpointConnectionOperations.ts | 18 +- .../src/operationsInterfaces/product.ts | 16 +- .../src/operationsInterfaces/productApi.ts | 10 +- .../operationsInterfaces/productApiLink.ts | 86 + .../src/operationsInterfaces/productGroup.ts | 10 +- .../operationsInterfaces/productGroupLink.ts | 86 + .../src/operationsInterfaces/productPolicy.ts | 19 +- .../productSubscriptions.ts | 4 +- .../src/operationsInterfaces/productWiki.ts | 12 +- .../src/operationsInterfaces/productWikis.ts | 2 +- .../quotaByCounterKeys.ts | 6 +- .../operationsInterfaces/quotaByPeriodKeys.ts | 6 +- .../src/operationsInterfaces/region.ts | 2 +- .../src/operationsInterfaces/reports.ts | 18 +- .../operationsInterfaces/signInSettings.ts | 10 +- .../operationsInterfaces/signUpSettings.ts | 10 +- .../src/operationsInterfaces/subscription.ts | 20 +- .../src/operationsInterfaces/tag.ts | 44 +- .../src/operationsInterfaces/tagApiLink.ts | 86 + .../operationsInterfaces/tagOperationLink.ts | 86 + .../operationsInterfaces/tagProductLink.ts | 86 + .../src/operationsInterfaces/tagResource.ts | 4 +- .../src/operationsInterfaces/tenantAccess.ts | 18 +- .../operationsInterfaces/tenantAccessGit.ts | 6 +- .../tenantConfiguration.ts | 16 +- .../operationsInterfaces/tenantSettings.ts | 6 +- .../src/operationsInterfaces/user.ts | 42 +- .../userConfirmationPassword.ts | 2 +- .../src/operationsInterfaces/userGroup.ts | 2 +- .../operationsInterfaces/userIdentities.ts | 4 +- .../operationsInterfaces/userSubscription.ts | 6 +- .../src/operationsInterfaces/workspace.ts | 118 + .../src/operationsInterfaces/workspaceApi.ts | 165 + .../workspaceApiExport.ts | 41 + .../workspaceApiOperation.ts | 155 + .../workspaceApiOperationPolicy.ts | 139 + .../workspaceApiPolicy.ts | 124 + .../workspaceApiRelease.ts | 150 + .../workspaceApiRevision.ts | 34 + .../workspaceApiSchema.ts | 150 + .../workspaceApiVersionSet.ts | 137 + .../workspaceGlobalSchema.ts | 134 + .../operationsInterfaces/workspaceGroup.ts | 133 + .../workspaceGroupUser.ts | 93 + .../workspaceNamedValue.ts | 240 + .../workspaceNotification.ts | 69 + .../workspaceNotificationRecipientEmail.ts | 92 + .../workspaceNotificationRecipientUser.ts | 92 + .../operationsInterfaces/workspacePolicy.ts | 109 + .../workspacePolicyFragment.ts | 150 + .../operationsInterfaces/workspaceProduct.ts | 132 + .../workspaceProductApiLink.ts | 98 + .../workspaceProductGroupLink.ts | 98 + .../workspaceProductPolicy.ts | 118 + .../workspaceSubscription.ts | 195 + .../src/operationsInterfaces/workspaceTag.ts | 132 + .../workspaceTagApiLink.ts | 98 + .../workspaceTagOperationLink.ts | 98 + .../workspaceTagProductLink.ts | 98 + .../arm-apimanagement/src/pagingHelper.ts | 2 +- .../arm-apimanagement/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 267 files changed, 52060 insertions(+), 20340 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 816dce76b2c1..0da0d8b6864a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8551,6 +8551,7 @@ packages: /queue-tick@1.0.1: resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} + requiresBuild: true dev: false /randombytes@2.1.0: @@ -10487,7 +10488,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-6KmwcmAc6Zw8aAD3MJMfxMFu/eU1by4j5WCbNbMnTh+SAEBmhRppxYLE57CHk/4zJEAr+ssjbLGmiSDO9XWAqg==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-iNr+bUFLjcImxSkKGfTvrMXdvN+Xr2uo0pe1VAQ5yxDLRwekMIoD0LJTgxqbMH9X+0ZTQdvANRTXKGf0Vg5gMQ==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -10520,7 +10521,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-1gJtIqsdb3A7n3iKVYX+cO9GlxwAx98jKfiFw+9rOmBZzyH3+AVNwCR5y/qego33s7BOEtVBYTBfE+RE2g+u7A==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-wAQvtrrdmX+2Bva2/aeO1N4UYS/nOcPQrPdBDFE6ZWAOzeOF7/EozfYF/754AYKYjmWhJ1eVKk6fwkDsPZvqEQ==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -10564,7 +10565,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-4RFMxeQv1SvqJCIIXuHWetqcaZypgMXBD4y5KRpyYJTn5IqgypkpxQDlU5Fzau51QjuGovlngIFGYhUK6ChHZw==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-1D5XNSIsMuHod/Ga1MvLOMSZ7SnsmJ1C1QQps7z/Lu3Bn2HeE/PaprRY6oLdG0lpFv2QImE5IXWffLrL6VG08g==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -10608,7 +10609,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-6lwZLHLgH7pSNwF2YBkR18lySMvokaRLXby1EOj1ARxHwO1txv3VJzB4MkbITljyQAwwf0LBy7FZWGq++7wHKQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-pKa4o99jHH5JO9Y0rzBJC9xekW78nEjxZ549EGZAum2Ro6+cUR3x3l/EGL5Re5dHyhfljfxpX2MYvNFIBAMvkw==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -10651,7 +10652,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-BzeiADIeoIIlJ8LRyX4rq6JouqAj7vz9S+/YE9KQXRP9URaP0ke8pY0Wzi4mOEW7dIrecN0ePd0TJqxrImmrdQ==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-K1pn4bMflvrhHSOp2OIfBXRZaHGszteFE7TxUJQW1yv6OsRM02nnclIcKavqg9fboSWrDg5cWjyPBgzC2hKrvA==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -10695,7 +10696,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-nJmJTeS99cjSGz7F593eBVWe9e8z5MlBcL/RPYc1X7GqLarVvQDy8CRvNotVwlKqZXIDFU5SZQfm79ariToNEA==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-dWR4dFSVukPRd0wgny/m2a0LUBL1vlLQHpVTzjunyoM71gap1ZUGhPiSZ+6HVEu9KgEEp65QtUYp4Oic2fsXdA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -10738,7 +10739,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-diW8HFTJtQYPHtBCCTcY5ijE8lH5+MrWF36K19IFl6McafkYs8mh5/oXLXV/PBTnXtUk00gDT58b2X6iC4mrXA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-obvG9Pyeh3oCfjyjfZIdiWnUUh3QHYdQ+oWUO9bE4ZT+Nqa3Ix7v4UJnm70eedgqTtK1/QNQDQXTqc2ANnXUJg==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -10785,7 +10786,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-zgE5BUWLB90nEH+Nd+UHPHz7t08SHyUzrjQ/EgBiUuoHTBkP2q7cHziIl7AlO9LjBIU1zMe+zQyYPihhvP0SNw==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-SmlaqC8pKs7sb67AsLVRmaIn0+f3npLN63yN7BHhFdpf+Rth+DLDhZ1dzhLjqXUZQdPkFqriSrWJkV0ROs5iMQ==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -10833,7 +10834,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-qnXx4I2V8KgR+lYOuTi6Ku4zWlgMz8WmYssVtNG3LDQtrcDmi8eqHQhCYuz51S2LebSDT0e4HOX0QVsNibqHEw==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-Xxb9oGASDhz+Qjv4Lmb1oyjsToKVg0s+vXlaizxhh/t6q1lZaADyNAa/vOdKz8ycOcGbuBNY4mE1G4nudGrLQg==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -10880,7 +10881,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-L55Jdp4pix57yOZRUz3E61njkW4SsdSaxP7pTkl37rWvz0uWdz7hngTuxyiVNkq0ILjlMsI9nEdce5cZOkl64Q==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-+t8Q7pUW63hRFCgAA14Kg2ypyBKvBH9fI/Zta/k1fegdI78goRNjsExAMBGrk/fV18C6qHIzON8C6GGhJTjPfA==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -10905,7 +10906,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-ywS2xkL3j+OT/TGdNqEnlS3sn6dCjDmjdc7Tq0S6WG5UWtP7jJxV+xViqzVI/ND4MB7YpZDSdaw4J49XttTxDA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-LHiJRXI1Y8vFpannHomfmMKM10Amp/vSzyZoIF+NwHc2ZJdsmsqWdctyXNmOYTFVNIogKt0CryjLZpiGp534YQ==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -10948,7 +10949,7 @@ packages: dev: false file:projects/ai-personalizer.tgz: - resolution: {integrity: sha512-1YSdKuRqIO9U6bdAngcYXnJAqg1sFvk+fNl0D/2cOL56RV0lNrbTaxnJEo4yvM7/aQ4/JojgOP4i48BnP1fQWg==, tarball: file:projects/ai-personalizer.tgz} + resolution: {integrity: sha512-8pWBjymcvSVHxWk4tougH/CzuZYnHVWNeFDGkMpMX3u34GMs4EqoTCTZZxz8cGt66RmJND3A08pOmtVwkaK+yA==, tarball: file:projects/ai-personalizer.tgz} name: '@rush-temp/ai-personalizer' version: 0.0.0 dependencies: @@ -10991,7 +10992,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-xIVLnFsYlJw7fjbKeTAjnneKWoeSgvcEK7QPZG6LLZfQpoErjPDJh/1VinYhM+kfuuDFkddCtZ9IGK2uZ1o9Dw==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-z21IyncrTycb7fJSyH486fdoc3bfSICN5efEkp+/N1Ed26rKd2HSw9HUgEbqJXUyMAkFlD+XzbhIc2LGs/a6rw==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -11037,7 +11038,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-ETbxAv2PSXMdT9s2t6fy84Th7wl4mon7K0lOInT5nWAMd9MeqdjPxQ1ivqW9jDA1vovsKQ8qUaPIuBYn5QrnhQ==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-PwMYx4S6HQOcwVprsWOXUQcIy13EeJm7xcDNfd4VShU6STuGTgNdf0F5+pp24+LLfZ5fcOWxfqOxfGemcwettw==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -11080,7 +11081,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-tKgHLBvnEh7Q9FyyOC6WnpAFb4NJxOK2LFfaAWiZSEVwi1vlfkdAckelu0lPxqSiY7rwllrC8VsBGAWcQ415/Q==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-BTGRoZOmU+cmrNgx8b5wgrZ3PqbiO0rSQ+8jGNwVZP6TUcBN1Ne9nYHnIQxZCaGB2vf+4uKJ6NCMCw2TkLsu0Q==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11123,7 +11124,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-4Rktgk3WHldMSBL7EMvssgkC2lds/H6eF789SNkPmwvTv8lrk/BQhpO3gkltFpJ4MNolcsuLVfs47kgqFndM3g==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-ILWxIgL8Fu+WN9uD8SqwoDsJGBAKDKlgXHhB0ggTzXayZ/890ADv+LJxN65P+TvxfAlzsE9NMg/JrtsU2DCvsg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11165,7 +11166,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-Wyj3HbKSuoSY7eNvMUldvhnMqi5kKO8QXcP5Kab2D+RI76V1TYiDNB/1ffC+jN96ZsLOvaOH1xpFeGIcRfnjgw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-ryd7sqfaOWJhxOOsThaBeSvhi2vuX6n4budqkOZyjeTNTYHhvme7eK+BZYSuB8EPjTr27FcsT3QkB5oSadhnIg==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -11216,7 +11217,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-yZ5eoxFyedjpLHPzgkwFAv2HhPvIWNHm1yn/sa8fqSp+SLfb/D2gOciNlANeEiiUgy9xldH4WXfTONmn+Wsf4w==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-hdktXjbcBGvA0FHTn22UDjSVXhFlQU56GwYbHaqj+rphRrYSM4gply8nms7Ob6wguO7YPdwkFlkXIFcVmX/AtQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -11255,7 +11256,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-ROD8jk3cSov/vE48keG4Nu0rftlbMlbMwQbuL8cw564ZjyxcYvmKwW/mj+dyWtjYbuCj27/MTG11+baciBUgEw==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-OTfKEJPA4yb4uvJh4k/vEuleTC8VFATTm6fufuGRo/tfZzh1sl4h7YXjBvr4UbSUOeNxHEwV/xsVJHGh1jvXbA==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -11281,7 +11282,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-Eq8GFhNd/oJociPIg1rktInQeN9SNAGJzOhamq2MgkU56XwmS6wcBn1JOti8JJeKaE/QXO3yKpewSyct3g+Qjg==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-KHlACz3MiXabvxhbQZNVZ76eLFAPV8hlyR9XYb3vpYJ0rC8o+oFVimtXtjIvS/5t77FUwscIeIq6VmHDRKlGxQ==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -11307,7 +11308,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-K60F16ABp0NPA67efoMfwVPIevG22mZLc9IDlRWUsF1sEI+r0j87PM1XpcvxyPaBwdj/m9hJlA1YncxM7iNxJg==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-gKdDM68eaEu4Lxc2m/MZBfsrYuve36VXh36B8GkQhr2Fy74fkB0hxVIaybXwRkBQe+NFheOV2nR2eWjU8VkCOQ==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -11333,7 +11334,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-+pRFPielS0gDX8JVCaOPr0hufVi5RDa6CVbp3lRglARFGjy3zK2Cf6/QJUZXmoxEdYTFqKjwgIcJdkCJk+bwFQ==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-I7XVaUB5zLRaozqNoPd0XDmfpMBMbEicQxn8lFbAe5pm1C9l3C07LLk6jU6UkwO7XMZ6KHmtvvGmsdP/83W4IQ==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -11361,7 +11362,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-JzZWr0hc/ZNg1TekAQAKyht82tdhGnk+NZG0fJ36AqsfwWP3xm9la0zFq2S6OdhG/pEzmFW32Gt/ewJ2No6zWg==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-svxUqCfRZlZBudJHMGDq6AVFGXaCPgpFLiOzSNuEnDoghYh8tvaHA4fkG4L87c+NOVd4rXG73+qJIb64cxdeiA==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -11374,6 +11375,7 @@ packages: chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 @@ -11388,7 +11390,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-maN4MPboagaxwfe8eh2nHyfAicYFfJGj3qAcGGKNEQ86MCXL6cC00xIdUT08QO5Mu2AF/u17gCs6znuDHwKDvw==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-NtiILsjaOd0fwgZhEL7+SaP2a02m4zETgRa8/34N9PNcn8MN/tZFmvmDh6ZjROqIg1X/GIxyKIpwnQSfhE/+/w==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -11414,7 +11416,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-gtrl3Hqq0gmpifajc4RgLdCXIH7sT72oPGIklzYW37Y4fssGQNeoWMXwvP5d4vLG/Apz3WXyPyxs4rcPCNQwBA==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-4v96saBHfbHekdsUuRpNLycDOlo+7v5dYJCPOaomud0XrAdl5c2hbpPNag7Mu5FxywXPMyc3NiCdi5etZY8WAQ==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -11441,7 +11443,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-7WPgejLGKgOh2vPVgdi0dMKg+iBkbUeoopTskBmNemYPZv/IbY2L07kru2erL0s11m3teLBDro/ssrPrqDboCA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-IvoH/GAa4+uOxQ54m9x2GHYy/18gIvzXH6tZmbH4IHkMn9BiBIDq3Z0Bg0RoQ3fnf79sRjhN4TpNq9jW1rD0EQ==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -11468,7 +11470,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-I34zQkAWNFmMo89ZFt2EM4nUwIymNs3zAmF640abJkJh/L+GNu2fMfy2dI5IrOhj/f1+KTrpGRpDPTz/IrnnDQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-WveWOZAHZWF58vZvK3pdvIx84fyR4VWrcCydr3F/UStxrXcgPVpW5qZYEucy6sdsql1keOff0i5QEpvySgvT9A==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -11493,7 +11495,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-+qvA56xDmFhYVyBkJSMPw5rssZ7dcUPhEsdUoENLA6hLLgauw7hoyagObPLVJrEGXNCgkABSR5V8+bTf3uWtQQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-kWl3JeqgYBz4K19XI76Pq2kdLSwC8yG+PtqruJng/HadLD47zI49erNs4te6JNytsobVRzc9GLcXwL7G1xSdPQ==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -11521,7 +11523,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-n9SiDwWNM6NvRyxLXP85XacmYutdry1HFVz14/Ku6TF6yvZ5/VLx9unSPUKd1kKaG/GiwcrXn4v/xlKfAqi+Wg==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-oCf1w1dQgRqUaU8CuQI+35t3/VOmv9NqUnRe4kKetJWZNDj2BsOeqOnLLewVUsYYwSCowOeX3L+zOiyxQvbpqw==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -11549,7 +11551,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-mkO1V5mAXU3DXRK51F/22W8UVpQtDdbq8T7Eqa0yOdByJjdBLB4FBnqwJmcYKTIdyUT7vmS3FqT6kQuOOzEPcg==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-TwZgQgk0vsQbAgaGZjjA9QH+89/zcVRTkZqB/8BMnYP4CyjGWj46pRc92Aj9ef03vC5/I6sxyZUhfZZtZ0mZfw==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11576,7 +11578,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-njmusO6mmbSKbVWfPaO5s8ZxhbVPJdCUBSqrB32Zz1XGljPg1TyEwNoYxVEaN12vcwvSmcwQBqnhx/2/9D2/hQ==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-/QFWX/YoXfT4/nIu3WtRXEWrCHYS4rIyFHhm76cNjBIBWjONfbQQZt+jKkrmd7dlUik5t3CUF632KC9zn8vcAA==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -11619,7 +11621,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-pfLYFPuJdkULAxrnj9El8VyRO+vaLNJgInb0OAgAWYtrvXpn5IUO2uSSrnAFHcQbi405BS+X6gCMQDZhmPC+DA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-9WhXfWQ2IRgbLqxa1ZPCCpAHEIgBGTbEGhQDzaF6tiaOb8iBnU4o2Tjk2WhoN7opuV+opjcsYQOmMfOGsH0iFg==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -11647,7 +11649,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-W9YXfJPtPSHsFheKhG9b0Z6mwPLgf0W//VXP/Y6WmgUwddcKGxG4ltBYSvVGIsweYmCgblAAQ2QeLb9rbR4JmA==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-CC5FeafaJaQQUVap3hU16FnRfk/dH+MQstKPMluYUN3yOSwoSnzOYpUhE2A8A/X3ntd5ZayS3eCQ8KQoDttPqQ==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -11672,7 +11674,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-4YEuNADyUOVmwESJbnO5v1amsCokgIjVBv1+7JDeFyeVOHwYIsI5CBWBccu40Y5lXa+OuuinEf6SyRF8+hFq6Q==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-SE+y4mqIuScTDDH6hBlhT41I+8QTNBR9wA9540ymYjYAlchKpYGojSrxiTZnxKGnQ9ioWaikEWPkoKY9eALJdA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11698,7 +11700,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-UAaYVqdL+QU7UGdM4HnWbie2G6uofI3o9ATwno6B8gPQoWXO6u77l7yXPVX79p84dqt9HnJxMFwwjQXfm6wkVw==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-y3ID88BoTobWQ90d8h8i21UIMdjhhjnCfkIaHG4XYDzucNddjyvRl1LYHCRIheUBgbp6sKuUsIUymAmOh8870w==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -11725,7 +11727,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-WZJfe67gslSRoYPk6z6Qfoi1fwxp2GEwDB8elkicB5wKc7o10NsgpKrPHJr180zGEaqgP5AVjDXU4i9qDMox4g==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-TrPitisx+wX1fn+WDN5+Imn4wpDYRRki5hMTk2AxNwAVSTekGwdrgahKvchCEybBAw+Ow6UVvpBnxtCddFQ6bw==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -11751,7 +11753,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-fU4K8Q56JPN5PdbmdhCozG+AxiyjQnD2yV3AQC4UmhSYtQqnf5iw+98MMNS2Rv3fybvvFJ6gBKF/O0am/EhX4A==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-ZYcv8NIFOEDa/+Hr6hyv6D411e5d6jgSvcDP3R4o+XPXVYeBgHnfJuFkHiawfZ9lsfupgr4jZvXodhkB+MCe1Q==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -11778,7 +11780,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-vvOMpwBsj6dUZhJa2p8KBuZ76OXRloJt9IzrwLN3OduAcirG/1kXWajm7ttOKv7kbgdkgYosdoVW/y5K3+ZdUg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-LK0uvecM2hEjGv0O4sWN3GU2z/Aq5IuFulZuA4/GBWMeKaLG26v15677xEJ9aTVSOHttQG5A7VubPKPy2hhnjg==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -11805,7 +11807,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-rjtKIBKvq6ND8N2gDtElANgFd5mLw7fQFEA8cC+7OomaKl5R5QvAjeeLv6fAKgMZK5qpFIGFVzb3yhBrduc34g==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-D2DwhGegbgi6zoaZVoPaiWck6nevz5Nr5XjYDXCEneOhKC5yXdC4d+tJ2RVGHO7lXqmQD0CXbpnm+VZoHHxKaA==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -11831,7 +11833,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-wrt99LenEOf4kvtZZgZ0KjUceMo53uXxApffabcRTHH+Ld/YJuj+Mc3O7n8VE4nrQm7XkBrNotHyZ5o0WBBqKQ==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-hK5vGbD/wzs92bRHzjfoiMgmtULUmvBX/Dy4glEGxjdB2nVJj2YJQnHrEJEGqXsxsrAKCi4HLkPN7JOgzS+uIQ==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -11856,7 +11858,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-GsBAUCcQuPH/hPNL/XTrlL2Z9og7Em4vq/WV2UL54qxKYd9CPCyHr8hm30qhvLDVoe9OB6Nf5emR0FEbdpzm3A==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-wnd5b+JTHJgKEzDePeSWPoY+ff9OT9kOF8KTRhjLNDQzuXvkt6fBpQujQ2DxsPazK2eT0jC6WFff4Bn5qd67Og==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -11883,7 +11885,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-KurIkPZ2lUf3lMlZ4lNcbkzxlmTtzgoENoiODXck+4dtqb1FvRFugG35AOdhIH9F+gblOhQV6faOpVq/N00bDw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-kFoYePU/3fnaxe08ofujx8mhP9UXbkLl78TUGykAWG68KD66Q5lMFfhKxbu3tL34Q/h13YSKCqETwwHk4Yq1Kw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -11911,7 +11913,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-1Wb1aeZcfhEO+J7zydeuAiK4+VhVSX2oxk+yWBXAswJb30qBQ+GyOz1pqPVih2LCqIBB1Wk6q6I4nv0rAAXQ+A==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-V6C++GjFY5KAp/hFheQfC9oNTOAVRQL9/Rl6ENTAb4UvPp2+Vu+7UQD01g+dwjQln3AcO/Kyf+clRUoFyXH4/g==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -11939,7 +11941,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-GEUeAL6i+mZgPNLvk9zwai9NrPtFdscZzU1L/CeLqcKntRJQeYYZWU31LlbwaLQsoiwJm1u2Z4ESqXswcHqsQg==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-8Ar2AtBLcmHBiIqIcd0WaKxupb6+mw5/2dV01aDSOELTcJiUesXoPCWHXBeNlOCsp0ozacWvBcs7my/kOCt/2Q==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -11965,7 +11967,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-A65JYJp+n/aj/DdNeMs3KEE1iPkRUbVk4L2dCidglVInOSYGdvCv8tAyBxEbJo82KcN4lpRUlXl/T95na3nNDw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-mnDKuxl54/MRRwmaR2neH1bb23gs8aMaZOwCPOIsALGwGAvoGyWJFH5TbSMo+eVhkfMSlvgVSB7pxpwFWV2PTw==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -11991,7 +11993,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-0J61YSYrnqNHnwt+3iVjsB7P8iw6OfCyp+jAKIAE6QMciS0iVzTAXepo6yQdTTgPUOhKyD5a9nZnBVRfStofAg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-TEuEGBl+SWiYAmnrlhJbDiF0cYhEjQ700OYM/bk5Ol0Wepc0hEF7vGqDthzObsjy6MSvNhbKzQEWWEieliC5Sg==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -12018,7 +12020,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-G2My3ELDLnMAu1hU1+U8cWflO3o4jnvXZoRl5tc7kbzjKk2/olbkV79sTEHsFWDzn6B6OWtXCE422YKUD89Vrw==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-hdoZpJkxaB/yaRxVRdvNAraroDsYzLyO+glVTjNQ1AMaxOmTBt/Lh7QGjbqRlOLViXBCom9kBxoJ8L3NHTqfMw==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -12045,7 +12047,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-DsaCiFJEbPuBwYg10wpaeEdE3xRlpV73CgAEi8nWif9kv+JRH+AiYndpFgazGrJcnHbXoWy1HRoihs4uSRqlkQ==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-wr+WPh67FWR2NRQKgrbkqsy/U4CvwO7/gbotwbxLolAiDKZxPmVw+OV8UHihBcgaJ2l80xeHbOvTlg8KAwH/8Q==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -12070,7 +12072,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-b9VZ25FT7P33XmmdcqIuurof8/qlDCefvuFzJZcP5W8vww54laviQp3OZMe21gZNoTF0tJCAsisUwCRFtGkfaQ==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-n3UKJZpU3gfZLABS+bNjCW0zmXeYr49am/B9uSITckGvuhu/JqN8O+MqSKG2yhZ+0+rcH68DRD1+xN4EfTObEg==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -12095,7 +12097,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-AYe2IRqlS5udUUwHLB+nBpfwEGN+g3f+4mU3aYzFq4VPJa0+sn4WyhR9uq1kH2ZM1N7mHyMOwqmbF16k95RXrA==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-D/9pHkYWHNIGglI/J6hu38+kHRLQI9k+XjIhJBi4LcFHzCKJ8vrF3lbO05y+p338a2mteTddG749eNGnfpRDQA==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -12124,7 +12126,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-9v35I+3xKtYLWq9DIAQqu5k0btXBqcThaBewMC4E5FjwyNUb8eEHi2c/602OiAx8MP7UgxJm05ZTmxCOkamXYw==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-ceoamDcbMZIYDtblhTT5SzwQB/f/ZfOeZTKmgCrIWOgRqq7EblaCWEsPgE81I8b5xs6If+DdhtgT+Ihysyz+Pw==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -12151,7 +12153,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-KtJEFzp8CujGIy5qfF93himm77C3TyZBSIWoYy+S3Blenj+D7Sx4IRCSG18goRF2MZPzBk8+DaADJ9jysCci2g==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cuP9Lj6fq8aOX+H2Gb/o7cKZQ+IOaADcMQ19mgt5epCNgWsNZeXqYm0ypDcyAo1D5FdU2NbQ8576vKXphvX39w==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12177,7 +12179,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-rDkddX2oFvwSl3L1L46ftJvLhW889lRV9x814MVYX3SPzba70rjRpF9i/WtgcePpk/GO50bly0HEhSRA+5+g4g==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-YBAusB0+e3cjkTEQMfr3Q8xAxRRS0JbcnVmnt9cyB3MC02XeXGB+oIjKP/TY08cq1IT9HHTKosMrWfKKStGf9g==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -12202,7 +12204,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-8E4bEbSKH3YBk46CzI7NvKJMvaydAv8IPy8jGbu8MoLoDjp2RiGVWu2VyExx6Fw99kt1AGk+V46xF0e4PTwtcg==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-JJ0/r61xKy+uCmtVCD0p+dATwjU3ygUHe93NgfBnGqM6n5k2+Ai3qKIJqz3Wi44e2XEDEFywK6aN76zOZZToBw==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -12227,7 +12229,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-uPS2+p1oI2HYbDoM/nIA24Zp4g4luf44EwFtnc/IcqJbC5WXGUyw5XpP521K/LRjqrhcpvYnJUTXvsihMjAXGg==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-28goF7jU56MIHXDocfXRU5JuIZswJWtgWggniRkeihyxhqHlKZ8C/piQs9oz4H66tkJT1hZJyNfBdUZTXIOjKg==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -12255,7 +12257,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-6kizDVCfAG6+zAQX1P8BHI3RaYu7F6ph/ucmDSY51RR9c1/XqbpnJErgJJoBdP3TID2tPJjvFDixaxw4n/BagA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-GmSc4au3ItOwRPZuFTvlOQ405FH/44+FrzSso66b7gXaoDiVs2WpB4lEtjJsiPkL88hmErJG+H8zyBj4dfIGpQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -12284,7 +12286,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-sugpl9M5blLaRNbg6GQn76g7xom9iu1jKejYj5KeNhn5iHgbpHPXjo4OQcs8IRmwd2tRnkLwksIuAxm2W6QuYw==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-wSxjWtY7Gayq5u+Vrbc5SF8S65rlr/heUQBVi59n/ceKQ9wwSmFFIANjvHGBCVjeEV8h/STQRyo9ohorR1BqGA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12311,7 +12313,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-nnxE+DnW6deUaCiJsb6Vdz1zOTzv6uoW3B0vNx42bn8LVf7O84d/0k60ls7Nbp77vr2C97NnkISLcLPWhUmzwg==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-rfM24fKeGnO3k+9xouP8VC9tZO37dejzMq69JJfgX+QQ03NhhI0+7W1Sfydq6z+nHpvT0rZ5dq55sG24fSouGA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -12355,7 +12357,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-3wcjT0JV7C63qdIAx0daBkxtRYAD86cGgwmM8bUNhScppREhP+LDLpAQKr07Dc+CNmtDTZyIf1+CvOlChK3NYw==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-pBzv+N2QSgppOXMHAJzMkaE/qaiUmi/ecnoLl+UGY6ejTy3yIhiM2pgeAULdLqwe2J7L8R+LIzhAbNz+tv1O6Q==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -12382,7 +12384,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-/E6JDfmmxi2eexK1iCXVigRy2KNWahi9l1jPHBgiZRugKZVCdYebz3m5Lc5ASfDNFn4Kwsdv39Tf2yJy3HJ1VA==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-4y6dOLhKtG2MSxZ2bmgTHIzUVjrQ0PwFxsTqjIOBbkfGtp814bTA++xOgnrE9vmVEaC+ZkdAMNBd1FmBfq001g==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -12410,7 +12412,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-w1gIubjRTzBHfnaTbZz/c1dP5955JMMUqizIoyNLeoTWTDWehQxSVqZNYnch91imOTmzB+TxU7GlIsntOJwL+g==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-T5BQynIcWR+pR0OBRmCgiNLPARef7bQptKTgvCsnPfsewfWLV3YMa85iAcoPLMduQ5/JtR5DCET5pyDFPjKoEA==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -12437,7 +12439,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-2FDsNPauBwRkdMElXzq9rWo4XkrVxbLu9qqIOG6riyhoLTT+LgA0TJEV+iG6gu/NgRng840zTpNo8yuPQGGWQA==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-gIGza2f9pMwhSMoWvuoOMowtkiBRZ4FLs4eo3jWkQOdfUV8yW7Aqs4pcve0CLxCtD7juxoQ+VsCyAbJNwiPIag==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -12463,7 +12465,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-xJAXM2Ld+QXlUS+lRl2h8kvvABj5+B04QH+tBPup9lHEzMW058av9Zg1Q2FTerpNTXl9AtrIY7fiOLzPoS/UaA==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-Jh00YMt5IjPlB570BSjOupuw8nrDwcPaRinDvCspv1XfVTn8ca64lljJkn6YVvg7Ewka5vm+k2xjgje+wgHJug==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -12490,7 +12492,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-UtNY5pFfILJVY5uKq3grSAj/eX8knsdw/pjkfvOgFOUMLn+Zc2KTgJ4sX1fqUGLFz4o1OJ4NAc9uSbOIdBd5Cw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-eGal/cz0lUPpDx7YSpPlprQK9yKIV0jJ52YANdbKgTKQi11dEyXhB+NFfUmBxpk/hGAYSCYdQRtXEij3gUSDWg==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -12518,7 +12520,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-CgE1+0qzGsKIGBfvZjAaeQ3jI+BkFnyy2s1J2hS/GDxqqS6ONXukQkR+wtq8chLjG5/Rkp3E7vNw8UO/iYLsAw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-6T0lGGJ3XCcGfzzlWPbJImUGNvh0mPDht6imcPFhw/LHb4eLsVi53/Kp6JLQKbAS8UTpXuWtQwGAHP3blgWguA==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -12546,7 +12548,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-mnoUjEOVqAMufPECqy+8yqBMX/PI8zFX8yfgbPgXC6vtxk26pLTAqEo9NfVkzboai86QG1zLE8Bjy98RhV4gOw==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-EEAj4QAchBgQ5gEyUXlyVFbt6rYVQlyQsmNDEl/xF/4/9fZe25OPTHhbQqBjg3BhyCzPI/vzVpFu6PxaKHBKVQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -12589,7 +12591,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-/O2LUTrmXAZhj+9FnT4Ai7koBQY/Mjl6hgjFNcIvWhv/DZV/sOUAdGUE+1L6X37a/NMegSmFEzrvwA/7w1Zvsw==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-L7FZF+zECSYP3h0lGOxlcba5MIoAaS4cLDcLw9uI7OgkNOeXvwVp3AIyVM0gY0zQtqMMV8yOHSdMnb0aBGNa5w==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -12617,7 +12619,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-ZLOw/zxspfcaDH8PvlS0yHmTEUeyQZ4JAW3tBxOgiAoLllY0qXvrfYEYH/WY8bq8dL5elf1Krb9WuKe0IH3PxQ==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-D1OaeYIGlvVSBRKL77fzRSsc7CLEJfB/VT+MeX7zxhr04M6LNfpT8M3Gxs19IFYtRy3V069aQ0MbeSLQ2nyHBw==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -12645,7 +12647,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-1kFWZx86s/1MB7d50kKIqEXOd20/HYaa76Vr6znMZ1oi7VhNM82bwcFXhqr/Ha8QJp7+tp95dRGyOkZPX4Q6OQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-oolLtC+bh7x7BChJYnlqD3JM5TOeiyN4KMITqWQnVrzp4kL8W9CSGoT3eCJptWWGLIIdDds5pUx07PbB2VyK2w==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -12672,7 +12674,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-tU2jx2ArM2PKoHgCaJni2AJbDbwV6tUw5nsXggsmpilbQrbIrbgkiyj5NqHpsH82QI1Y+SE9R0hPPVtotb6JQQ==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-RnC0T5i0CFwhUqicfDmIHEAcGBzNptHyVaS3nWy9Cm1l5+Up5PUf63HnwYcDtIn+E/BZZFFRQa4f5mBJ1eWzSw==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -12699,7 +12701,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-DaJqL0jm0XwPs/tGBQilxBHgPGeQSxZOP20x3p5LYEE6M+cX0BFf7KPt+aI9ORzB0VFehMh+c2HNMepUy8ksjA==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-7oyjRjn4wwCMSoO2yAYUGqE35HvvvmD+b1b72A/XlCjKky+i0yJBhx49yXxOttek4WzzoaOxDA+CMNaRZKTfwg==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -12725,7 +12727,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-FUpsLqJ868RBg6ZQlqON83WYnD0bGYjQbMUrRS4Gj5qM6W2oU6+ne/9ixmbnWm5Ol7MjkM/C/yo5HFpKKELZCw==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-CkZcQ41MBIbPmZsddog4V7xZvYQmGMNe5bJ26IBeELZMLvZdC1U+CEteUQCd+bWEIhm+3SHZeoPohmgvbyHqRQ==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -12753,7 +12755,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-95x+lKer6oJ/LYK5mUj//gdCQO3LciDM45igpyBCF0nkTXEddLM2MfM7Puiiozs0FfyykLUwVBxpnoLHE7IdvQ==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-9Ho7a21W7lc5nfCXQMrjEatGfcwGbA4n+tEiRUwhFc5iF6BCdw5yP+qU192soLinMW1WHagom40zXT3/suIJ4w==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -12780,7 +12782,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aUw/CoDH0URZhZMkb1n15XCPdGJ6kMIZTRxR3Aiio1FEy+s02GYAmtiwWDybhHtfy89U1x2deFaqmMmN5ggDiw==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-2KU2P7WPFDddoatPMuhvDwICItynOhnR0YGUzONCXjgcyZ5nwmA/Nb/X9T5NHrjLxP72sOSMHnhwVu47fHoPTQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12807,7 +12809,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-qoayTHHIiQQzO5sYgATMJ/TdqpfGaInAWAwUa4RB12pw19AhyrcUj19X0F4npIHhWcA1E8W40sg+xPO0j4K4Ig==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-DWu7ADx8EkbeH9DsufkkjANTx0p+g301D4mFVpbJMXC0MarD64knAGX8Q9PTD3Hb8TdNRK5GRkwnRPyR1Eygvg==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -12833,7 +12835,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-n/SMNzAiyfN/lFpt5YJzd32fES9ze8jGLUbLkIxNW7w6TdqkPVXTMB7B6EcLuqmxFJPfek4A2LMJu2dBx+UhcA==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-WAtAXKJCfNKF/uJy3vZmZ+CE/PXZa8uOReOOz0NbfHdUo9ompAUAH291ZpBMP/oyMavRNBCIqrHFcUbnLVnHdw==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -12861,7 +12863,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-iG9whd+FoDBL6MT9pzGFw7LY7lhcOx8OOZR6WzTzzkxD/PPfJDSNxMICeWrIwseaUKHEQ9urN2FhDCkAnTQ7tQ==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-G3ZU/CjjEMr60xcEIdmS9mKFc0xdvut+pWl3VouNsC564gB21KvYoyzay77yUzbBJlU99fAmkWyUovFoO5fdSA==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -12887,7 +12889,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-m7YpvxhygnEI2hacwst8DGNvAY77ZK1NpYENUa1210NPWMZgEl1HKQOKJ1yL6vLwC0x5i99k7cOhiSVVU/qZJw==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-zdSyPOGITXN9mRdxHC+LFI4f3ZOh+hP/ZckLNl84YXRVqSQoB1QQKawY2SCvqJ0tncIqBASHXMfRUt3KzC7gdQ==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -12915,7 +12917,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-XGhwQZHGfFXGNMfv23OzBKzsPwaK68pnal4ROBygO84ikqARhpS/l9mZzUIL3rZUVCeis97ihREzvsGpk/EXJA==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-8AsJuc9IpOlfzJlkgk4zIABqvfio4qXh9YvPN5WlC/QBaB7U0/5fWXq1dzrZcLJvOGo8ePvJo79dZg2uDdvTcQ==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -12943,7 +12945,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-QL5xwYAg2Qkccprt0iBNs1d9gQmavTnls/LgX+lQlCDTafSagMzKyRkLU/5xFFtNaDK0O/cAo/JePDAxi7lD+g==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-yzVw8Q2+JxjUvyeRTbq/j0vQhkEHW8t6TR3fZ9mECDlaG8Q+N+NKmrbTAomwbRbNPlgFKukLP7r+rHjXunD69w==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -12969,7 +12971,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-2tfaY9yVh5aJuPz8eS1/PbLP9E3nJIbyWHVanL347BOpqPIQkYe2zHSsxoUahOBqJqB90g36FOQWNo/m6Eiu7w==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-kv/yjdIuPAYgY/6GWaiPjnu31bSTCwHvfHaqsZVaKR/4+4b7AauMO3KuDdr8UkkWRyhIkUFI2RvxjHmi2b5+Gg==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -12995,7 +12997,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-RqdUOXE/gW+7zXfFneqfQFn9j7PgM9AsXFc0n8xMzrRGrCz+Uqh6ia4cGW3A4wehnQpz2gYXDW9wJHMLQeT7Rw==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-JtJ/t64GsctvAnLtCM4/55fMH379WeaFMASG1sW5DJ3x2C+n02sPVRM8Z6Mu/T32JXZwJf0KSj+7wzXBQhAjIQ==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -13023,7 +13025,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-cgw3iDKW2y2/oMPVBzv5NqsaTleca6OtAVz8eE2oNT+F9oQqPazDj4faSRDacLp5f6KqK6xFic6QjskNxXjcqA==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-ivDbQzCDJKN8hQwxYGFMkn+vJAjxdvzQ8lYzHqyMxBc/3qifsKwEPAOcZ+TUiD8+c8hsKTmRPaHu4UZKaJHsIA==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -13050,7 +13052,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-L1tbQid0NzP48zct5cpTnU7J/5GrGMKoQFjx/pvenb9fY8mSPQre8CHc73Y5zyerehemv6eRjKy7eU8NDcV1zg==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-tfRJMGzxOftlogx/5EpDXnGQCHTYaHfKmkt4VKXB3LI5phOLpybJQt3GwHzErp5a3xz/TcpYT2otMdZBGoNLlA==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -13076,7 +13078,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-L7sX1Hp5EvvKokbHuNAvLkgBkFbo915Y+RGdasvN1LT81KW0AceqnoWLIQksovU/wM6I7FN0OGIEFisODYzsIg==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-zV09nRqplUpK5w5By61XKVG/v70haO0z+1yA3ZtgMinQyV6qwGyRf8BQAt1VPWV5sgUiL6MtkFPKrJe3oNgctA==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -13102,7 +13104,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-CSmAgzjlR+IZFb5bp67z2SVFs9NQ9LS0VRLKZzpwCRkplrQBfMMPeu7/z/5vlc2QaHUyj5GEXWcUl3tqa3Yk0A==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-J2lsKIst4SNdWTPVT4yPLwK8a/PL+6OBYrjvqM6kqp/MTpGbVppzDEgpjYLyf2F/YGMT0vKsCx2OZmdfz3TTvQ==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -13129,7 +13131,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-aCEH3Yr5kA48YQh5EE7OIP0hieQ37FXMh7vNdh7xvd45KAI1e77Q99uhvqvNAam+mNYNo8jo+nn3Rl7cpqv4mg==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-0OwGVUxeTCi2Z67hUZA+iIq2OcgIaU8R0S+EGFKN3DZ/tQlkV0iLLcXHPO3BNl5Qjc42eLPPIvlUbCa94hSQ9Q==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -13155,7 +13157,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-mL5ybtkui/g7nDHobTu3HbF5JqO4Z6MjqZaWUuvR0OnDCTqOsHdS835yDQ5tQeKHLwlZjQF4YexqsrD49yZVkA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-95AnQnzoBbVQSuQVQqWUOiZc43cePOTKXhWpdg5G3Ve65GIdqhBhkV8c5DuHMPMJl4Cr+5PNpiEjmMqn04uTqg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -13182,7 +13184,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-qmHGIRkfxEpsumb3kK5HiS61itFrmyxboJ5AYdNG8gmprcTfyyZ8GQxQz+yh9JkdCoEE1tI/K0O5PmGnIBtEZg==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-7Y0eayeF8+fcdXu5cybX7y411bbB2aD21zJAhQmui4/1i1x/VS95rRsUd5L0KgZbl9axpafTRqbho/m1W4EphQ==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -13210,7 +13212,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-9iJ3t2A5kZDOfeDbN//2WclIOfqc47Ys6GOkIThF9UrcMcT4T9UKsun8jG9qATAciA98dOUgczW0QAiPH1K8bQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-t2kMrMDwxJGkX+Cm5qWFejx4SsnEO34Dmgema+0z3FcNXpawASFceufwbyfWuy4Ub3dTqK8N3x5TW5qWK2sKGw==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -13236,7 +13238,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-se54K80CkdLHAtjR5pbWbWxJnpmHkHvG8/n9d9b5/16ROIXe1IpZzFVO6HAtSEPZgDClzhLwYKcZIBCO+HuS5g==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-7Zzxwb9A/reKClHoux8ig3fRjvmHzNFmAvMYmbz6hc/gK9cbdQ08CeAaT+juiwIdscGYQVaNdWj1ELzhxb37xA==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -13262,7 +13264,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-nAmmiAhrzWJJ8jWgSXh8cWEbGYaHQd6aOnAWjzjK9Tkq2mJ+3JOWDNhuVb0gIWu0dFQl1S7FQ3Vl1gOgI2NEug==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-3nmEXmnL1Uwz8iFOjAlKHXxewcyB4vWwTdjDlgI/pv3getqmbI2iv/kQhv6TQTI6sUeVo4s4+HAho7Dc2+6Eow==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -13289,7 +13291,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Ci2u7IAGUdydHCe2wmCAROKWx7T97dNixQuMMRDfRUNcOqnSaVHljSUcZPtBehVzkzDP+bNsvAhkIdBsjTGzGA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-d1Amw85hvHEi/fTzEtmnf75J/sbvzr8FTa9dot50CZR1l43/LMX0k0TS0bWsQ7j61uRJNYjGsShJdpu1aSGzzw==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13316,7 +13318,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-IB9vkq0I4UsJ8zRn5BmXyLzCuKzl3cPQIGa/cBw2hRdOrv7RZd3NjArVx5AMlCGli2KZGd1R+yFc3CyRKK+Z8g==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-BhOUzgZYYDM/0qGf0/B2G8VQRK7fvaRdojljK9iRXReGDUrPGGjNDmDEFh3gjHzmjIQllwvOdmatLSf7FmjHyg==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -13342,7 +13344,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-wB8nKJdqPLraKxFYvDlWZWIZSQHuwm0kvnly/tEntmuwJmTx3Z4vYCJyCSvoJ1FXFqsf7A4IrlZXP7E3ynOKQw==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-3xFMt7gl5l4keq9+6rGly8556taKv/ZLgtXzRbcTibxkP/1OiyPEQ/+77Q0P01I/c45VW9NioiyKz9D8W8br6w==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -13369,7 +13371,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-nOFIdKFHWkJiat01An1GtkiOo5zpzhr2q4ZIm8wjPi0rBAVhoMA3pk7iJLacN0DfsSkw2/WWjBpLIReXRoTp9w==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-DLla3k4VcNjF3GugA2DkkwdrqrBU4w+VyNQYn2pNBlsYZFaqnVCtv4dv4lyKf485Y01n+HfcH/Ca5Hatmseudg==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -13395,7 +13397,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-Aj7evbmiifblx0tOWQ7wU1HUeoYcuWE2M+aemxezXhfnFGmyUCMOS2UBbSUJpOToJXH7zuh+LPM0VcLaCBKyfw==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-AB3PZ5K/JTl3MC2yI6ya929462uDf1rcl9TStJ5OAn+lMOGwiMZN2jBbBYZvuzG3827jYUfjS3BglFpE++rd5A==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -13422,7 +13424,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-mlkeCAjcXwuHm0TrydOWkbReaCgch+H9eUV6MByE4Fex73ndrHtZ+eH2b4WdtOwxgV9SaIiVilqNbLZ7MqT/eQ==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-bIEvXOy/NdGOKIIjzI8zDrrtBg+Qop15BbWcuEtvThiFjqMmHnVvl+vkwe2atDsGemd5fVxGN1mHh+E/lKgz/Q==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -13448,7 +13450,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-OMj/8g2mHmFPvJ4nvNgV1BK9Rd1Zg1jY9z3rL0iyVGdzMyCXPcM5oWUUALKDGv8o1bdcZzB03PQAQxPHeAdxsA==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-OrQ9rRDwqORmRGVNe6r7BiUadq9NM8FbNVLLLTdeIAdjZsA7iwnIHefGOWfpNwh73E9tSXqqsEfqFEHddi0Ipw==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -13475,7 +13477,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-EAUd2c4BeOeBXQ89uLiqr+PY5EVB2DFZ5PBaRUdUkk+uRa0xQBikVl/SNur7Xv+l29yMfxqnNYc5OSbiAoeolA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-vmNI5cI19QbV3WiP6J23i7VSh8K+hglsYTvs7l6p9s/sgdSCMobVPvdfCihIfQ2DgGnPYthVVajHhmT1Jm/DYA==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -13503,7 +13505,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-pjBiFum5B8TaJzHGpvGCKvAoOKORPC1LVWvdsNMXjXHMynJOGKP+Ve+W1yI9pOBb6mMLArsYK4kpx4Fzwp5Hgg==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-fWLIetf7dckzxUe5esh6TNETTQ0XfcKoZIqRfRTPq6n/lRjLshLxpSlMNZJri6eBjMZZoVFCCbAMhca9UA6MyA==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -13531,7 +13533,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-CCLqoFVy77SjW2XxQWJkTpISynFVFrdyMhOJAglpXoPkZ/5cDrNTcxGIcsi7TaHVmnEzPpOH3jwr4sGgwuZ8kQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-JAaJGD1tnTE0ly7rneoYftcgHWBC64ka+7joqNSggH+TH3XRml7r5pVvhaYfbCAyivAAuIK6YPwrziNFSkW0ew==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13558,7 +13560,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-yGdta9jk/Vv76SSabezPlh12nUpX1Jt3FBfknm7qjO5/58bdTbUOJ7NM+EGKaMxtBTbChFClqJmMueUb/3mcVQ==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-0mmGr7D+JOpiJmS4UXxLghHuH96mMVP+3ad9lHIoIWhmySSHg8KHa218RFech9nrMoH6tE/0ETFsBit0XMbTLg==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -13586,7 +13588,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-6yXtaEcYAXCnPk0yNAQGCfB4NK2NZea1Gbu0UuPWLdHEAcHPzKS3tGvz4NtTj9QsQw02RgTK8QU465Jlf/XVWg==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-K25YK0qmvnTcoNnQ80TAqKTbaGV1kHFLsjH0TF4Ed4UT0kyntsECs/3qRcadj8ODgTxmEl1sQV33khegU1IZoA==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -13613,7 +13615,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-fVMZ3HspsXWI4G4RiWvzZ7wzL5eKJKCI3v8px+tJN5FWi4Eoy32qVrjqVtNn77IzE0JyWwe6DugT3sRu9JrkCw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-9f1c5YSs+FnI8FP18n/TY9yv2Qt9s9yXnLVIOJx4NAbmwCgbSA8qORK+hw9tmKrt8yLKxFg3tRKZXPyqAse4Jw==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -13638,7 +13640,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-mu/7lmKqtBZiHUmLgoRX+DUNMGli60POYBkX/oInW/lhte2lDMpUwT2CfNwaIsa5lIzcmukdPs8pyPCZkFYs9A==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-cxV8lGIc6qBho8Z/P9SDEfvPT7QkEHkcqTrAQBnm7XEyUR90jXUumTais+DGwYd9TuUOaySAE3Cq9TOtsD8n3Q==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -13664,7 +13666,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-izX2d+tCBAsTArlKXWZPE7dC+JZBwf6RzZexfi2O8YH4SEGaWKE7Z5+ufBxxlM03MhE36tvrdZozWb0hjGDICA==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-WiPoeP0wmVQm+wF3/1No2z4+1dhaNHMpIczIEj2lgvSqDZOUg7Vsky2Ypwf6ayRCyWG1xMqxkHn8VSsxSGjhrA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -13691,7 +13693,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-lVSPNDsTFpmn+0NfABQU2ulAqE1fDBeW4at7Yo+/1dbqblsyiYQxRKsfhMcS3bmcVMo7/F5TLrzcbY3PnSs33A==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-TwgY8kp0XnjxyGXghLjmT7SQTJGtSWEZlccxWvN5Kizah5FW0QaoVFqrT2KGq1efS40TUxbUUJ/wD9fvxq0crw==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -13718,7 +13720,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-HgPgdOYD0GC1VbSniyOKV+k8NQP+Nf4Y8gUcQgmvkpd4GmKGOYWIOJLAGRVkXJcP1JUhHn7XxsR0XGAiWNKu4Q==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-ws5mhvxHYC6HQl5DHRne0d5IWSVunp5PZ10NqYgl0hA+Kx3X4gVPg5/6olxJapbpymXfUAbms09JK56bSdk6Tw==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -13744,7 +13746,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-nA6QiHAbJBIynUYqo4VaqLyU9i5lp3F+yUocs6dmVSuhohHAx7bfe0FAnCDl/UezrO71wAykb5moe276qXWXsw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-wTxwkOtBLi68wc50lodK3gaUoHAEEDM/UumdXLQJGzV0GzJi2nzWqJvHlDBMuOJ14paiEwYfUeqEwAncAqm4nw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -13772,7 +13774,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-NPqD1UGqFAN0iiYxgzsD+5UYekqhoKTquGDR/5AlUB2wJYIebyhSzCelZvqbn+xhrBELw+MsVhNYwVJmK+LXyA==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-AC1nlOLofqoFh7fIxslrXKueMzH9NBzsDBagOJirMUvR2561t8SOiZQJ99hOechNEzV9rYi5jL7hMJHU2rc9UA==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -13799,7 +13801,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-MKVqAlcqZxOros4bknf/8NHB4o2X21VtvvBZ0byeh1/Or/OB9rlp0FqUC9A8KEPLWXyV/ddYOhJ/rAyYnbT54w==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-rss20Yb178oeAFD0Se5k6req3ISEo18wahvChMulBOBrxgLuWIe5M0YGHwGAOFPDgF75jyiS6MoKcQylsviBqA==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -13826,7 +13828,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-5FFjCGmPTl6jhVc22w++BvTUb2LwQaR+/exnnJCnQBf7GGRpJOeTcpmBm2rlmS2wbyr1T6Qzih2q9w4eyqxCAw==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-VMLVDqZrBva4XSc96fyZ+yEc6gPnmw3MGVaXEvCQZAtaT+kyOQQfE+QGIIbCFCAUX5UfWk8nHE6wS8QzdT1Dpw==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -13852,7 +13854,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-3DAcFCisgyQlaYSKkCZyYAOLHl51ed8wiK+2FsTcObuCx7Fq7/K86fl2Btoy6/Lhx5TntW74MHB2dSnkknSFxQ==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-yiiLuQ9PmrsGf1M8W+ZROkF2y+egwrM0Cv0Yct9fRk/lE28ZJjVxofNp64nDZBEVULtRy8uexYek5rTIcHERKA==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -13880,7 +13882,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-t6yBBcu+y9ZiyK7+HgWwHELlBzDvihFx3gVys1hfo+5iF3p/DxqYWBVsEwJIEMYl7T27WwzL7ddt5JlKoPeBXA==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-dp7VY5hqr4kKMHm8E8voKdabfPeIvwHqpt3/v2t/hdvnrnNFkAh6e4Ktipn+NGfw4icTjtFjy2ePN5l1SZCoZQ==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -13908,7 +13910,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-UoXd//VD88eyTFXh7pK2KjKfWCN9iJgKuAJpTiJlOPjtNsyGKBKrrBCNFjPpsZ+cbBGJ72C9+03J49tpcXDb6w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-ei3dXbw0SPBO7472e5Lc2k2U4zGgoVaLnKd3Cj6jTia88sTZW/GkmmZHfRChOthiaU/skOzZ/Nmlvj6DFoah6w==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -13934,7 +13936,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-Sy5p8Gfs1IANvvG1j35dRubNwpi2rK4VlhhlLhXRN6f3Laxxy6f0KR9wz658HF/AOYA/SEkt703waCeBfyYlyw==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-jaQ9mOdgkp1Q0iioQI3CH4Vd96kQQICbN61iuDmabjybD9YDPkkcGsgs9s3k+DLLy2z00nHtugf2NngsUqmCmA==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -13962,7 +13964,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-QhFL8mPuYVp9XnRzSKBav++afPgp0MkdhTaB14//IOFCS6yaY6XOmVKQhshoHk7lPeBw+XcxiMGZvbn9hrlKYw==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-eOGMj0hE798uQgwsFhk07Tlv+X5v3J5CHViZcVkP3T5Q3PDwAGWKImRY5KoNCVRn5OhlNaqP1jfASv75hAsTPg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -13988,7 +13990,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-xqfMYQWliSpAFgm11vF2rQSeJhfxgUiTcXSarj2PKbb+IQ+3nH21YDs/ftJuyOOLihLFbmxlQvT8eKuQStRoeQ==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-dgmRfWg1hnBn5L4dbm0/A55CP747c1U6ut/GG2FeUHQ+fiHB94z0CrCknyX6cer3nUI44R1WntdRtR03JG9vPw==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -14016,7 +14018,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-jtoCXQudxlOMVFYekAyBSLImoRlpAvAFvXFEgBb/GVXscEzSeDsTd5VCUH1Zvrs8B9CTqy7U2nA0NaveCXa06A==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-EDPsPyOrfkNm5eGS2F0IhirUBQidpeOBlKVDj/uByJzVznz56yxIAuRTRxWbNYUZfC2fLSgRmdgTN+q6ahd6cA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -14044,7 +14046,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-+d/6wcGG3OeAnrexKwryshVou4efDM5mhgKeICKfzTozbGhN1osPZREFQKN8cBa5X9WATQ7kVyTPyUlIfwv7SQ==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-EzFNFoH25ciLltRS5mTnby6xKHJxrPqArc8bizMXffyEkUioNgMQPehlooRg2YTXa1DwQGeoOBDW1Zr2R16JRw==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -14070,7 +14072,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-WjogQNEjuVkfiAN9gnaphl5L0qQxUQQeHY9TIv1ntiGFcHFuK4X5irE3erwuZa8aBPCE3lBEnFWIGTfk/ix7Jw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-TVCRaGPO1/PFRav4n7v79oTPfBsAUROLR/IAhd/zuhPM9eVfXFjB2yzPzpbtKEe+GxREpOgCEy4qxpbBTYpE/g==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -14096,7 +14098,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-ndygVizo0cHx1f9cVvkvxX0NSLNi1b03leE9VYaa4ZL6YWG0FcpldvUyWXjXtqnXfT8Gt1pYvxde74aSj/XgOA==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ap+Z6OrBcTh8HXomCKUgo84XPUgrCbp4GSxGaXRqIeU/pT+yjcB8hL+xz3Qy4VODIqnEiGiq5i37BCWxqo9I3g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14123,7 +14125,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-Fv0lEr32w1wHSr/++mppG8Usw+fDCsdWCd3L3n3nXd05meGuVEjlNbrUGj7orLoFQE5v839JlAUec5uPIGxL7Q==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-IK93gDYqcxLAd5/fprkJBfMYWTwFE+jKSZTY8+CkfWrx8v8sFEUMndDu9C8wkylqpZ9ahvqe560fsI7/WDoTGw==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -14150,7 +14152,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-srfYMkQo+2vzcw1FuYDN4ygHKff8u0p5DmS8/WQme9KmSrnoXSebMFYNfWlLhESHwI3TZoq7jngKYriebz/C/Q==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-lT/DvF/9sFj5AUJnqnxHx13A+C+KGWWdg1oTPTE5YcVSyvCiMANU/0kVsi5llBXbgvjR5iE0ZLNertZGj0bjVg==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14177,7 +14179,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-CxgUmA5b8mNXEHzxim6ap/evv1p6YZIAdfmet9qsbu74tcwSb+ty+Fkit7xwvyqlEZ3XAggzmkuH8g8qUPZjQw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-5J26dX52OdiglGFO2C5HEYBHJ/cAglmw0+6C0/h5GI0K9i991TwZyhu2drE/InXY0Bye+DafznjMfbworbcHRQ==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -14205,7 +14207,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-FzzUjDedwl6PgApeoOoQPbh9TRWMq5pfolQ3g1C5Xa/VGPz/Qdy0HvFswt00uHSeyuoAi4+aQZvr2VI9M0Wb1w==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-UCuOUS8jLbg9fqrFldv65BoWTCv7zUtY7GcAsPmWjktn5avFyR1CVa25VrzmEwI7Kz3MAe4NQ4kd+5yeSd38tg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -14232,7 +14234,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-+S9nWXmKnozmTEeevAyzGORODSi4S4kUjzZe+m2101+ualinDLfkkBjRHy635Y0pHmJ1i7ywNv0BcfhMHiH7og==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-ZGcWF+8qoEOWnZt2LVMCrlOAlPkHlWG+icwN+7HgD0GWrhp2aQbk2FQxyXEcM5KZ/xFyC+Usl9YYUbCJRuiibQ==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -14259,7 +14261,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-i64F2+sfyinjeI6+7ZM+hJfYeF075HeRGm43IPoMmYILG/GY06SMB/4oelcoTDd+Ct8eboNVQB3iRCWd3c1NDA==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-5B7F/ARVRCMje4lEBtAYKO2cchl/bCdYxsEe1UzVx2LC9dH5oKFSehKkMBUIb5VVI5lUOZ0WwQ/FeG8O1DOQSg==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -14286,7 +14288,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-lO9Q5RIVa9eIxfL1ni3r8h27ysSkSdC+KH9mcgBsRJkhSZywAvepIqnn+aPtnRxyx4L25Ca9FRJTdTHOttlgnA==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-sdpJjnXZnSAusOEmdMUO8AKVbVh1efEc0pv+nmGJrlqgv5Ky6h+elrHR2FwrAtdZsodoubh0owGBeqCccqA4Kg==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -14314,7 +14316,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-McQK4lLqTDACdrIbX2PQoRk/AAJDDcFYBzGhsUhPSkhAPXQHJNG3iP3L3kstgzBYfYRlNGPHXMhV9wbn0XMOwg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-0MrD1N27J/zHy0WuJWhDnH5yigl/7ideSPOq8jvphElPaf63WPsKt/y+zZA6yX85LwTs5xW9dlMTZ1GCHrgHFg==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -14339,7 +14341,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-yYDAiubQWvh5dv2HkaSZkXBnPUGgmu2bppWeY+OctiD0kdWuziv3+dlQJTcsYHJYbIXak8mRgp8D+fOpOIUpUw==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-3mNR1SA2SXx+lyCzHchx0WGoDaGhN0HN/hLwql+FWr0YbBWO38ys0TVsRhJWYyE9Sd+2NkgnSVVLUwINmcDzrg==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -14366,7 +14368,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aP3BKP6x6VloB97Z64xb5PGsb41pzAHamL8fD6lj2EyKKxoBW1Fo4GgUw6gvRELhSl0KbDg3n7TmAGlu2furgw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-MM1YQWv+Djqo44GlUOaVms1ry8pZN/XdPPXF1UTnGy5T/Z+rPHHX/9cpSBjKVzdOnhfBnbIDh8BhLamBGvDB6w==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14392,7 +14394,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-3gK+FF8jTwpVOwgkkgdPqTNmFL+txflMo4lPDggW4M0u1vnOqa5+wCoi/RihWA8lhjhPTMwBmqIk1KgCau2P6w==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-NvQ3Z1c6s2jwz+1CCF/Soh6x1iaBCUR3sK6PbLQXyUBOMEAZ0TvjiMrk3SsTq5Ib04nNDnBAGTNECI+/txCtQw==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -14417,7 +14419,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-MOQTVkl5V1eisNyW/TEDd8g2pHY9PdnPxyQ15+cZhdOlVx8JrptUVrgr1UUeEYSUqMK03eT9bouUa71zzipIbQ==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-a/dJxaYa/V4zraMumW+JUERMqiWJRJmCADrtAi8vN534bHzFD2bpOPrnqRs7+IhTtqSpS3y6AHSFry0krduxow==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -14444,7 +14446,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-75hb8WOyINOoDc38e7gYKDr/Sz8SrFz10wxhWkQ7DHoZ9FQLCH3j41TwEBCnuXy27mzedozklcZxVbE189VgZQ==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-R6LzfhCCd2XgsGzXan+Ah1PjWvAVBKrK16boVBCJq0baPh+zamTG8CxBrMrvrY1xsFQfoHh98qnb/7FfpS1O+w==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -14470,7 +14472,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-I9FNymQpc2olKVXL9gws1OZ/MAPvu1IYEnYyEHeTI0PJTUTOaLAimaitGRPvUGS6VSiERUPMP8ZVK8WqwMJw3Q==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-clysHmuJIoRN6GLbav2Ef0LbI/9Kgg+AJbuzndElf6okICaBW709mzH9q95y/kU8xLA1Pv+6VK5+kKGUQs8JQA==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -14496,7 +14498,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-GHFW6M81BuG7EZUBBrSUNvnhiwmu0MonuTL2iBFC4wHOo1FCFrD+zeJzMhb3PGoWqVmjRrwC9XRr4ZXRtLAytw==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-zzTrdQzKuDO7WB7aZSDSj82VDrf4+ampa4FaZIkKjnvXPqZ/8RG5oZUSfhKt6IGu38i/lkFmEw9i5zVT08YeEA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -14522,7 +14524,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-9dEsnfcOz/nNTOcpaoekSTPdI2wIes9gC7r3dI2xU6LbEx980+RAVnK5hPWgnQ75w9PMbbHEWESKauF1gOEZoQ==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-yuidOEP7AWn1zvqUEAM7WI8rTRCKeQAPmzfZ3NZMRK5SK/kbfHd31ckhcG6FUPQX33lj8QA2d4TI5+1PqMzqGg==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -14545,7 +14547,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-xcC2gXy4yMak1dsAQZ90+L15G7r5c3yFMkyh9OKosi8wG87lhAc55k1jk+nWS2B6WoqIwKWbWdF3xAuQLTjurw==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-x45e4cSI4uAh1K8TZKBjIEBa8ONrS2pndGLkNJALxeCF0WnPfnjnin9ievz0SEn33vCQYHDWhA0mTa9T1j71SA==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -14572,7 +14574,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-p7RcdA+wL3TCKxLeVjpurjFLU7ETSE6NZJbSst/2SDe85kIRjxNa0v9oZL/c6Bwxjk3ABOcxiM87qPXVHhW2Kg==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-UpgMeaPtnHKpfIJveCbCBFBvALedwS5J1ZmylwfWWnVk8Fk4wJkBphLdCbPP9VtJrcG7+7mopGb9gNMuinGdog==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -14599,7 +14601,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-B7O4vAu0ZU9NLnrC+9XEoEnaCqZsofKWeeJBJf4iqLBNpXPyEr9S4vegeinuponSHgkPX7K3VMWoJGl9u52a4Q==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-naErVuF6NP7dUvNRnLnQyQLAxhBrG4vClYWBBeBcue01sG1H+yPsKTMHRWF0FvrNKkhJ2QXJ7cUE3bBfIDwdkw==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -14625,7 +14627,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-RnwjZkNbDxsLU7STx1Wjie0EcbmMzKLQsef/yx5VrilY/pa7kKLerawjMVYn1iM7rOYV/itMxBOzEnXM7Umu+w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-V/5vfpNX3DzXMWL1Doz+af2hWGrnRM+5vO7FOTK86appRUuPA3CDBza8uYQFsGvTJFdbeDhJNYo7rbYbV2IK9w==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -14651,7 +14653,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-LBFxDOR4MDgM8ER2PIIvO4v48K+xhHLFwr4agj29JVtWGnP+qU3NiUtBIYcCjzF2P9yh3K0l2WVuxOIRcmgX/w==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-iyevSHmaCF3/3r0HnXyLeD+UDAnu0eFFC7l+B+6KS7w6002PbA8qI3wZKIKtkNJ3EjD00Jl/KjiZszXPqLJ4fg==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -14677,7 +14679,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-vE2H9yszk8Fsmt6okk93OVMRjd2TaPLGhVlbQn7MaQiXI2qxQmIN76gmmuTWph50SiWT+FmUNqJniY0aD9M67A==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-MWtCbkD8+NPqz7gEONslSXEIAZistS7cxUuk5IcobtAre+TCY0r5ePIIto9A1J4Ry2E1kI4PgbJoKyzzlo2T8A==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -14703,7 +14705,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-mvbBWVanivDkhML7A+B7Ajhc9viR+MWRsejF0xf3vLJCtHC7uZ8oHUDEc9f6PRf71jnrCdNMe8t7onC4rZpmww==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-BFieCiiReWqBU4Bn90MT/nct9TfLeElIIWVJRvM350z7is07/Zhj7EiKkGL7w/iT+lZhfE9LwiKXd9ooU8WqrQ==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -14729,7 +14731,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-7QLoLg9/16IN1LvSC4Rg4l8ZVz5teMzswqgyy5OXwrTv645DTrO1Uscm3ghbiE6yG6po17T+ElxlwmF3Q5HyQQ==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-CDOlz7BXiXRyWt8iUyf4eVpx3NEErWajEeIQABkPjeIWyoIvv8D0pAMQNzl+niGGkgGLTsBfVKby3Sl+GHP96w==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -14756,7 +14758,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-LsBo7tCSvyNR+fMaTJfJ3+tEm28s2yDvosgL/AcDjZCuxDaEnH8NI1k7NVTmBnXJx+5TuZ3mK3/VjNlSyFZW7A==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-v8R/vweVHlHPNNLDAoQvKfeRVQ7oXpt4YEeV8G7PylAKGAJVG4tKpsiG6Kkg5xAWUwF+5CQjIrsFgyU8SV+23g==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -14782,7 +14784,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-Q+psd8EPbLB0M9BQ0/FhxytuM9rslkjHw0NXLagRgQ0wIIsdOAKtupBgnkaXN/dqu7hRxTMkvkaUqQCFXnakzw==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-sYBluPy2FMEuhw35LFzDGCUBt5tRNZ+s32SdZQ4X4lZxTgyYunBA8u8XOaZNM4fKGdkRFwLg6EjLIvDp4cTwfQ==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -14807,7 +14809,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-vFnMCn9qVBX91fybM9i+Grl1zb9IvgR/SbdqrpsS0K3edmMJVahXhR44CSBI/bD2zrzFlZnCnibVWDIq3Um2fQ==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-szV/QySx5b2H7nf86GrReqVlXdKlnnwJ/I6RYZvbJSC+0m/4VKwjh91uUPls/8lJeKNikrJ9JwSO3dewJREKpA==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -14835,7 +14837,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-HWAbTdMI2a3v/HGSyijai42JPgzaSxRgspUTGnIIxw5f+8w+50s1IyVFQHNJeQKkxg01eu2ue0MHnziLnv37DA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cofYNg0UFFy+EfxpFwqzS3po2NIGuMeY5658PhcuwFK4JrF3B6KqtIx5PFFaMiZlnv6nTB9W0yXqKrnnxaQLUA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14861,7 +14863,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-LGe1iNUoZQYZrNM4/RNoR1/+EF8IbcjoApmtx/watdJQTkPGiiGJoZCf4s6VitBSLdthc+xSJ9+72cKXFvPLEw==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-Efshfh+xTjfC56URQqDUCrE4Uz4CXRgP+O22PnXhrrmtufY52ttt0ChaeKHzhFIcliTi2BIKbWNPc5dBAppl9g==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -14888,7 +14890,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-Lwn16GKLfnJfDlPBpQQ3S7AVMHDUZABIS+e1mWDYgukN4ZPVPn0pXNuc9WoT970JtF8eaVdKJwjzzRLfB+UUXA==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-wdc183yCbS5B1hWay56jl87v8C15ofpipmg/LkjC/96X05HiBgCE6mo0JXtUi01lyqMV55sJshDIan7SCF1U1w==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -14914,7 +14916,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-8ct3yqJVZgtDf4RG5p0cEoWq3Diu67dixpHz/vJT6XppTF9LFC9Eg6phTc2Mdv/R5KqE6fas1XrbhT0YiVsHeQ==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-2OWuTKr2dm2jloyaQUujNd02bDOpBxP/mFFlYz3b9Om6U+6LHk96HbnNawaFE0r/i/ni+JhdedEqx1bgJuUkdQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -14941,7 +14943,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-h+BTVXYteK0CeDUVTBqwDmwB1ZpRjOftvYOtLgwwt1K0GU8n0RNNANLYQLCpV3I5QchUFHZDMWpgMzFschmzhw==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-ezWS1P7whjPMUjyfb6m9BSZbKg7kCA874ldLoYbNytscFviQn2p8StF4pBLwxqD6m2GGKQxeaHo38Pn1r0nWmg==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -14967,7 +14969,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-NRbSU4tJHEd86VfwKHMbcal8t80wxgIPUPDqTeSleNgMA45Ri9gMA2nly60ouqM7yEO4OdIF9GTPflKSfSMPIg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-iOr22rUz3RnnZpiCDvp3RSo4bmPK1WzN4Xu5OF8wdmzW5Yg59oQVQlTOHhwNzvs/cA11omf0ttR4TmNaj/F68Q==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -14995,7 +14997,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-+/uTgvdvzxGR+YCty75Sy6WOIEQArVbrpD6ZzEfrxrRpqW36HQjs72d77+73qPVQ08fpigR5eCASUK5H0DsCGA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-kcCcRRDpCucKA17wiiYbOvna84m4alTq68FhRTv6QtZa5OGACaE/se+vJokITCz1d5toOujUCyZ6jjkdbrWSPA==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -15023,7 +15025,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-LCineChGQdQRI2T/DTEtrG+i/A+XZrp7h/j8/2CxbveH94qQpxWrqVnCLlPgEEG9jXAlu2Q/unYxGu5o2OK7VQ==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-tSqD3NQBVDjJ+3SxQNTPVkexM1HlO5maMeh7wYvJD42PMPni4uH7ojYnTtDXoUu7KlkQ66laBwSvr/XNDiYHng==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15050,7 +15052,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-JoKUmprfuOrjFxiY68Y8NQlfVMoMGjoxRmQokRHL4mxgPkO1vcm/1o0r5+9JHnN9y+rYta/43v/eluNHt0c2WQ==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-jI23ki0LYxtwy59OFvnMY3sYBbrtpuJZP84Rdyv3R7JzlyB3LVfaoT7PsPkQcdjCs6OfiNBbpI48qMK/DgG95Q==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -15093,7 +15095,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-eVa07skT/98o2bwqgqQbEN1y/UwzoFOOIfUg/YWFWz8w7iYzktIN8GyeblJMnmB2J2/Lo8hQdgD8mfK3XVu9AA==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-C379kFhClyqTlThUmNlHIfBUkJ/D7Bpz8FpPPH/VxT9PFHeBOBRugg8DETWzEFhPjgFTB6GbV2YiXE5dGkApkQ==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -15121,7 +15123,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-NCBJCvly9qFhObxV7wLo7M/LaYkwfSx1Aw4mXzOYDNsukmrH3pHUnwZi80tUh4+oiAVd4NSa9MEiTqDlZd9llQ==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-/jywTEuTPqjudCfBCxEYW/HQdRkNeifVdr4jPMhulVTRwsMRLBRijaAuf2gWNlDb61k5Wwyx3lvLpneaQJy/WQ==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -15148,7 +15150,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-Z34SPZJ2yJ6iyU2XhNtss2so3u9r700aK+jrSIBHDlHUi7SCVr+srrWXHViolEwnARFFTCjkFPcGICjr9S7ccw==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-W0xCa7YjUaJ8KWL48v+dSChszFcpar9VYJkckqzrqqtr+rVpXA+Qlghmmq4UwuFPSKpzdWCQztTz3tMxuTv38A==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -15174,7 +15176,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-OX7qpyv3z9EQxyDSzQt4K0iwOacNu/o0r58CHC8k5kHRHquAVDia5sE6j0tN5Q+odhvdxZKUooXw4LRQC8FG5g==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-fSwUreQRzyD3E2QvkZ7RHVaq++ZpZHYwV4igjsiBXi/xKjbtGOgxjABDnUimkTz5kHjBAGpNmNy1wQG3znpwkw==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -15201,7 +15203,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-LoqehVB1afT29IOfLh7Qk5tO0L+Shm6R2NDTuhARtR741dNCcFgJGvcwfG15h9SoMvNE0r9dToFU1gMloGTLsw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-UWfk58+Oa2IygrftoJrMt9kBO7RG4+g5qZrjrOz9AU8m2sC8BJFh7NybgRl9wgLy8ESHQR6HuUNpy3X5ef7wwg==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -15229,7 +15231,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-jKI293g20PoBmUCOGlCyMaqSELaMO10wwcclQyqOwdJJrophygB6lLXXFW8APhhlo8DhtAOv1/jIf9OWzodipQ==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-I1FS9xc0y545E4Q8dJFj1uFhkbykV2RJVI61eqy8nL3bh2R0Z8cxMbtd/rYIRdiy/l62QCC8iX7KomAWsO6NSQ==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -15255,7 +15257,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-gxo797QyCyQe7orCyMnvnzy7u436O0VJn71cbCBolurYom8f8ljS0PWt9hfT8NQ+dYvnWncGkHRALMAwaGdm+w==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-uEx7/GpRn6UiRy0iVP38og9AaR6FB9yQES8mDcS21TuazUwMYteEONiHCz5snmQiLTSG8eqD6Q1naHUo7Sq/OA==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -15281,7 +15283,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-Wyb7Eb0ySdtcocGGKaKgFkednNki++RMfltXBtWGvyC097tud2IQz/QxM26dqlIzLkHhgpRR+BbZBzAi0wHvuw==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-LnXw8KN1Xetot9SxduGDGub5SJlIHcZVAfvHYknMEK7laeFsthbDtaJhMLBnDVmuhWSGv0Pp35c91zEdPf+iYQ==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -15308,7 +15310,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-dpgWL0kDJp4/hfPNsEYozAAg6YMwwi6cXfHn7wsmv7R+qktlTa2PEQyuirfoDQIFD1chTEgquQ7WtpwI+KN7nw==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-hXOQDmMAllVkylM7KYMMgtQIZUJ12DH/6RowMWU961RYR1Q/E0ilHMu7Y2tdT/TIzBpS+8ksmF7giXlFsiStpA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -15334,7 +15336,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-i4wi1IyjC0rtnSs3znILZx+jLnUHejlGb9wB0SGRr8hWCRMhlUqLnYmA19ex923NQwU/Vc53Z6mSNTSe/WeEVQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-tXA9+IdDIWnwYyeoe6bUpNT3Q5rcPnA7BsBtGaIsdW6oN+nqpbg9098U6BT5Q8ak36o0TBiT+dx/Tu6dEWhL8w==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -15361,7 +15363,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-+s2/hTPQ+ei20+UDdn8CBJQzWlXSJvPHr3Bg4OuBmN1MVrpQXVDOHYCWWiNTNX2slbijSSYxFj92QWohThNHXQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-SaodGf9bzBLZLfAkVcSdAodHHLKlf3LHYIN2WpwkAdXKzm4OPV/+MD7F+IMZmQRDH8jY8pfipka6l5UBUFbLbA==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -15389,7 +15391,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-nwxqfuEt8kAizeFNun74U6uy9qPQRHbNIkGqAIEmcjcw141TAaSdPe5vYH1pyoxaO4WajA1b6cH5FqC5aMV4dQ==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-bMJcA6Z2q0AZlFEFmf3swnCUS9Uh+SzdjCFhkrNbLtb4uhvCUrzzuf5bvfXxR/sDz9Hltv7lHIev3DigcFc8aA==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -15414,7 +15416,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-uvMCb4UDoIroxhOOohR+imdakfekXiJkBk0ltX3gJ7i+as7tkqfauzRGRzpSTJCaEVDXSW50P2nBUFZp63xKtQ==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-CJf33p9Vv7ylIvsbdEzMuXFikIrP2QojqX601qJoHwFanjrU05ADROulvioErYQgMjafcnUV2TaxQRv7e89mbA==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -15442,7 +15444,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Wa8k5UqQgrp4U/+GrOitGrrx3hiG+b8O3t3wc2d1ijEMSyKSyuFYg56HQlGWsbZBIJpz0lQxL5l1nU9nEnAUlQ==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ScDB/DBpaVYtx/VyVsUvIlGLL38Ob0vFMj6kOdTvwtBz3GBW8YK76hHbwzq5p9UY+3CWNFlGdWBPM3ogPqzU/Q==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15468,7 +15470,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-aB2FSfveainXfLvZI6RowqO90yRj2xCFke52+mVFnXAwv03jGxQ6ewsf+MKp3ALHsSrIDfMcSOX/sWwfbSABaA==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-AEZgoj/i7SNLMWguRNvmLssudvwgZ0S6IiPxj/EKZrFJjIYgQdWuQA2RlzjIIB2jz217+VolAwO9XRXSZfylyA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -15494,7 +15496,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-KRYQKocGsCeJ+CDRWzkV4vweX0Qxgil7Y7lrTNhsWdBXLYmMIEn4IBmDb6uTOao+klGCGhqZp9R+Sa7EecLJ+Q==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-qvjuosuqlOAfGzKH5kr3XKzeDrE1zmd/u2c0gML81dz3Cah1tSdeZaXED4uziqro4WLTdrn5PSN6m6XvVUDfiA==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -15521,7 +15523,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-OT6lsn37reuBJ5wweEPXg+Sx4K0Q7Vz0qhnzVETQutPDn/h7TzRtc5XW/znrdI1cmelSl+nJaY4FLAxGc4eBSw==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-2/pAo489o9F6JvBw1qjuFgPRxbNqM/LqqvH2N3eCuHF+o6jPWCaFrnUaduvRvITU+90e7wnKy0ma1xpNYHzKug==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -15547,7 +15549,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-l0Hc7dJBOdXsPU6AZ4XQwmwsq9bjfTIm4CLaCTTbS9wrvs3lJn/HshqsF+shfCdRhQPCX9zkLOIhKutTsWr3QQ==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-l0vG6NpEp/wDV8Fotsu59mf16K2gelt+zcA4oj2F0rlCR/LPDYIs29GS0P6hbBz8cvJhbeYGxLENs6r1RVKIXw==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -15575,7 +15577,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-M5ds2idICzu8Gw/+v6o/xYvp+2UaYke3IJtoyy11KRvqmT/DF4v4VZTAw5INVRx5nFbtQN/lp72ZvLWGOI/K5g==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-LBmz0Y4Rka9qVxtNekE7hUZHzSJ1Wak5pvO7qAps4xrRGVJ3D35Q5FUSDQOxtb44FxX5i+z7a2LyfREpI+MhnA==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -15601,7 +15603,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-5Qa8t92V81IOeEsn/1yi4cDf9lxui561+EnV2MezUq247fD8P3UFhb4ocRMIWsQ2AWawtCPvOsBOeAG6FVXWxw==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-ajCMyddRyk4S7o5Dg51r82VCn7kiC7w6CUWJLjceafh+4eU3vkSERS8Gatw9JWS6vyP3quxJzh0J7SiJnH8XAA==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -15628,7 +15630,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-yZSYyun5j0/HNDTHSfmHp6ox5vHB1zRvVfqfKkLUUBay2wVhMbo26tK0dkHUB5easM8bxI9NfrAjp/deGVPg1A==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-dbkP9c/pUaT6jXZOv2usIoT8Vcd6HRfVFu/GzZbGZiMENqRBdMQ/bXMNtPRSExqpP1y6AsNNVUTPSBSNJO4p9A==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -15654,7 +15656,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-iaQLjspd71wTIt4eSsvbIAP45CTozAm5paQyI7fWVcJzWrIGC6mFOTz+OBeeuupKzUcoAR0X8VMCUMWvlde7uw==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-Go/oNw0Y+VzYySaXVplOaAjQ808KKCytP2QRoJoad34bj7SIF1PzpzX0G0nGAQTMimCUD8KjeY5QbKrVXHfYiw==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -15681,7 +15683,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-x+zC/tSdWxGQIAXh4IQtQygsK+VO7Z+ndKNFvHighw+pDeyCOqabJ/EDBfYRiUbKKsHG9cZZ9dHrBpD/8eAldg==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-vGftQJy9mWyJQ/wL92XNBfHK9njHJ1u7FY1UNMBpVIVOF2plh2ueErK3XZZ63AJQKMzJnJ8aKEkUaUjQSLZPGg==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -15707,7 +15709,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-qzUmUJh/zFka1tRc79IZ4unPxia2XdsZ/QOTW5HwARZDewNEwqGPjTgjDILmvJ+bjRFIcGeYLlF6dSA9ZXqW8g==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-bGBbMsjSYeByQCF5oOH8xkJ0h+q9kwy+h/22rHe4GMEbPleiWO4w+BQq255ehROKxcvmt3vwp6xsr5mta+wNAw==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -15735,7 +15737,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-g3rgrE9ZtbElbL8Te8fKtmIQAhZWqVTaXEV6FW9vTlCGspjh1zTV7IYIE+Poc12Agg4IOeLKWM/UOVvmyGPNbg==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-GNfb2C0thI6BztiDRxWxekFhaNMrxfr49TUTM6I8FqAcQX3TZ7+Xn6not89GXiMWVathvrFf8TMkoJ7ZGrYKKg==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -15762,7 +15764,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-SliWaIN+Rcv9IO/Jg5OpZ8rxNzffNfZJOa375V45hPzipbZhzW0s+9MaxYzA3zFcbuiL7UMLpoOVYxWMQejEzQ==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-NCB8Nen24P4lV4Wy+a95Sw4HrMVkqcklyfs3HMOb0IxFrpThJiOJhS1rXkvD5Ec1okfBfNPcwzWQLvt3HOEjWA==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -15790,7 +15792,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-oHs4BOulQEkaG3QFPJe0IyomjAZEinjir0bYx2s68YRO+rGj0A+Sv/Qnm8LoB/6BTjUl42nLBCS7eJUpYe4WmQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-b/d81K7IFPOaKtope73jrqBUNX3I3gT8DCJD2gFLWxwmkkjD0CJLFOmMUhAxlIO0RSyvOakXpwYaKwsc1BF7nA==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -15818,7 +15820,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-iqNtY8YcvXuQYIeUxhbhCvkji454xHj9UjfVM9r6N3akRvT+oVW7sjpNmm6Gw589QjHwdQgR5EGJnRrTsUrMMg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-OzGxbqydzboTjE7i/WUZZuPcWWP5hrWN1Y5sz51julbp5mrrCEsbAfLJ77/AcS2C8tjFQjkpoHNXbUkJ3QoJ7A==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -15845,7 +15847,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-CgDiJWEfBie5uPa9+Dm/wsTvLuvtJjhMB41s1uiteo4ApKDyqJhEEaSONEdpQG6LIgfrJiywobzqGUjNIfMEAg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-vJd7uw+vO2EWOgb4Q2VS1w730vcEK4IKXWEdHKeULLiKQkOMC2R5yv+ScT4W5qLrpPWxofVGdtvlTChaVFuxNQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -15873,7 +15875,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-24kYQGbM58lv5R/61dogsGUC0izDyJKrMTR3KWJKYQH76CtODDn71J0E90qeyXrjRuwGqw+b34eZCaUqyUHX5Q==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-+BeQXBTf7kqyP76WWTlQv4QWnH7jTEp5YeFTlLmFPqNmW0Bc/Eo3A1CwWk5vXlax+CluToqUJWWwOlY0t+2djw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -15900,7 +15902,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-mqMdKd0YceLk1s62hkd4wG7WdHbH+lAHLHvzg27AHCgw24bq2y9C1WuVSkhxVKk1TRx1zBihrxPy8Xb3fzEaYQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-4n8ys1OvtE9/Glu+R82iq1RAXAy8bQCdqfKCnmpi/XBBBTQy09gCxa2oaFd2gz2cvWpaQ+9iPEztdy4j/Vi5ng==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -15928,7 +15930,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-sI/vErh7yDc9Oufx+TIXMwNp1EH8DEznIA3832PJ9TeG+Z+dS6e2+b96N86cfm6KrXbRfGHnONJfp6BEH+3B8g==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-s+JbUbQxJxp9Xp8Em9GYV0o7ngPo55Mg97VaiwgBe6l9vu5LMcTTD383xdtwO7UDGkSfXEFUoNbNw+G4jKGtDw==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -15956,7 +15958,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-xnKnpIHxEpsKfRhulihBggq//JkicyBaY7eyKIFi1utQ7H3qO33ZdCaQSVpNULOUdnfwoGhS3lZeMvlrkIYFSw==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-JlXpIV1zrOr+LpiWchISq1AlyNe8NpFmbnd8Us1TNJ5UrYOv942PP25GjqjOTIPt9dfmvx7+WyvxT11YPK+Mag==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -15983,7 +15985,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-3iRs3Rasp6wqQReALavxv1Dyn08akPMzF72PJYYtLT6n9w0h+OhrmqJ93kkZlWbkY/yujmqHGI12z17zVahvuA==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-vasJSz66UVx6WHC/riLzubuHEUXbZjRdSb4tWNUW3Tn6tflQE53bzn1ItzFVZwdGYkIqjAesNhiVIA9tmrogCQ==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -16010,7 +16012,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-B9lagXZTe7K5PZ8NejCd5z8k3+7ZGwbdqlaHPH5RBrX55bV1IS4qhq3AJ6CuXVM8wejBdQYdu8wIdRc4KZsvdw==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-gy7eAtkdZt738VAx8eTfHQa5lc8Fj2FQjAk6W/uUVAAbmXLZ3ASm370F4gVOsRVUzxcZKVMKVgtx79xjiw6YxQ==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -16037,7 +16039,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-zUH7LG2pwzVDPlZCI4VhBJre2Df2c33s7NV+ux4ZRc6MSlt1mcxtXxEYvfMXNf7+Zr+sZBXmfcMiVs8+VuhQCA==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-xQzcEpIRXN7JoZUW1lA8YasKIzAb8R53i9pJxiKq+OKSLqYl5h5Vk6Zbi2+LbPYRM0C+NlHm04r/gpE+eThJdg==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -16062,7 +16064,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-QKYu1rCesMdlYKEKRHiTU1UeDDxNFERyKyXDh2847lxymwPP/D1MRzCP//Ctri6pe2jvXNUIZQ7fGV9ufLdtyQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-Z51b5HFcWWH29xEmIXXHHtKVUfQypZzALV6iTjCdD0qXITxApCxJLFse21nYLA48sBUbt088A9GHYCIBD/m2SQ==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -16088,7 +16090,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-GfCk+cFykR+OoOwOAK4sETZulOSenwWMKQFKXow28F1TOsR7nWWRONcKMB0WOqsl4Os0XxMPF5y4uSSnAxx94w==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-k7+ll78u2TfVXKR/W7UCIbPeSxCCrX8KSU+NEvUGgxNK+aygpqTmXUM8meudXQetPCcDa4TgMH/LbYA2ybzthw==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -16115,7 +16117,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-nMgyss1eb62firJEw9NM09/3z5YvqP7giS46NZ5e9ll9yHX4cJ3NWT3wHrNtwDpvb9lrV84laOv1RI5gScxpGQ==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-bmv6pnZKwvc1JpOIRG0VLSIUFOsU3d1X9SzP2+a6PEdaDEHgPQCxT7esdcfW78m788GB2IX+eJAZ7/ftw5Nvpw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16142,7 +16144,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-ZLi8oi6cLlSk+Oc7Crje7aaZRCpFhQrTIRfH3p9Y0UbxM2uNB2C3DkTw2IYyNqezxrhPZfHg+3OHmm1b+U0qEA==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-aQa+zQmiVvqTjQNxtLs23aDqz6HvjnuhasprXgO/HC3URmZHryBN9B5fFO1RquR5xkgPWdE11518gFpBNu+m0w==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -16168,7 +16170,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-Qmu9lAuw2ebF6CJejpXYRp6msY9Tm80FEOUXCstYv1HTeuMT/XHWE51uiKtlzRX8mXIzEtKWqTLJbnA29HWAsw==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-VcsfgszOelIZOoH/4FhhWsUTtjFl2pvOLcQ3z2njGu5B8zkoIK1M1b7xu8kGp8b0iTnJUzcJHniFpXrb+9Ij7w==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -16195,7 +16197,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-JYfii9hNv1nNo/MVURWinVZLvStXzUhgAFwWGhwda9MEVnGqWxC2chsUZmB4SGjnsIQITuH/ValmCIPrRI6ZhQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-lcPYLyrvFVCkBL19YeAJOCcUyfKqX6Nn2gKUsgvy29vISakXeveFY21qqBINa8/VgTCHOURhZ67CP8fDZ1umAQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -16222,7 +16224,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-IXoHjgmuDT6lZv//NRYrQorGCNV4qvQZMw3nqZa+TVETc7SXtZ1XUJoChT7hIIFnAbvYBZx+9trbunaB8a7Y3A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-6dtp0PZjlfSwh/I+Qf/R4nUjW0BF6kY6I4LNSbGSdk+bJoAdZ+6+UXZrUkBfFjv//pNI5Uf2GBF5NhhzpewYgg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -16249,7 +16251,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-Na4arZcPzswhzF8Fi0O0+dX7HyhCx21d/zu8uDFsqF4t7vhArbxewOFnYfMWGBubDvkRslDDUKWbZOsMI/57Yw==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-g+7Hqxlm3v74YPvirCItNzAfEE+dFVKiZYfUTu8O8SUlJJqtcXWRcRu1XFd5sNrvjuPavzf61c2I1Oy3adkANg==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -16276,7 +16278,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-u2esuhP1W9Bw2VFdjt2PWia9UCncJ4MSKDfRZiBjompPLsoxhK6YzKNjzRlj6xy/D9CRRveQ7tV/1w/Jt7eCkw==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-qACFhnnwBFrThZ7rTUvxpSe+rFOlKRbgGZ/qy5Q6Mnu5ggDk+9p/7abIJG+Yyj8NC5HS09eELEs+K4eM9uB4wQ==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -16303,7 +16305,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-28flvZM982prcnmb138ArBvrXooi85fOQeMoGj3J0okzqkKWjtkmCtO6Xz9tJY3aZ/Fuvg/r5kHvgZbU0kP0dA==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-WFwbxg49BxfXBOH0+8P4kdnuri/AH9oNPKYS9O5Cmi87313R0Eht/Zzgb7/SMY78yo3s5deoJURru8t0DNrh6A==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -16330,7 +16332,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-nmSllrgu/D2fIm0lEg+JBXXZszU/FM4LFJJkZXRDjLQNVUi1Lz/yz4x8b2CvoXsW1a871gTXOi8q1Y8gUpZc9w==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-AQjct2rPlZn1Ru8fQ67UDbfVujDJUTnrHs+2Cv2ufopL6Orv5vVDBmp4kKQMIviKjTgDDyo0AVBtrIeaJCADKQ==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -16357,7 +16359,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-q0aIALRKdXZ7X7EweAexYcIZIZcl1CebIl5ZjMHrAMew2cA1bkpCr9Qt2yejiuO7xEZCDVFREZxCLwQODbagMA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-OLahXFLD5DfBdbjyUkVzHNRBhKeM8HSPBkkFKSVufIOk+EfPH6E4gAUMGoMXf12nZ5UIsSIDSOZs3CEZ5oe8kg==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -16385,7 +16387,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-i5RTkCVappoHBeA3b3r/hiST+az8+zDEC7CeCvOi8SAlyu58zJewIUn6AioE+ZKQ5g3mKL7vhWvr/VyA9rgTeQ==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-dl5F+DsMnDb26lV4oUQ0JwXTQEZLk8iGTzLHO0XVUYw3WB6wFmeNs3Q5xaij/TbNOq4cn6fDtICW+kl/eLRyPg==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -16410,7 +16412,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-71bEJOwUVHboeY+C685ShbjvT/cdO9NXdlcedl5eSugD32bShnObW3pKZ+Py0NiOxtCT+Xmk/gzZ0f0M0D7FEQ==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-MUuRxRAplWENpyAbZ9YlyNTPoMS6k8LfnfwqCt7g+TFqHTOsD/99ChEBqhB6be+QC9D9jmGy4J7Nw+JODDupvg==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -16437,7 +16439,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-nsxfrZy9e4+uvS0s4SnZVNA49Lmk22yUTB3TZRC00zzoGuTl2/zXgbxjJ/DCRXojTAHPxAj4/enrOMVwNaj9yA==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-2wxThW5vKAnYilJYqr4MdEdcPMPiz0ASVLSR1Jd7AgBAeeS/QhMDD8H4bWnpqs/4WzdxiZk5a+2Qr+NOxy5l8g==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -16465,7 +16467,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-dHSXtV5HilhWtF8WyDnTJ7DgLe4F85DVzVMs8BbN5EDioNrdalZ8tzPk+BiGsyBrtQ/VSPsRC/8EMps7HWY4UQ==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-Co2PAgIlcFoJjZ3WHlg8TGDJCA0sdQLYXihgV0s0/Xd6sB9fXZt6NX1OzB86zQpWwF/ILhqQbUSGBVlhvdZ9eg==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -16508,7 +16510,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-H40bxL/Rk2irrl7vylbxma3yRTJ1CzRHmlbvQEXBpjKFQifkCACxVGP13HAMBcAbZAMlkyqsMDVgH5daiE8TXw==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-hKIFXk5ywgwQf3Z2KxLSVivFg/WlCUf0MNOS4g0/D4nzX68OcGbKEA3veA7QD+HPaPBxfh81JkkjKRvPNGc2ug==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -16534,7 +16536,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-ypfjkL6zxTQCeV1wGnuZ5jp+6xFn8xr3xxpSV7meOUpbK5g/FsPgAp+17VgL72PBWUOs7xXp5IFKYShcLKoX0g==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-gO1Ynv8xmh6gAV292Xg8lRnpIDUuyLER88wTAFfByirhpWhiAA36TevG7igdodB5I7LSJ7wgP6A8mHyEXFSNRQ==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -16561,7 +16563,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-HcGK/ZGbBMFlRmQEjFOHxh2eEAiJD4oOktIWkw7b1ad1VSUayDyqEtyO+kwDD7Cye7+eqnOKK5KXtyq6bpCN/Q==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-5hAvmxN/pYBveHQdAWYkGNFpAzMJKCyt+cjS6CxHnZlxT9jmv0JmqZ4iyxrJY9v0tZJLf5iKpSkldSujFZuSrg==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -16587,7 +16589,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-1xeaplkloqUsU44Ww4L31jRxPXDNeB2vwZ71Vj4IVGThs/bJwAGRTin4AniXTGiI26OXZyNNoGbo7EvqdYOAkw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-K/vw/qAVpygyid7wTMqoM9xOHEddvU/xstuFkGbC6TWdBHpPHdvpwhgEEZ0Lg/LpUJAAbo/DZRtjX7Tlf235Eg==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -16615,7 +16617,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-ZmMAsux5HFfA9YBrhXDyL1WiehPZSn2EoKESqoG14Zeo7POAxcIkP66kHx05vkfOYLwmfYewI9wbp0tQ990Y2g==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-psByUZapvok/o+/UzSkfOicwB36a/80uOzZNekSWT7gx/yU3DOjzzLJRt4h4EvH1t8K2v1u6EJ5dVqvamis9YA==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -16642,7 +16644,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-FecbO1rrKc54C8B70FYQblM9IMZu3xp+MYvqp1u+9VUoSGFsmkw47mZap9ApSqr2fbzXDFUVwl5faMAOl9iDCw==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-7bB3KNhZkCOV4UuBBjk1eMAWMLgPwabZlacuN3UWTGk4hZipIi+BzbLxq59T8YR2jJVd/RjpbkTNf0EpImLDLA==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -16669,7 +16671,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-A2tlPSTSESOP8s72ohjMiNNc7W7kN8Pgw9wsV/zDSF35uegD/9bh23qRy8UWHk65fzivRT6677tPfLyYIVrp/A==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-Cvx3054L4wjXLqPYez9k27Kk6jV14PEnCRZQnX3E8JintkVnee/s0LwgDNtaRMcIG0Nwctmp7iJb4zUHdzzDqg==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -16697,7 +16699,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-ex3UJHDftkICLCA5doTfowXFXLLV4D2nc4rTG/shZZjNsxDI92pqASoxVQgatsHDeFd4oklXVCoQHIG105bc4g==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-f2JeKbczdfYUglBcV15ua5iQWX0+kQiuANYmKb2jIr33ZvrqI8ITj5nY9wJwwf39VjknNUqG+YYlt+AgLOwzLg==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -16725,7 +16727,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-/lyrMBelmHzvGtPf/WfQd7Ie/3zjXgC4QmkwnRkPtiqCf+0DXIR54w+MYcsmxy/5XXKxbpfDRNOgPQqejCShcQ==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-H3PCZcUj4J8LGTEMYqRtR3rRuqaVZ+J4ntuGONNiBSdDosHkyR2Zb9PCqJ6BpEyD+pY+XGIgO0NrHOf/N+9Fvg==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -16752,7 +16754,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-I6N9Dzp45uKP74OaTD+Zz0tsWS4nPf6e4FPs95IgGDCoWzeTDnesgj36U3rf/cq8ZXMtULEM3kf35aoe62QTzQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-A/lDTGj63BcUVlKDracjMmjqLnK6BSZYyVww2uvaHizZ1oKkQNPHdrSwy3CsLVZm0jzcM5a5oA47AyxQEGOhEQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16779,7 +16781,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-NaCFNQ7Pdl53jqJiSRCyGeftSaEiLOoAViaxVEz0ATYqkQTKX8GQgRtZya02ZjOX6zE7JyPAWTslA+IFTXLJVA==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-IsrRlXy9gZvyVd2b2l1pwItXE0Ny2/KktW1yHAL0SDZQrKdVDIUQl59swXoexqgYTGR5NOPKfXFVv2dd0Wflfg==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -16806,7 +16808,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-BmqN6ugeFzb49BkhF1bWQ6xJ8CD5y0mfAg+d+ZweVu0kjPTKCbhF8+Mh/mLpJ0zp2ha7S0EEE7ePWhTk0CAVpw==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-fM8T5Xb2jI4+F4Qh6yq2mwkfi+pSw781mYwVS9QvZcwoEpSAr779vVEdfdjyHseT5aGvVxMtdHUoSadfFgDSGg==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -16834,7 +16836,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-GHyQElSN8jBqq+5ag5eZrOHi4VeXfOywe2GaORyTnFXTte2XTYSgpMxXfpxt3DPybZej2jieWmxqUG/b6VewqA==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-uiE/VT89Q+7TwXl3eBjcvDT/1gpGCMKWY1mT01K6JHicwGHmYrf5TxAEBw1RXKywwQ1siEk04dtTDIzyJOJVhg==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -16860,7 +16862,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-3PKBf2cm5mX9aivD/2DwLgpn95PyO3thDFjJ0CE58D1UzmwJNUOmhsEZ6ZKy7pFFmh2jYmTFzNIoU+xwg3sh7w==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-MFYVDNTzld7P77u8Ahv4hiPhUR3JYENMX3X+H62gfFzIvea4yswoKJ7k5GlzDG1uJ/grAUz5oIrnNXz3j7ln0A==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -16887,7 +16889,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-joRm8SmJIc86XZEolXZdFUCn5n/lnMynWLeX9dXR24yJxpY8wpO8bwJIKxfCPbUxohHiFq8lIxl63rEwgg1eCg==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-8eSsDVILdgrJHqo9fh3hVqo9OAlTz5gu/mZu6TXBbTon2oAhQ/dVFji/DsmgqTC+Hp0OqGsZT4W1d0b2X8oQOw==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -16913,7 +16915,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-j91FpbfColfGYFcqG/Zdd5iJsHU7m4RzS3ilxSuMneHS277eCwpPlLpx4uLpFQxqTXeU84OJZI4zfMAzUIuc/Q==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-KQePcPFTCqHq+6UQ16uMNhkvwRKVLB8hduJkVh4OfsrA9kfffsPifxvfCRo/SgMg9sxWuhj5bqvSiZD7NLJWXg==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -16939,7 +16941,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-VRQ/YjAU5r/GytNGuxkLQm8dY6DYauU8tEZK4QiuHDKK2PAMi3htlfiG9zgvcZpY5qDhgCS6NG6bXHLIJZ13sA==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-75eXnb9cnIg1faRH4oHjM0+8FtD3vmKtb7oYVhV2gL0O10Cr8UN8yQ8tA6N/cL/Zh+4O4cJDQRJwULKHrGkb7w==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -16965,7 +16967,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-bMBT/aKNcnJEPV/Dsoyly19s7obyxzppiRLG8QPeFpIjI8UarUMpLDlqPc7yYG767tbtOiqsTjQGb3kAE9VPNw==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-lUO5FclctX19VVQ2hjcS9wBbwCjkgS2ruhc/e4slK88hBm6oSsdR5ZFGSGXlIVUaFfoMiDqZkN2DvDeKeIsz8w==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -16993,7 +16995,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-MFbYzgXZkhn0o2uvUgheWdCscLB6BJQRw1bxodgsbgBxOLjl6NAYiG6K8PJgQtjT66Km7/J6TjAZmbnG3fEAGw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-YRcQwLa7VJXk4rqSbKwvOrLX3P05ASOzFq3Yv/j6kxp7cRd7MOtcWA9Lkio563EHmfSmJ7cBnQGkpaWYQWW8bQ==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17019,7 +17021,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-u7yuFd+M/tLW7d1vgyQalQUSfNPutU1UEbfpuMxRMdzFvzUJdVbxDy6ktk6YXDNg34X6AjDdi0T4usMfip69Fg==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-M7rp04rhDaNUbmRR2V57BZ6GomyX37GVC6vUmtpV+4DLyJADh6Brl+1btNL5EN/0MySAYgcOBjKo+QmeNMWrhA==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -17045,7 +17047,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-3JVcl02aSpUgesD81sxncG7rK0U1nKN1aG2PO76mEizvWZYCtgU7j+UtFaBKr8hQQgnFv5nKUmc2Gg7ixKc/4A==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-XgHePCWuTKjXuSHkZz20+016AqnFYLJ9cVZfFW77mqqU9JfJ9v29bYUXkJroBv3AWSIbRGE16qI+JIyv0nHK9w==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -17072,7 +17074,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-MpXgMplw6Ub2Cq3+wICiu2K434EIL3VHbUY0gQgARXmHqFYb+AK8133N4ARiGI37DIjoGPeQmzSsHVWGZnoKGA==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-kOuS3lRnosyB8YQ3TziUxlUwgwGPCjz1Z7jlvXBMgH8TO8omKadOFQY/9hWQ4v6RARlVolwSHP1GNSvePmbfTQ==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -17099,7 +17101,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-e0UAtbuCrJ+ciKRKtK6GZCxe2ZzA6SnOJwMwkrWGU4oPROxsapRN8p8DjNu+OUAqLZPuMrOIZjrW14Y1It6lnQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-EmKy5ke81PZG2w6t/d67Mqza32v/gsJ3/q3qSIfIU63+QCvmfXqcy2o88YsvLNPNRfFjylRJMSTgSwJczc7W6w==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -17124,7 +17126,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-snC/fy5M7czA6QMqbhHDAJpOW7t2OUU9K50R3eT/ZExoqsuolkYmYPHV+UGP4H5RqcarIlIxT59+t0IoQnVVcQ==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-XoZWa4Jt0GMYTuSd2qRUglUWPG/sa/ty6703EJX8r/b6x3dd2YKucD5Ke5p/zq7csu8uCEb/klBkduj44vuRXw==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -17151,7 +17153,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-K2hxsxFmVn+tzlhpo+KQzr5gIxRY0CWyQY6rKQJ/kll1ws0Q4f/uKThWAju4uAnr3woVR1UmX4i3GOIyNObABg==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-bg8nHImFEb1ciZRKU956sIjJGBNyqeckeiwaVbHrFtYORI0Sjt/2VNMTtAApCxJ38UASSisSVPUW7njG9sSEJg==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -17177,7 +17179,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-brjdBlZByMiKwKgdpxJA0uhCCg73m5NNOffwG5Wfli2JI25oPcnXNk2Vw0mghamnamqOcak/6BDi1/+7opOILg==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-1Y9NsgDZSlN8vWd6LCK0Pem/9NYpSWamCh/bWSGLcs+UtmaUV1GuSwMnzjx/vVE6+ZJimBn+1FreRI198JVD8g==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -17203,7 +17205,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-r9gtrD1gCaCbQ1XH4XSM/LfdE6keWeOaiSbPtb7QRs3f4UYar3/8zOt4uXjVNpnC+ho0o1bChpJ6y0rFsaPe0w==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-zhj2hQWVp2fvoUQhs1HseU6eV84EciqNDRA8j2OUtXtG0APU2XnnC26xb80cWJlk/mfHG5QCjq1arUi2zUeQDA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -17230,7 +17232,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-3eB17MMGPKdd1mp3nXelGat2GBWw3Xy89Af4xJCFPYXuqs/Clnavu4FhsDr5osCEx+JR+apEIdW8ObjL3KMA4g==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-IxfZerPD/9wJd0cnwIod168ubCV8tbS1XxSR5LUTTnmMErHluo2GID+MzMlH/5UqyAj1vA2m3FgMJr8x7KAaQA==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -17257,7 +17259,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-kjw/v4io7Hov1LS/yzhZpDvnqeubKxwt+hVjxp6FFBW/HUVCOOe4VQAWlhhN3BOBV5KBtokD7G+iT40k74uAaA==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-OkIVPy5PpCCVJsorwfLwI/vvCcnQn0t2UU41O4QRbmosZfwRbF38+Ir0Wax3+s+d0kyRw8vMVX3rnovasBfnRg==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -17284,7 +17286,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-yyBiTNj8d3HVeYHjBlXZmvrzBKEw/uc2HgD/520PCFunarhhGU2aHcM7963avjSKvO5hDKlPFPbCBWnu8m0hnw==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-Bs60yKzm+nOJlATCNhnb8/yHZ6WPQ5UOgPkdayU0nmdXk6FXn4hbM4zdVVeUWu+HjsEjdDjABabvXCXGINrZHQ==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -17310,7 +17312,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-XKudilLFmlEgKCwBkIm8nfpwBGLogLxfz3o5CS3tEm2lFIleiqLxbkT/TqJ3Gmi5D9/XgeYNGI6+2tUEyW0nwA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-lr5KIJunk0HbSI18EMRZhtKgzxwGjq/Ucy6PrizHnbUjTx+6sNI5KWvzOGCVd3hVBrmgag10dSq7X6abx9qgEA==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -17337,7 +17339,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-kI0Z+inDWhOs2eqg0lqAc4Q/2VhtxMZaIm6Uii4xuyvPkm9B/LRQOTJabYoOdl4rbFZ918sJbA9elNHM3/nd8w==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-L8DySKHpx3B/lB3Eem+ecbloZWvHXe4jSJnJhytVZGYO89/HOM+Acp2NquPbzzRYpHp3geVLQnZu5QqcfvAYLw==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -17362,7 +17364,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-YwIN3qeropX+TPwF8EdEBOidsU00CxgzefGqPUVjIDduG9miM1hTUgN7W+yHW597qvL66APhxN0q5+v6RUiAAg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-Tyyw19qYotupz4mlS4DmPUF2zB70bpChZno35Q4D+A1PfIgBKI7ao/xnMqrNV0TlcVjq3w5BpI2+IOZeWnck1g==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -17412,7 +17414,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-8yd47IqUf2ma+MaLeDBMpoUUaiJQU8g/vXoZeOzM7aBnIWQZ+pynNBbo1yckG4XJ7HvMVLAhGn/yBT453ko65w==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-294gcuMdC40IF/5CXi/H5JRQOfTEZYLXOoytJS0DxsvUxbCg44Jc7fGIelw5Q5FvF7+UOC7KmvjWEXy5JK+E5w==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -17455,7 +17457,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-NINnKZH10wqygxFc72wx3HTkdwnwovij11fd30P0Dlpx7IeosO/kZy2eZ3hIM4Ma5PAqJTQgrW89QhVoBSxL2Q==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-7ik+mCe+DXNguC7eA3dmLuvrEzmZbZMMtBnja563UuHfxesOf5qd9zRlOjRRswl3RyxOpGOQekgDiMGgkIQH3g==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -17501,7 +17503,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-zHfAT3Jlmoxh9aAFe7K6Oi5Mk75jpndAi6emM2aNafxxM10wJFiMrKBSMIeo56d1qIDxNiamDRAxgXcA17bAbg==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-AQBomA10nLQB2QRgSfR3gWNrxtHCz+4PEwfy3RIIV+GUzKL+ERsvsaKT1oMe7xtRGPcV6qBvT5wuirJh4Wz8lA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -17551,7 +17553,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-9ElzIgkR+3Kv6IhNRJt9atGlIZa97gqjXCvVD2WxlrcdM6GODGRtIFS8bNbcUFywbJP3+2I31YE4EMsuxGS6oQ==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-60J2fhLVxzSYMGCI4mFkiVH6NmTFd0DAhQydqgYbWzdYThUNyBACjHU7eo3hll9Kjun7KtezhJl8V8w+dEmy7A==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -17598,7 +17600,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-KdQRPiGnVECE3zjqt8AiHtvluFeGuZwAHTqWjvbLNGVEfccUh3a+85viGKC34+PLilPpJyxUtjJwQmSgrJOAag==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-82DSQ18aDqMYJztC7/2cR7p9zFQ48gTZVQGR1kABj0OTtI+5LGKPGGGuRWiqiRbf32OJqVIyKgGKIyFrS+CXwQ==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -17638,7 +17640,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-zfrzDjBCmfhJBcv9semQ+F5QstOdvioprljAVPNzkCPHRG86PqhliRrVKMd7k33sRMxtc0Fxi+zeIDkntvoGIw==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-n0zbMYfUqfxoIfuoiGKp5zvCB6PgKBTZtg42KCEpo8m4+vw6w5ncYRG+ZGNIZT/BCv8vPh8GkPxNGFH1a1R4Dw==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -17684,7 +17686,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-+NNoBNG/Bl9XQEy5HX+7uYcxGjOUMNIJowNfJK36J70rFZ0xPY0w1mxYO2IOHgmCDW/nq5EMcKzcSqcEEFA8fw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-TAYak9UA+YtHtXk9/DRIGhSOWuXv8KOxdPEo9Mxz9G8EsNWGeA18Hi+Qe2AKo6XcxX55wZDxkyJheBVVwRzJJg==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -17732,7 +17734,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-desk9yMknQZik9abM0PiJhgOyw+Aq3MBTiSFM36lA1c8PGoR8NLXGnoe1rl7KyEnqnPO0CqIs09AAeAs9iIeSg==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-HBXK5G5i/gMmoZH7qaA7KeN+dB01FDAj+v1S6OErZTspJNMSw8Nz+KY75OjHWOLV2XfyIx5endQH1BgPYHewqg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -17774,7 +17776,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-ALfKMarmraBZVs9xT6K7B2sMkt931FOSYzjXc5h3FounSsSuHbWiDbv0Cn4ywQqWpZWb5bUWsJURuhbrEDxRcQ==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-ay8Z7Sikte3gL1nRo6XQGltuZAkclwGt6dkZANAd/bltC4f15OpEcWT1XDqcNlclsCS2QVaPQdAd1iduVPp2Vg==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -17817,7 +17819,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-MlzemQSCkDYbcSrR9XBDhjHi5Z3/asZDkC0qcLpB8cYtx3IKY+ivG6yNseQmN35Vvf4hmVn9LofMFfXnw0Iziw==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-FYD1FvbT7KM1L10R+soek1v49kycvpzt4hk+Tu/TlkAj/VWnfrv0o/z6Bu0iETelTDJIfaiL4vR4Ju95hsdrgA==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -17863,7 +17865,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-JzXOayITg3nqzZ27xSySo78kW5/DPgSpLsn0fOWUOtw2sQbv15ZeDnYXb11eQ6ly8Sts//ii1jYhf3yw0+vAFw==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-C/1Aur+M6cFGETSxmpjH1N7viR/S+CPeDL9EoqfnrWLfmrxKSz+3OhVs5MQdZYlxu8X39+oFuh6SVxPcCs1BsA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -17907,7 +17909,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-hMfurY3Uh2Bs3QmOg4DJ0mzlycC8l37MW8PghNHNgHQWQ61VUVCFYptGewt1p4endsu9oYrLqIgv7UuXD6PSpA==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-mGvSiGEn/LCH/HebBz5bVCwWRnoPNwtRoUZ5vwtMNb7yCPpqpg7sAcg3IZkpJaAbRZjiTw4cTvDlrZfcqiAh2A==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -17953,7 +17955,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-Jp5ZETyt7ubXG5sGlg42nfxPsFPbpsDvA84+5m3kkjnkpc56boFDtJT+2Fc9ZF7AQ3fCzA1diA1MDtSCAEWo/A==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-37laV/u3tPNunKHVlZBx2aDk0c7iJA2isAYHCaDejCapWs5ox47yAiV47jeDqLWfvpLkj24VIfxOZHrJDqq2gg==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -17987,7 +17989,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-c6gu2B7TY1jOjDgjMnncaXR69eRonypm26I++NV1tpuBZWSdZiNqPwkxQv2QcFzPb990Qd5e+8Duw169tn+Ajg==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-SLoCCQkqIbUrmX4CAtH3QLKxm0GM4JXPX24ucoXxP43UNGjI/83x35ZN1ryDQSzTKAZoVj8w6PK0xSpvecyc7g==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -18033,7 +18035,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-AG0uIUZif3jDOmxdY78S9EJbAF1SU9G6pF12/q6hVPmrKPNdND06domPdkp9QX2D4dkJNejEIrKuMQgr96jpRA==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-QH1ojOfspANa/398LyCbgm65fB7oCRClO6dTizPduJp6RLfL6BpNkQ3Z3PfkG6rp6WGQZ1V1hXiV75ExSdFJeg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -18078,7 +18080,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-C/UipvVfbb9lMrYtG9rZ06v/lSCOuEyENCxu4UMKRtJ9iIbPwTsfPOHQNBGZo6LIlY3hO5AUqrbGcrDB8ueiIg==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-BFGZCZu4YmXn4F9PYNbDzz7iCDFnDsQgsJqZ5q1KbGicMXpKBpC09SfjXZkQA2eiGjAlg6T5f8n9MeRfvYNUXQ==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -18124,7 +18126,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-Lnd58M5AuJ2Y6sNsumMKfkhgnnD1bF02Mn5fthFjm6K4vx+VnFxxLbgaUksMKBMvlrVV/+WnvMRWjNk1GzFYEA==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-guA0GcaKeK5ePDFxXqegPcvAi6bfjF6H+IBcL+H0/hvEve5gPsszaaAHFTe1gnLQP8ISZUJydTQtYHJFQ8iOew==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -18167,7 +18169,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-PS+z+CsVtMitqUn1QCt0cO3URjvFkEq/UfQM2IPZod4x+VRUpYLDqEhysatKa6nXxfF+lg30KewHMOvn8SJ02A==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-9idUUYAK2cpLiiBo0CzOkySEf/VZ0gxKOQVR3Pq3MZ5rAFSqIdIV/7cla5qc4oODAxnoa7YCBVSfYi/vG62R5g==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -18195,7 +18197,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-ii92awiqoHoZc08k2pJO9Q19HWjKA+oUR/42BFtE3HyTtOOODGKG2q3DdfUiPYzNKIfRGVNwBUkPG7mgBe2ZnA==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-3RspgAOXX3qvk3JBFV1rdQYz8ml3jB0RNVF0zoe4Fg8We5BM3ERneXg5GFkvpQWQZpkY3MYfRjb6H7eY5dMqgw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -18239,7 +18241,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-h6a/mCt2qYR/JfmGNeige8PDCTT3/8Vpkj9FypbqmH3opXycLtaN5Dro1f3ejlV9t3F19A17GrSMW+WD77waLA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-ICsMjmllReqeC1y07hti4J86Udpgn1BXyJtSWi6lvsPiiHPGM8NlciGqN4QNLvV8lgss6H1+gXwExsxkRWDyAQ==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -18282,7 +18284,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-1LK36hxl/yFX4MHmS5CUf58rso7ZrsDtta31EihcL2mIW0rMVX4dlwG4iu2NvRvl4W1q475ps748uDNjE5Z21w==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-K96YceOVe8qaxhMMzBkZCoFxcj+pj9B1nSfQHQfxy+5DvE/XnGANhIyCZw3pO8uYhmIMZW1gKVTnZTV3ObV1Kg==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -18315,7 +18317,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-OLJyHTL0U4vLGSMZ1Uwm/cbaCSnQpJWNwZxfuqyuHvtF6GoyCXBb9RdB6KZgMhJJgBvEZr3BhxTqM57nciV7lg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-yrsRgyVw1pJ406mbPES7sVLkTnwYAoJuy5L09RiBVRFG1GTvV5qUlrvL+uAAL7xLWAL8+vetNYYTgZqPFN8KOQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -18348,7 +18350,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-J+mQDVAxm/CPhw9yQFUrQt3TLclaYwfzkmNDWVcG3wYLZPyNF6m6Oz5ZyzQpwtQgA1GrZFMtJ6ALGyXqdOYGww==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-38pzXw+IilxQ47iaH8qqQIDKBXJu2dnmz+293f/E3wOoLQbfVnkGMPeM+U9OnsSmUXax5cn7nObnV0nF4CDLDw==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -18381,7 +18383,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-o4+VSa/YjxAuW8meTMp04lfhMav4XhxI2mQBUsgLm6qrsG+UInoYc1XjeoG9dxsSbtoDT8iNguuNKzCXTdAEnA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-tJPVNWs3bvk80ejwdQWP4r+PL5FO0v6SJ40GugfqBq8vserFyZxRkVq0zDee39eORw1zVDyGp2XfZMY6BBeKxA==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -18413,7 +18415,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-4z+td5KBrB4E4AC1W8sIikhPFggJTtbjtzYitU01rvQe6H97SnwxgSX95X3VYJuuz6FTtaTu8Ygodk7U9AvdUA==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-I2vOznyNVg96o2ndmFcAi2oeJ4sM38eR0ueE6mDKa1DCg02qlf80RxrlRZGUElS19xpWKGbdnERPqCskAMyjSw==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -18446,7 +18448,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-ZSI0Vg4yD2/EK/sq4+YxdzQy9YGswtLd5DeTD397iaMoy0vyp/6BKURyIPiSoBTofFUIV3j7MwaO9tfkyHbT8Q==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-vvZhetkvZ2gG2gxrDKB3AK+6758n4iCXqNQTlWCX2s3JHTGFhkNXQCBzejDjPVyBAA4UxCCsFJca70eX1J2h4A==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -18479,7 +18481,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-SxZK8Sn3iHsCf4SUWs631chCquZR4EoAnGCZIBAN53fzEx7zu7Fn5kMgthrV7k6sZqNh3Gr+2UoTzrdfd96aKA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-e72dDkqu0Svpxcftt3FqHr1KhLRk8t8Bago/FyrchzuS8WJB2Z4BoU3rA4dWt9GM/7Sa+CQ9V1mn+5t6J0407w==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -18514,7 +18516,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-SQ12AH5WYq1DSw8s4W2KBK4lI0JqidtDTYrSBid8ji11C+5EG6brZOmlEsstwrE4/ou2BRGQZjYOiFhCQASPOw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-0ulh4nAfDJFxvDkzU3PKjDgRSIUPsB6vMgZ5/U0xPNS7JPPF1q8h3cv/ZcalSTNDdAAuGihR8fEqd/JeaflLAg==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -18548,7 +18550,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-OiN48Pr2CrhzGy/wuAmQKNxNq/JVEDsgVVIbSTMLBh09mRgHVAt1dDP2RiazPOUoVgO+a8sg0lUlT9UuJkbLQA==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-l14HhQTeoS4qlO/6BfJB4/2Z4KTf3qPD3cOGuO1UJIvYfX0mwmwJHiXc7VLPwCL0khQr8f2rhwfxS81pJcPAlg==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -18581,7 +18583,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-m6EGouRXU6ZC5lviRF/UxOy9EcUOR0s05AMbEYkhx9w71Ohu4X8eWea8RiX5kplEaCvQj/Pxpjpk+FqIMiq6tw==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-b1AbMmtrh+KrnMICvIwX44gHMJ8GET4Hof9rl6JAmrc02wDYKa56ZHkHaeQg+ajFIL2tdJnm8Fp8kaDQY5YSUQ==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -18614,7 +18616,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-nHFQ7K/R0RCToo50zrD/m7qx1IwTGRhgSD2sa/u5eP323N1Ekv9SolsTKReAM3bqD1PPirvytI8pP9WC2dvkpg==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-9pzkE3iMmjofYRSecx5G+GoXTBh7IkDfBph8D+Bi89w5fljuGlyAx7dcJL2Bw8+lr/nQEifF9vlu8Rq2WjVw4w==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -18649,7 +18651,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-QvMe4hvJqxGu27gFk9gSt5x0vTeAtrKAv2YfWx1f/lkIeVBhzS4PeFaw9+Gb3cfDLIqB1l9KUkOgoZzWbjgLAQ==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-g2CHsQoYTDcTtSfv9WMBVR9gKsIwtB2TdGfcwsVq8jMZceOIfLt2QwQT4471bxhG4fQ+vGpkQ8oKilKgWtVu9Q==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -18697,7 +18699,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-iVIBl8MiXrmlB0wceNOApa29oWDJq6U5IU7Iql2aPWo8Nr/cO35zGNEC4GSLnz9xnk0mPyo/30C+SLc7onJ8DQ==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-3JEF2N6kEpndgHmxC5jqp5wdTeluMOLqER3YoAcGIatApN1jZ9/5jYHQcXN8JuPZqPFBcAIH8g2c6F2hMXSQVA==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -18740,7 +18742,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-cExnd6UJQQIshWTVKi3p43lDS2pAunjd056VzfoZ4auZpdMfZEh1JXWL8a2d8edmRvnLwS7dNRszanFBafh4kA==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-Feg1PWTklRinRbb0fpSl9DlGPs0F+mJPSiPF2pc26+VRmMeYq65b5jUD8EoJI0i8P0ita/XXbL5HMCTzZCSjng==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -18784,7 +18786,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-COAzPkDCKpsPZD0iyU3vk8letk0oh0SMzpVHrj2FPDEB6jwtl0PUaHq/9aDqFoaT6E3+HQ7n3BOwMsjM6mDvZg==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-+bhDzfvPvq4GZ7wsCa2n88wV/biduasOH0FbtwxebJKfG7Br9lefJ0RHB+vpn/S/fN9rv7E1sA0V2j5NB3huKQ==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -18855,7 +18857,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-9Row3h2eFyesNCODAS99pVVD0EHWgMj+adg6Xh+HGbuLSKTLzRGmiaiZQ1QydAPjIVfPQN2J6ioWsz4y5lqC0A==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-bfK4GOlAJ9vC+9A95OHPc+JzAJ2eRgLqDfppqIfGV0gFN/GoXTCAp8wjibbr2Byy/SqgSBJrIIQ21DlVNTCYuA==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -18899,7 +18901,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-WABaWf9yAF6rhuVYZinqJqHzhTAjkcb/wt1nry76qwmZImWlM7zLD2KxSnOeLAr1UMOrZtg6L7i3a82Q/N7F7A==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-7/162x/wY+xN2QTxxexv5jQn+cK6qLdRi1qR6vwr/j7f/CivsHNeo5bZ4juc2qfWT5lQKwo75Kym/cZwTGLnNg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -18944,7 +18946,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-81LjcHURGDNhd99ICbhwWc+aJH10sWa3J7QjDxFc5WhdewTN9gCHQRLXUlXT5oxBl6VK/7cOt8+MHIZ9Ezq8Xg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-c2p8g6bTDtMUiM6D02QH5VPifOavw3/sEXQRQhMooIM0SyRU82dZR2qtzOGw9ZGQ2oXOmPPpW7i/N8ifmjSw/A==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -18963,7 +18965,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-QWCQpxYTL732c0p0LhhgoNH+PBuwMeWeCUVO6p/y5HVftrAf1V7fCMuNTH6MkVmX6OhcHY941iWQMGnzskrITw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-l4Tfx2HM9nIs5nsD8bx1N7Y1zFQ0eGuqbFbyh9loN2Am9X3m2qvsD6Ou8A5+b+kBxd/qFYhmngaESt/dCl+Gnw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -19001,7 +19003,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-2w5+Fho+ZEbuc8EHMwjZBU8TnU2OLZoZrUXw0svdg6gzQcEuseEC0dzWMyYfYYSpRySwV2jGo/AA5e4XY4KFsQ==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-lnKf3XksF5BrjWw+it3UJehsePqWocTU/zwZtJ1MIYSvQc9UGq4wE9TBH3jjsTf2v3pxCVCNTu98vVdM58sIRg==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -19062,7 +19064,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-n4uul6UnWNvKSlQ++Zs0e5paVpd2DITzP1WZ7WigL+eUTvsSBsfeR35Dviw790NvjuuUiPVhZ/1SL5Ehn7ACPw==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-JA/5o9eLAnSxEpBzxWVIf+fVdRJXv4Ss4K4aLYnsWECtP4XSbzODq20l5BaZQkpO0EWSpxKCTodRmw9G6gGw6A==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -19104,7 +19106,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-9tCkRIV+ana29MG9f705LWm33vr5QP32MQSj2Ugc/FzjJFIo7m7jURJXzUnys8m6Dn4NOCrLa3fNYqzsUq5v2A==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-GZttLKha1yC6gORy3lLWOjzpiVHKORUDKX3goHAJKtbmKnSe+0RJ8O1SX0HJ+NQ/6/mIDzG6eiLNBkPcqqc8vQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -19154,7 +19156,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-MNAnVLgZpP2tCpMUYctWUxl1p+RHQswDcdueCxd56pcKq2nmRufWnos6IcR6xbBaJ9i5Rqc5pkFX8matcMwjJQ==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-e2e2OZ9p4QPVXWesw+cp9dIu1L3+GjmB6Y/18qEISNDPYOc8JX1XaWBK7JnX7TSo6/xb0CsebOAQZogMEIX1vA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -19201,7 +19203,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-763pAUuz9DAzi7jlsrmynNZo5SWzxx84mSaoRo6Fp5gcbiTl83FaL4IQxDJgSyMbasckrmb0YgsH3Jzs3wpq7g==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-lXoHzjMxtbz8NSmoiT9+c/HUItezv40AHHW3NHLBnKXX6kufB2Gv3He1p4iGCBJoBOGAwKQYiB4dqS4YYtm1WA==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -19245,7 +19247,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-8h2H3YNeXGdEGQ+TnUHAsDV6KLvHzLTR+qsSjKocCScNrRdwJBhaSrIo3QtLjBaB7K+iPoPxtsdm3k+lBvKCEQ==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-eYSSKmiQ7PV0CFwAuZR0K9uPivC+fkXFlpbk0iCti0yF4fsAZUkaoMrwfg3lhPZ1F0K5nd1a+lJWdQpP9kRwBA==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -19289,7 +19291,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-R9izTxpyw5PG+oUlt8ZEJwcbNJntRoQUsktQ63K5423Ah7UG1UgDPwIiYIrSrVS+X8OxEIu3DDPo7/oeRVJd3g==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-rc5CIO0faOvOu8tAe26x9g9drWFj41DNzK3xd1P9m6xepSCXy/g0V8hL0ECldsRQemB7icVFOz9debRa02NfbA==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -19333,7 +19335,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-MgqSqs4TL6lf77N+K1LLcTc0OArMhm7942eyZq4LOE5RQoYx+STFg+wOpncRL0oYlXQ5mLl0XjISd/DmTXb7Hg==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-LzShHe5C9t4zZLNVcQO9e9ber1j7KcYsK7AtcQ4Wyy4IcmqqSb3u0cAGnOEddemfOrtdjBA81uLXBFl47FfGUg==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -19377,7 +19379,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-pEzSuEC+bJbFJ/bJ0uWL98hxzLq3DrXEkDOnBhOkgXIqsZ/N2i5MkwCpmF1uUtd6c/Jj7GeoBalZRKDp9rb92g==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-RE+YqSTaxxR3bgxMrHGjkuJjywZPJpdr10nDdOkrJ22/So+aW0kisoQEPaQ6WBL7HD6PSN9fWxfTBYsKfBGe2w==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -19407,7 +19409,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-xjW/usWexAhmcVMN898Kbi+t7A50zceGD22B5femIIF2pIKyExrmUN78+73vvuRWgovG22UHZ5CZwQRm02+PvQ==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-LCwbkL8GhVO0eQEUVYw5NtzezkcIVPHnwXZZ/f0YWGuevw7+KpOVzw+ZptL8VOqaM1+DOFJNfBxemjv/sxx0BA==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -19443,7 +19445,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-vnqh3FnIhswMRabiCjc7s1kUEaRMfrXE643pVnnfrap6XtXLobo/uocB9Rc1XBLwpCUMp4CrgRL93ssVCehxNQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-WCE5QHoZnOoqtCgxVpD5cYrQDumqgTNKpzUT/hXeLEkJ8Mu7NmDd8QnIWYd9J6MP0pwZDI2IKRVJRv+Wn6fl+A==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -19478,7 +19480,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-j1761zpFWorjbpu/tWmXQ8wDc6t1/9J0pguRlSl1ibFzo/G3in6FLnG1Cc/8UUcQfvEUbRU3tLf+M0WffpCWdA==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-eWwcHy7qVgJKYZylPZArxZ9mF4TxBqvuDUGf7/I/q/tBRofMWlSm5+epmkPB5EsFWmLE965r5SwyPapJh5lvrw==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -19535,7 +19537,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-L6CoANIvkPHd8wxwZtE2GCnmcSnhfq76pfbSFKkRIQxdAovBcUfjGWEqLn+8eefB3FG02REvWxyCFi0KBkBBTA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-UFNINAFOToP7NJR8stMLUfmepJc8b8YXGZJy5z2ZJYf7Db/xKAvjYOcysmy8lIPB3SyjOWiemD3U3/v0r572og==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -19581,7 +19583,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-RpJ79+50X8ksqxlW0AWqk7c6zVguxpmmP4MhfNkuU44sRaJH96URi9ROItmGIpVRBFbpuuRUOae72ippUgzqew==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-gvMttKI/ZrYHvurbJpfqJcivpEXmmMTOGiLQhMW68m+j1LHsL+3IguNZSffPIox7lRNsDYnpIrLOZ10DbXV+/w==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -19625,7 +19627,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-RLWOSxjyGjR5IK5Zn3K3qhTbssFq8TbHNqWNwm9Mk3SQsUR66+jhDk6lxN6A6lkfSI2p0ACVVIe9gZCGcYTNsg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-7MJ5EAxk5BnbrztcD9YgCF89aLz3bUNFh1AbWvk5HR0exX5dZ32iKnJVY7wyc5bclBYGJayh+QQlhbPJN3Scyg==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -19656,7 +19658,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-gzE1si0y81RzmpykipQJd3J30EtyRdJafBQ8wL2EO5MmVOr2sGqyFTJiEOW2HivbwCtCn98DsADi2ikdNyyDxA==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-OYVRsqy7v/QmN1pxwJQ5FhKJsWMfzAUELoLvT7XudEVa9wOvBZs6bzkKmNjobcyHAmxYU8zjgpsaRv0IrU8Wfg==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -19701,7 +19703,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-6/RGVMxWL5HA1fMuirrHr6Uppay8SRLhT6XUpKkX7keBA3efjjzpxMBoUweLcAx6wc5i1YzxcRkej8Yc0mp/yQ==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-3eTt0Qa30nw+eIjDezcF8kQ9jFhiFXqTZA6XBNiQAiHrBIeOX4xWXB3kpQ1Xbz2Pqq4G+UnXsc8h3td75Etdgw==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -19731,7 +19733,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-i0gI/mv+vaJvIboQd4AJ5bMYIpvzsSRRAP60/tu35ednO3qPh0ro5KXboNtYq2i2mMQB0tHGrOzT0Mm7CtrZiQ==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-tGzJ200FaETep8Y2lb4/bqtGwstjimWTnepRZwgjrHYFEsjWTfhRGhYKsATCKCKbf8C5NTuQTcNdbgkN8hTLKg==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -19777,7 +19779,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-PDO+E1zM3OC6ky8klGdxzc18kSgJon5yW616l0ZwUHEtCtrf+tpb4Spe1jO4+Wj5x9CRSPmkh0hk3dyT78sr8Q==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-ceC2UCgZnkE+7/DscilyDhsx9ZVLk1jZR71J7kVXb/JIOQgkyHbQNFAYSQ2EdQRyrq4aYoeeSsKEaJT7k8qXdA==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -19820,7 +19822,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-9KppaB75cGaUL3m1zIWsNuS+d9Xu3ycBx1hlwOmKRXF4q4Eb1FwKd3rog2t8w3+/fJNClCK8zCMpIH+vmXki9Q==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-d8IluGAh4OKdvzXCJSFJmobjvON5nq3IOAfjkafs8Ef4SDTa3QLtA195glf1tVXkfZcJq20Ak5lQ7H2yZracBw==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -19866,7 +19868,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-+9REBcc8JqvPZtrlasULq44Rf/SZCr0g9nSSc62oxWhgQPsk/YBYMbcsfim7y562Vno8uYTFfqAH3xEjznwgnA==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-jUkUA5MVUavt5VKFk1vFVZdC9Qo2YOFYXMcz8lJyUPn9xZNzJ2dIqNbrO15US44xUiLinfcx6W4qr+A7+9pcdA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -19900,7 +19902,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-MshhAL16Di9s1phne1vgvSkvX9YI1UWTu80q2UYuUxgBHPnwtw5DwXHlGu+WnMKhGS3VbmOkwXanBPJx7AgDTQ==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-3GpElejNNohWM/YZB4HYYpZsbjPr3iXqG2qqlASff6ercwPgzyU/zjmFgZj31zrnOFPNj9l7z0aoxyHhoLJlpQ==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -19918,7 +19920,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-0xRLrvXCaJE17JNnFY1oUoejow+942QyefXiTjL/kvTmj4eYQ5HDCOtmOeZP4rSUXT/qadXX60Uzvdwmy+9ucg==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-aSRlzsxpI3DVj260DBALkhBOduoCUT/qMHaTS9AJmFFftrdJ89IPdJOeIRO89WR7BG1SaKR2d3n0gQF54JvH/w==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -19962,7 +19964,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-Mcdw8CbEFcOY5bEc4EpeHsyqXXeNpO1qwyjHbe9mkK3mlUuXymZlzvUEuLGfjVsSDHP0iPqXTXsHRlp4/AuVCQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-U65JVg+RhikkPqt810eFVXpZO7scNbuR81bS7dFjeqjqjd4tEUsU6argF1XOsWWQxNOHaUhUp/OGZ1by4Vgbcw==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -20006,7 +20008,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-/zpn44m8aiOTEBEbWXQMnP412K1ihf3w5mfQVfgb6iBJM7IncdDpvsbFQokItVG5AkA6rEgJsi47xF4//Ctoag==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-BoHJHYBKoMovRTG7o3iNC3pxZdk8W+inVFXa/PcdM3qygQuWNA92bv9vP+7aeF5UAkkp5f1OD+6PGor5U7SbCg==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -20050,7 +20052,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-B4YewDv3JmTWVIMpYJDHR/am1Cr6AP6qIs2IPDNBldh7eRq2NJVYEvGE9mhqKoVwlSmZbsI7mCdb+JGZ0cQzQA==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-YVkCCBVFwS4TRx32GjOuE3qGM3/GKNH64DNYI8l/nrYcNdrO1laeq2hb6uWpvchbgcK3dFE5Nq2/cVii5uc8gw==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -20094,7 +20096,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-YmEfvYGblBDCX3ShDK6pH5vpYeehwj8YFL82EIKHRC3yOCilxojdnXY6XlWoKlGnR8PmKPacTjyv8ZLbwzm4Sg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-kyN9szevkPlknBySlT8Pgt46s4O0irEKZcUpNI6K2wU8SQ6oPCKMwSYqJgWB5OGgncPvEDc/F+wi8vH/PYCgmg==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -20136,7 +20138,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-bYue2z4X1o4zb+l9BKAAX0KItEqWIf0HIXwnNjbUB6/qEFpp/emif1nqJO3v5aytxdNQGbrCpKaAeNETsvWfcA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Lx5F3/Uhzb8W+K4uDjllDC+El5XrcN3pSZDhsQ+NYBgWmTihXkDm0uOgeIZi5VQMZLOEHNDgegMBZf25W3VJxw==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -20183,7 +20185,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-0iFt6iHLpfCmW64Hgw/dxsQJuhX5FWqOFbYNpztGMMZ5z/EYnJ+0blwPQA47vwp6HRJCs93XGCEo9/PL8RvgUQ==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-cF5biFHCBknMGeAoMtk9cec5IzeT3ABz8tle5SCZMjc1UFO8hOUeOpL26O/SAwfdz97VYr6NeOL6XWL/l/Ng+g==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -20203,7 +20205,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-XTy7LjKs5BRxWuIZxdTaKpNkghCBuYKEdLuU9ax+9I/dc0XwTZ3Ia5pFYk9DYL6bKhK5u+VQIrC6+gD2NUqOyA==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-dfdhur+86HxCJzb09f8aa7lRIZxjhCuZfv2/FA+dhVKsIp+KvZuQuGtbiezUd8Q6nQweFBGYS9hZbTysa5E0iA==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -20251,7 +20253,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-i9hsI43Tay+ncKJXY+RE8JceeUyZWTf8y9OwHkQ2bMkXUhWubxymosdjVfffVEi5coO+ig7B5KGK+4EGjj4Ddw==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-kTOHl9kMbOSOskX+nYUM3Sb7Vk6EgewbgaXKqjz+Brir3IvHoWDSgb+qZM85SeHIjYxEhQI/36jd18HyM4oepg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -20286,7 +20288,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-CRGorpqmC8cGVfKJJAGjWtjMhxH/WRWsKnD8Eqg7QyRi80lJ86DIP95lQ+SCHss1dtSYOfe6lhHdMZ2Ug0Xzrw==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-oY3JKxapMG5+aFPyq2/ae4IToa2aKOocXo2pcX0O/LBqLry3Hm6fzY302mbH8oW2LjDL7UX/82k5yxXHMXxPgQ==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20332,7 +20334,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-NNfdquPNUyR+6XKI1UpNBijLT7vkqkFXqCVbN6BwNBiKWNVBjVv9y8N9QmcB6fBI1z7vBKBobIaPAuO3mGZotw==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-APfUA0snPDgNqjL0lwKnltwvMRAk88dB212p8rG31+7RU11DlirWZhqEiRdm9yv/SAFl1hBOzFUFkzuyi6tKEQ==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -20375,7 +20377,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-wYVvhqm1c9pu0sVGbUmow/+Y1RVDeGgQPeSEXNbxXH5BBO4XS0NUD1rsS0sny/ZuiOyBmH584mTuYPitc27Qww==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-s/yAfCbzDTCZhbHVodYO0Vyrehxkpxk771NPRrphdJznZu8v7t6V5o+Bmxx/ys92RNf36oZf9eA+nT4SgdLjDQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -20416,7 +20418,7 @@ packages: dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-J+fEGzw/cTpp6pt2s4N3Hrq4O+aJZHiqfiH5zTtD9s9tHiHLvGcwurZPNaNrrqNtvyCHwgS5rVAJa85c5PX63Q==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-nHl5TY8ZI+5uXiQGGDdh3YtcZWRLa365QOqeSypMKKywAkRcrhFnYE+UHqFGY7caOgans8Q+wZJU6OwvjS0rmg==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: @@ -20460,7 +20462,7 @@ packages: dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-sAmQpau4Yt0j6ZWlakq60s7g0PJlloqpTh3opxH6LgYqH5ZMNQVHFUaoAHVVCEj4y7Al/hF68AfuyOYt8yX2LA==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-+Al2BAe9J57+TktRmgFrEC7nr1RV2TdhPDA2qY3+/+7L3+y/KzhH1h8KoHL9SreoEtPM3B1iFni7iryatvuonw==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: @@ -20502,7 +20504,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-8k0W5UZO4jYWW3R0sw4J8w/xFEovBBusdYQqIGUMlwGq7t869oE0XXOfahDsZIGDBACj32ci3maBGF8PN/MhUQ==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-obXb6vm/bNL9CLo3VIhpsCeY0v9qbzpa8/iCAGWGHLQCqiKrC38nOBVU86j6McQhLyTeviWOz04ax4b0w2Df8g==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -20520,7 +20522,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-un+vPAwYp1VAxQfyUB4EyC1FceIz943vk6fqY/00ICMtP27Ya0YMbcDF+2AQNwJko5usWdR+Lr75enxF1tQO+g==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-My75scGbzqjp9IkJaEISCLmVKRPW2dc7a369c8s3+uFHMKIzqiz4BjITxqYlI2N7zZ1o+SAW4QV26zY7Tka3EA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -20564,7 +20566,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-jwvM/uBXz+A91uURcwEDNZj8aaDBn4bQbL/jKk89Kwfd0T9KbivN8gcuAV+cogmZXxukHgRhyPbV8Ha2guuSjw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-nHlDtG65YHF/9vLOzaSVYQAl0uGyfB95ZLConBASNnarAdHdTJuzsJYMH3H6STz3z9UcN9rHw7DhXh4KZsi6kw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -20583,7 +20585,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-zmMlXP481S2leaGbiTPTdoAgWZMmIDLzTjjPgiTqU0qfd9YHtIdaelmqBnwr9F0uRkaKYFR46r97FjSGbsQh3w==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-h5bRfw9HxK0T8exTBPJ0hrJrldRzd4i38FAt8SwD54R8IEJIgZY4hOdMI7SjE+oUSae9ZTt8YIPZujU0TIdFUQ==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -20602,7 +20604,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-1Qj2vbfJQ10Gkhk3ZAx7pWWzVzFHtPEqiQqWwiGfZxErxv8k/flqDznrr0v9L5KBIml+ygYdHMKhyNFjLjAL+A==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-aRLifFK3T0HVAG5f/nS5lnGDJjtrkVIRYvdoFtDq14eoUFTYbKXVblms3mGhTAh2cCaZK4QoBa6R4IPhxO7tHg==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -20620,7 +20622,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-OSuAsD6WyU5XHFVTOIm883IVdqON4sm7COUyxmxP2s/JGz5Nuo0p2jwyFgLl+CkAk7znEvuXA9tcg5wvEE0n5g==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-87DiBf7cu6ukgc1f/3ZsG/JTCeJyIIQ8OaWui2YcKuPIiLPIUCdWztfytciNd49RNCLrnhyiR8UbGFAsLKcudA==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -20639,7 +20641,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-McDuRdZ+MgkgonF+gWWqY2MR3Uu/ZXlzv46lA5/AM2onKI/n+DMyvDai26aDDHrhmgWJ8MG2NNuJXZ8uFOvrKg==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-4VBBoLiknqGY1Pf5W0b3DQXnhOPiTtwRn352YoZUqN0LtfSIl0On7t0o3bkT3wVKV9YOZHBjfKpB5jRqXJlufg==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -20658,7 +20660,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-UknYlNsrzb9/E4tBwf0OT5CZz1Czn1VRG/CbEKG+usukq0711J+rqfaCfQS2yrwPED1r3W3Su6odqBe+MHzPew==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-lKrzqDt/jRSznA+hDQ/YMrYgsNq/WIqlCa0f4/ExOk9WPrFnOH6iVeY/cBCKyRa1lsYa7vUUqcDTZNAXM0f/qQ==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -20676,7 +20678,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-d4G9rQMyMyIAfEwY9p+m6QCM9OTaEjS8/pvg89QnJRW56qqxRwI64iGfApGfQX55YXqdtLM+m4Q+a+dR8Uq/mA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-1kp1CzvjTJooy5VARRN9YdUO5E9WJV4t8SvHxlnmrr4UPpT1j0gs0Qd0EK0CaQ9NVAlzXfZLHX+EuYhzkFi4bw==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -20699,7 +20701,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-+LFt85LhKL0KYqYvEJfmyUZbv3TX27CM45MC4EI0gnCwuLi23qCSEiQdDwGj4JDtMlCUwdyuWG3y7ijNYfOPmw==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-0JtuW3D7cXwdLvx2QeViId9d5TJDN1yEEYBsd79DLVxpUJOkS7BsKRpYx55rz4YVeYgJwflSkz4lv+THB706Yw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -20717,7 +20719,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-D+ZExqVjiKJUcmHO44U8xr/kNkvSQed8CEsp6e66LJ4RWNEHVZud6Rsul8LKJe87ETfXepNHUTbWkBfS4waqLA==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-8kFxLUSuT66qoYQwltzcSVmhTNhEQlj35vD0JHeXFcXY537RRLe9ie63OrlBgWU7kLPawf2VTjIINFRNectKzw==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -20738,7 +20740,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-787Mjzr4zBib6gFgA+xA8VgA1TTgiipDgVQEZUd+oWDuPC6jFihrPfXng9ogHgR/CVt0h81BwJmsjQ2If7upWg==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-/bxfs9aM9gkVTPEZcV8kkH9nulqltQe/9UhCc2YFV8qP8RLGBivNsaJzwmq/4nG+5XGx15CJ8oFDRtwuT746kw==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -20756,7 +20758,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-dHYs1Lha6y1+zLOYjV3Ja6AZukV+yf1Js1B0j72wgzEG33F6R7+EuJuUJf1elC/zNqfS/oFHYatfrB9RBEL/Gg==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-4kKWzWkL3zi2Fm6cp3kBwDEnex1v6SHXK0/5dfeBaQi1djJ4kYHo6GFs7WqLiLq3tNhMYysMdUm1po+N7QXuBQ==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -20776,7 +20778,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-cabh08grEft+jxOhMZoXdbZfqdN/yGoCRniuXihWC1+Hq4PzOq22wQrvjXM3n5IR65BWMqd8sOw/bLBONnZ5Ig==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-TkBrpgsbj2qtDnLPvQSyEjJ3Bd7ftehcJN2oiMGQLoP2nPMKh8h/ZA95KBtPSYjZ2fofHw7DIWQKvam0Q3XnZA==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -20797,7 +20799,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-ALF0NZ5LHk6croBUbpAxJmjXHRbDQTXQNo53rwJTq9kQ7YMFtZ8ohtmsR4+D3GsTSVkpAy8HgJzh3zCAHuwqmg==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-Q0ubdUt2FjQKN59273vG/T+Jngcx20FT8qy87CjcOuUYkWLdXC/AQ5DkbMCZMXfmjYHg2TD0BYZXlEfZtqksuw==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -20818,7 +20820,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-ZFa2bHaE3iAI/Wz/4BpDvA34VhYUC2TYJ4jJmaYUFNfVWqdoCSsFjvhVWSFJeVwgBfPD76NraCmoeUvUTkcKmw==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-8ka8qvilTUigrzElOGOAfOz13zfeJyaGrm6rY3hDFjy2R875w/e6twe1CTmyVgZMFf9hS1KVuljf/vCpNLzhSQ==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -20839,7 +20841,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-NGJiYRptN2G5Aa6j0/VCmlCTFRBtboUBFKm5RfYe0odqykbXSmSUlRAHZajR4wgUN1Zc7FsSezkLnWG8pePXKg==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-RXBrhJZ15i6xXfeTJiQsclwIaRDnQlaJkafTNQwofVeIo/GuMECIUG1+inwMV7Ybsj9INqrzhd8k4qppMagZPg==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -20858,7 +20860,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-j7Ky/BPp40IYmh6SzJEe9X/aTt55W1vgfKDQpZLX2hKiAcetAUlk5jue0OPRzTOqmKz1dFQKAIgeHduTL9d1fA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-CuiiwICnnW5XusZrqq1Cme8qL8cgFMzpcWcdUMt2z7i2enKRuYurcb0R4I2yU6gIq7RAmT3/4ZrJ9tcuuvDZKQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20876,7 +20878,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-aCUoxgLoqo0l8QNC7iTzU70WDorCIA5GGZrLSJhA8NxGGVLfvSi4DeYwL0Zle/5uqbSWt6hUYA+rf4TmjWD/jg==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-XxFW/3sYSD6EP8He4TK6kA/y7A+gmJ+clnkWvEEP8T8vOc0eFx8yLhTWutjHqKAftAV4EwXfR4QSQR9SMJ1E0A==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -20895,7 +20897,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-LQb4g3NZ6t2QvZU9ZKrWJLawDWAt+/o5TivCr080ynesRmFdkwjpIKfQ0/V7Ysz9bs28s5oA32OWOAk9rx+oVA==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-jZlTTBK8TgRGSjDuWJn556aq32zaAiHB9D7dXQdGsMaYkybe6ekJCwl47L7RFAqyEC17TjYLpV7vy0a27C8z2Q==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -20914,7 +20916,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-/wwYog/xdKyz/CrY2SRiFjkOfTqN2lJ3q1JWXt6ZZRlEzSKNVpZCY3PKLCxQDEQ2qEChU5sBl5Yn7uBSu8XZmQ==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-KII3JuRkq+eqRm29AnbKtVm7f11cVt9Cet2i9qesQNwFeSl6+KVtTXB4u6iXHs4FP9BjvDBYevRXiQk+5qaTkw==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -20933,7 +20935,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-Y9OPWqLFNZ7nAuhgpm8AgSbr9mHAgRks7m57FDhbrbGYKSNC0Cluw0TISH2Lq7IflZ1a7PkTf+jGSxzb7ZQ8kg==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-x/dXLp6qDtd0NCXLGGi1g8zNYU5mBegh4EP6JAqOZPKYN5DkO4BVrBbr2cP/6nnqXJc3w4lNCNWEjSl6Lk45zA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -20953,7 +20955,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-P+LlljVMsRTiuNOETQudyNNf8IKC9+dIMp7DzrCY6Ivg6Lqnvdvr7Fs3tyON7p/bo78dzH9S+4JI4klArw6txA==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-I75PQWgXOw4kRwD4WNMOlc644NER4SPKpyk0l3GE5UW9C3fYpRL4zLkmgyDILHiTaLtHH9P9x8V3kLMte7aB7w==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -20971,7 +20973,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-TUiBoGVM83x0pglCFNA/EyVsCZwrrMJTg5H6Ykx7/8oYhX6JDoT9A1YM1YQHytz5IhdThB4HNuLm3DbQRADhQw==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-UDg47biWhgKXxKxxli0Pjbhm5omIkfJs754EizXDBTRtS00oiMIiLGnZe3wd6BeSbPT7ZKvRichK7WrFs0U2VA==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -20991,7 +20993,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-GRHAAh7r9j3+rjt1IkqzegBHLSo2hI/OZqcCHZvw78r1ff1TlwpH51DkGafS1DiMV57gwygapbK7AlOn/sbmQQ==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-FtcpUKv/bZdTp691/xaBDmi4j/jINmE3PBmqMqPuFjlX85WPapkaM5QGabvSZPzDhOV0cW/1M2V0N4GTTXnz+w==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -21011,7 +21013,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-QECzXzK8cPMGodFUP38hT9EX5C8jPKrGyc7A+qtGd/4pj+3tdapDoBkLwI/i9e7QRwzSa+tEjZoynwNDYWPV2g==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-G2YxZvjCVJOdkhd+Kpkzac+ixyDc3t5zsxgYRjqLMYoVjSogzp+w8guG+RlVJfxGMkQyaSXo0z29zmgTYvb6Hg==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -21031,7 +21033,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-Gi/RDg2fXA+2d06Uy7wYhhrp0z81BlrzuiREg0z//DNGVd8qE+1kMwdpTTOcnyiz78Ko52afaBUDOpkNS0vssg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-huaMHk3sAyDpT9oL5gA1eVSz3VlmUiWALFdjQeNnFwMPnA3sMi9b9Py+2u+cMMKOR61cdoFQbqt37oU3lLNMZQ==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -21073,7 +21075,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-V9Ewq7Pzce0ceIH/xh81nWVIW9380HAebpPjJ4slzR/K1lRwKIkzaoa+V2zjVAKadlyj6xx1lTNSrFV+0c4FAA==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-xPjDgsD/6hQS8hrfIkUct9AO/g1YoSG6Hig6KoR3n2/5Z36NR7H7iCJx4uWQnvmwdkdHL4Jo1L2tlblGqkBbyg==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -21115,7 +21117,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-jMEVqxCSt9ZMsdYVFwcfhwLLa8sZdkZBEGbrKUi0UqTsmXnp8frn/pkdTrn1qQAMt+zhqbBGs+bnmZR+RoGD5A==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-KYZ07b+xDgBmx68jS0Hr0g8M4EJvUCTY1qxA9PanWfe5bPQ2iNlgU3T8SUQKbGOikWijreqebroJNvEjw71GQA==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -21158,7 +21160,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-rvbG0MGCQjGXE+djxJRab7Cz3i8C43p5n6Vnx3KGqA2EqMasoFPzWfcb75aYY08b0ZRu/WKcfPpJDEztOnc6Nw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-+i9Wn3lF42PuCG9SAFbJAqaUxEne8/0PNj0lj3gwcIzSHoykd38BWeXcsggHWc/sVGp3CwDLC5y2THpsc1hEFg==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -21200,7 +21202,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-lc9YhGhZxgTmkzgVi52tC44tHalgQHm33H1Z+yyq54ajqxP7JzFMYv68y8KZ8ce0RrcrfNeGFxkLFGFHis3vlw==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-jGmmE0vpjwO4bm/Z880xzUdesP9iWlKCmpRecy2/j0ZYAR2zA0Fj94xjUre3wVOIdO10pOFE+hzt2ChtiJPWeQ==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -21244,7 +21246,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-Sv3iT2nyU6/cqFlO+PSN1IEq4/EWOCbxVQg52HvEsvw6cgt+Cw3oo4f2KvIMvqzuOaTWWfHIHwmLOt7HWGr4rQ==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-We2FWj+dxhV+6c/q5d+1BXwZJgoAmKlRg1pCvLx6khC6Ij9eFlhDNPJI1gFo+3U6F/17tlpA9iaHfBQvyIUirg==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -21287,7 +21289,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-I1oC934zXF04xfBjYHygauOm9kupQAqX4km7iJdpEsq9PV0RED69nevGTlLCV/AJJ3mYemEtjW6ctLma8KsTxw==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-ynaCHfJXwZY6tCS8I0jED9ghd+ku1+w2PC81cB1Za0+nXaS+PXRBLwH1XSAoxU0l53NZTlfRPpUTTI0EUi2psQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -21332,7 +21334,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-2zL4OfTlTEP9f3WbYgvAYRFaQXM1/1/W+/1s0QB4ZdL5ep9Vooq/9e9PutOozOaR13pY+nimzrZVZ8j3WjhFaQ==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-0LhM3eb7FB5sPpxqG/xBYw2f7XjztZsPsMgsdGGfcnLc+0HIK1s48tKAER42W3T3qOombQZisYmpALT+MrroIA==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -21383,7 +21385,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-oS74NCdlVMU/uK7EF7/QQlMyS2OCOCcRmHPxewP/4rPtk3dTQsXYnlC0MkbKF/+cT3kXbGFMJ4DYL7VN7siNGQ==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-doA+TR88iajbBMTcYpjZDeJ10xu0OHHllZv4Wi83kkVQT8aicmqsKWy7NfwAjybH0WxDbgCUv6Bt0VX1MmV9cQ==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -21424,7 +21426,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-0TKcx+XJFiwBwOexpulOoYYFnhZGBfK8UL+gP9BJnNuXRXWMzqlPcsEEV2lsE9klxd/6gHa8+fNAQDzgZZ4H8Q==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-K0Xo2o3mRwcUW+F8BjJjmI+782xykmK46jVth0QaXKaCmvbfzGRk60Wt0tV01ccE0Zvc8IlKE0y7UWdaZUIoAg==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -21463,7 +21465,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-oXJ+lqpnfSItHqLpJNL8pT9qHhjxVdqnnT9swRT0qs8+53YZods4UqGzcS1vK4UPrXAD2OkvfQXFZbj4Hg1SVw==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-eaWk1XtnMEVjedoJWv7HNWWWLGDYxy8xK7ZifiS6oSft9z0azlQwsB/ASaoegaCZqm83cnoV9KCY+xvV3QtY5Q==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -21508,7 +21510,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-q+lVWs4NbjEftlyi7x7dYXNMo0s8h9hgwPaiMQlk2DynzyeZULMeJe6AA88CvCm3Xe+WO2xUUzMUqGCQdkk1Ng==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-reS727hnGbcKISyYBRXqHiSZxtW/W+6K4uTH3qzw1RjYvLLLPTApb0uR3dNWVZxScZYnK3JrNJVGgbph7/+CiA==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -21570,7 +21572,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-qcOjqJVfS8HR7rF6r0ThY3Ob7NyFvg/U/9jvDf0DFNgjFAf4VG3CzduflZWPYtNAN+6a7EMyUSZM1HWGgwOiIQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-wnWbrl+GSHtXZeB/gqEJhk3dcAYO2hXNIqTFDB4OLNxQv7l2Jyt5YXL6TAcG/R3gs7Kxn4tKrI3k8Yn5rt2pyQ==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -21620,7 +21622,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-AmvpINVhtD00TjMEeA7RAXuBcrmysnNYASLFmvrRJAC87HO1cngsYC0bUybR99vUJC5APEgE+d/NLYieLqOYGA==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-UbHNdtinQ+ZRDEeVK5218SsLVV6CCmraXC8wJE/XnXArgWc97f+9u2r4iLcm/qjYLy32xQYFWcIF1AmpJrY/Gw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -21667,7 +21669,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-zpxRN6m+5hZFV/muh/zXAa5G9hQeWHny3j4A3ahxhqvWEY+i4rHwo4uqHQUGftAhEnNiZsSBg0YpYTr3c2ncZg==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yBtQEOX13UBeIiM5f4+xHS77YgxEaI1RHCvzV+nWKYN4XVDrvtv3yTjK38tZ0P4kZX2mktqypxRi9dAo0VT9cQ==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -21718,7 +21720,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-Qvu7cCuyHzfqt7R6MoYuuUDB0EWwJgHSQdPEW86UtJDXwkbOV9vhgzzKT55QGgKXiwed1hAQqCBN07N3v/eZyQ==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-GdYbPm9Ac4ZNB3MLrVY6t6OGRRdJ3k50yFm7jXroBhBEnkwM0DoNuI7ZPDIQs9U5L0z/VgbrjrUjS4MC0yhY+Q==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -21767,7 +21769,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-/4uvdV8knvoUXWVylxyI2TUGPxYGCLFek8Yh5idIxC2WeJDAdzeTXEcwFcMobMA41J2iBwuVhpwIty8fSMJd/Q==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-CwelXTLp6cMdIXH1QwW5O5Z8MK7iKVTLJ3BlBIfc9l/rwDv8T8Uq4mGo5AUV7f+mo4Q5XZnD9YAVY3n13ELVEA==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -21812,7 +21814,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-5JIX+fXKCwPiySyzoyCJtGPfu4BV6Qxe5u5kbcYb9LkAsJm1pO/g8sEQ+ArQRZdQ4TDVVUGMz3tRO3FdLbpZrw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-OzmxUl/PYHOS8yGyKUtF3xBu0bjmiS7sP8itZKcF9BrXcy/gUBV13jcThjQJPVdOqosige8PfFAlo+2weP2MMA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -21858,7 +21860,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-tV8DqnE6Lr8GpmVMbG7GZ3EKN7/jbnwNOvdBGFkYMr/AdF7nLhfUkk5+c67F6vpAV2hcccvBZxTcowLEu9MBWA==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-y9Gw6NsQ6LPFuwFO8oGSrDAAHqS82tjtJq1Dm6qJn22lpz+QiVdSAlv/3VO0SvaNZ9I5LyewwzlwIhkdPM6eJA==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -21902,7 +21904,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-p7lmls5XlMEAkMAanyI4OwaoRXFzQVnHBd5SvPuXyDOiJdv5wEszCuMaLl6HfjpKXAey0QMsyKTxR57K4ttpHA==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-NX2prF/kGaSLwSrS12RsS5hdh4ZqF3wIiEW9cB3dQosMGROwwzAsxWqgqzOEy+QhhWX+++Fhyx4vql29mZbPPQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -21948,7 +21950,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-kl1NP0Aly8KJktFBvUrc+XJMgsE9Ude92tavMC2sPKhftN9TTuq3zwHIGEu9GxAItaFsVIPOyBEqaVwZn+Gq7g==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-Ga3erk3RtyoBrEhQzQ2z1/5Sp/8u3KPrPdz2KBE6lshhWhw/5RAUH9HQUgqxlPL6y6s/6Sb3BNFzWO/3C2aVEA==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -21996,7 +21998,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-4c7I4Sx9Qbs7tqcIquGfrBHxglzd7Aay4YlD6lf3nNOoKyqgc8Ssi9GMMCmRP17w6LZnB+P3s3mKDi/WGkqKjQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-tSqVosJDzzok10XlJ2YMtVAzc0Hk/wPnRZF989eU9/lAp7QEt2oDUc/NvICRe7XhUPFMcBbLhMFSSNvPtdPdBQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -22037,7 +22039,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-U33UZ/EkLPoVj/MhhtBw5FeS4Z0hc4BMcQjVjSPvQj75cCgpaU0U/krZ7GTiL/Dphyd/JETYpanzw71jNZnYdw==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-KAaSp+MzUlijvMRwj0RUyIpxTNmj9JRN9WtwHV+iBuFhsYFVYdlqJ8pyf/ix2LrHguwlTJ9vaN8vqjdV6k8rfQ==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -22073,7 +22075,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-yJd96STpLIo+CTk3UTbQaSd8ldzbNsKxsiXDGFRnmkpVY0SdofAgL8ZHmRQvKR9QP/12qkM/nwtZrXheAgUP3A==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-xHceNRrF53mpk2em5CqubyIkhKWRCywf/QFYMpXlre2L541PJiU4ck/GqVP6Ht3rpm8hXWYq85Zj5B+8Q1DYrQ==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -22114,7 +22116,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-cWUJ54rsjIpb9PsE7hkAy4y7fkODWuNSaGjyKtqJNz4bv5GQm2CDUpuVmTMpjkiO/Eo0vhyglw8sqbG+oZGgWg==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-VJ2po8I4sUujbA0IQ4STNJoMJH+NjwDnzPPg4iK3xcLESJ1vdd2j47f3Ef0E4BlC5ItOyMgD4X0U2IDsXvrjEQ==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -22156,7 +22158,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-GhtVBNJOhG2NoJLtD8125wOgW3po9rtn2P4uFJ/OifLK8Yt/Ihh+ObgH5zWxN1OSlHg7xiUHpmxR38dXH8QcWw==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-d7ntz0EHL6il93Owu/txDMufxBB+zTdeou55PJkSAiSNNjyjjgUuGpbxjV4sOx2UiLKjp+2j1z3PGFNYBaE67w==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -22199,7 +22201,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-DLgL6tmgleuMNJiUw3y0sl3yjzFDRCZUUqU85OiJzzicRNdCjOhx2m85EJ0MassMup+sxWsOumbeV1hdE1WHUA==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-gTRmQq4EwHS+RQz40ZRg+k4l1Uw29zdRiWHTHJsPUGr3zLr9sRMDHpgvHNYNtNvEj/cuk1PecGkctr4Ks0XGRw==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -22217,7 +22219,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-mqd8Rhk6qP95pjgMASERASgaF6QjSBTnupvTA/3ZYA95cigg2OuobQeFdTL+t8MB8T3OWE0YSi2CAqeZYjOSaA==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-j/q/5kY0P7F7LOmefZPLX9jMJeGs3uiOxMcEtzjLbzAPsoOxr/JTQ+o1iB3BO03WfrwJ4542op1G9RPrZvnMQg==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -22257,7 +22259,7 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-R/2OafMDrnpOYos4yW4RHmQAZQyxbG0+uNJQYA9jjnbnKuZTInmaAZoU73FOOrjCZBfX7TAYn/tsUBQVS3BL4A==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-WFP5ojdxf3UTanWWi0m66tu0AE+0RSv2q3EQSSKtDpheawdXYirXWwjR/Uf4HSLgFa2N96L4cxs5pA9BS2KO3A==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: @@ -22285,7 +22287,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-DwBo66ieqQPqfjI3z2waj0OO8do548CVP+PZAICdC5w/Fq8ZOz6dMh09PWYXkpZCvXaFDtl0aaYtAwDmtMAcSw==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-MihJGeJOvpzoOAnTPM3n3aK/NaAMMCk0mXeRigN66YPAtoX7p24DaZuThDcPrAua/uVoClSZHvloJ0NgtroLpQ==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -22321,7 +22323,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HyGi6Yahjy4aNreOcQN4NWv7LGcax0E/7Rpg+HuM3U022EdzNwaNQ3szWW0F/RMNw8Rph1gDvG41R0SsyELwuQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-HPx4nELna/MO9u/GH64GLsaBqwbjM3jJM1lba5Om02nXUwp2JdAwbWS2pt6WPHipxjNhwdqEguzXr85waTIQEQ==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -22357,7 +22359,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-8Jg44N2Xy3VsZaSgcBDkWDjjpT8NcU+0TXvb3PCravbYHdMtI8K/XpI6fkpZnisjjl6dEE2MCUX6ecPAoFvvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-oYyxWJs0yiBuHRK1euUkqJ2WM0LVn+fgnhkQrnjRmvu1kp4+rbmDA3E5UmxKBzxgdFs29chO8Fx/0YipGFMQkA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -22372,7 +22374,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-tW709YZSIRFko8C3hbjhQqgOO/Md5hbJRIxsbauRr9vut9fD4r5AmPP4YrGP7qcyc4OL+zZHzS9V9cVfXzmDDA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-uvpFPo6XIzyHKic6DRBTc//6R6m8n7mhi3CoYLnzEpQMJaiXsEtxXOREBRSdgm+1fz/OaYw1i7BDr9puGy0fAA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -22433,7 +22435,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-XoXsTwBU/quZBvcXcaXviSu92SHndVE8H5SmpPL8MhpjinqmSsx6p1Hi+TK+eyxyP1zUZhS3YYIvKdk38Il3BA==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-c2g3ZI0rWjlkBSH8zaqdqVuxE6p7TU0UlJk1NVn6bOgOgIYXwIrxTRMmmDFMTyoappHgeGLwzusF6lX3eGhXQQ==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -22489,7 +22491,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-WPtvAZ0OsQOolX5WUKH/Z5x3P8CSif43aacM/a8OzBSO/RlGhiRXqxE+rZhGZZ/iWO6GMwNzLQSmO9DAuwbd4g==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-ob7yKXEnCeb+cRYORSYN/N9VeHU+xA9eEppxRdkNTqYFGlQCkA3DrLvqwmYvQYYqvGuCQ5uhfCLMAXl/LBrd0Q==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -22526,7 +22528,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-leLUmqZbSAXmzpkoO5aRtpa2lPnDmKQy2gTBmhpmyRsXnH1GqDV1wGHJ/PauTVzdl7hpq9WRIuYwxwVmLaYj0Q==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-++ibJXG+7uOjChJLGKcUkGLUcqfLXTatj1eTM7TbkJXOhGcdrUYovedIaPV51UFCwgE0yYi3XuiCJs6GvQL4vA==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 6a13c44ca3a6..7d79368e2dac 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,5 +1,668 @@ # Release History + +## 10.0.0-beta.1 (2024-03-18) + +**Features** + + - Added operation group AllPolicies + - Added operation group ApiManagementGateway + - Added operation group PolicyRestriction + - Added operation group PolicyRestrictionValidations + - Added operation group ProductApiLink + - Added operation group ProductGroupLink + - Added operation group TagApiLink + - Added operation group TagOperationLink + - Added operation group TagProductLink + - Added operation group Workspace + - Added operation group WorkspaceApi + - Added operation group WorkspaceApiExport + - Added operation group WorkspaceApiOperation + - Added operation group WorkspaceApiOperationPolicy + - Added operation group WorkspaceApiPolicy + - Added operation group WorkspaceApiRelease + - Added operation group WorkspaceApiRevision + - Added operation group WorkspaceApiSchema + - Added operation group WorkspaceApiVersionSet + - Added operation group WorkspaceGlobalSchema + - Added operation group WorkspaceGroup + - Added operation group WorkspaceGroupUser + - Added operation group WorkspaceNamedValue + - Added operation group WorkspaceNotification + - Added operation group WorkspaceNotificationRecipientEmail + - Added operation group WorkspaceNotificationRecipientUser + - Added operation group WorkspacePolicy + - Added operation group WorkspacePolicyFragment + - Added operation group WorkspaceProduct + - Added operation group WorkspaceProductApiLink + - Added operation group WorkspaceProductGroupLink + - Added operation group WorkspaceProductPolicy + - Added operation group WorkspaceSubscription + - Added operation group WorkspaceTag + - Added operation group WorkspaceTagApiLink + - Added operation group WorkspaceTagOperationLink + - Added operation group WorkspaceTagProductLink + - Added operation Api.beginDelete + - Added operation Api.beginDeleteAndWait + - Added operation Gateway.invalidateDebugCredentials + - Added operation Gateway.listDebugCredentials + - Added operation Gateway.listTrace + - Added operation User.beginDelete + - Added operation User.beginDeleteAndWait + - Added Interface AllPoliciesCollection + - Added Interface AllPoliciesContract + - Added Interface AllPoliciesListByServiceNextOptionalParams + - Added Interface AllPoliciesListByServiceOptionalParams + - Added Interface ApiDeleteHeaders + - Added Interface ApiManagementClientPerformConnectivityCheckAsyncHeaders + - Added Interface ApiManagementGatewayBaseProperties + - Added Interface ApiManagementGatewayCreateOrUpdateOptionalParams + - Added Interface ApiManagementGatewayDeleteHeaders + - Added Interface ApiManagementGatewayDeleteOptionalParams + - Added Interface ApiManagementGatewayGetOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupNextOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupOptionalParams + - Added Interface ApiManagementGatewayListNextOptionalParams + - Added Interface ApiManagementGatewayListOptionalParams + - Added Interface ApiManagementGatewayListResult + - Added Interface ApiManagementGatewayProperties + - Added Interface ApiManagementGatewayResource + - Added Interface ApiManagementGatewaySkuProperties + - Added Interface ApiManagementGatewaySkuPropertiesForPatch + - Added Interface ApiManagementGatewayUpdateHeaders + - Added Interface ApiManagementGatewayUpdateOptionalParams + - Added Interface ApiManagementGatewayUpdateParameters + - Added Interface ApiManagementGatewayUpdateProperties + - Added Interface ApiManagementServiceDeleteHeaders + - Added Interface ApiManagementServiceUpdateHeaders + - Added Interface ApiVersionConstraintAutoGenerated + - Added Interface BackendBaseParametersPool + - Added Interface BackendCircuitBreaker + - Added Interface BackendConfiguration + - Added Interface BackendPool + - Added Interface BackendPoolItem + - Added Interface BackendSubnetConfiguration + - Added Interface CircuitBreakerFailureCondition + - Added Interface CircuitBreakerRule + - Added Interface ConfigurationApi + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface FailureStatusCodeRange + - Added Interface FrontendConfiguration + - Added Interface GatewayConfigurationApi + - Added Interface GatewayDebugCredentialsContract + - Added Interface GatewayInvalidateDebugCredentialsOptionalParams + - Added Interface GatewayListDebugCredentialsContract + - Added Interface GatewayListDebugCredentialsOptionalParams + - Added Interface GatewayListTraceContract + - Added Interface GatewayListTraceOptionalParams + - Added Interface GatewaySku + - Added Interface MigrateToStv2Contract + - Added Interface PolicyFragmentListByServiceNextOptionalParams + - Added Interface PolicyListByServiceNextOptionalParams + - Added Interface PolicyRestrictionCollection + - Added Interface PolicyRestrictionContract + - Added Interface PolicyRestrictionCreateOrUpdateHeaders + - Added Interface PolicyRestrictionCreateOrUpdateOptionalParams + - Added Interface PolicyRestrictionDeleteOptionalParams + - Added Interface PolicyRestrictionGetEntityTagHeaders + - Added Interface PolicyRestrictionGetEntityTagOptionalParams + - Added Interface PolicyRestrictionGetHeaders + - Added Interface PolicyRestrictionGetOptionalParams + - Added Interface PolicyRestrictionListByServiceNextOptionalParams + - Added Interface PolicyRestrictionListByServiceOptionalParams + - Added Interface PolicyRestrictionUpdateContract + - Added Interface PolicyRestrictionUpdateHeaders + - Added Interface PolicyRestrictionUpdateOptionalParams + - Added Interface PolicyRestrictionValidationsByServiceHeaders + - Added Interface PolicyRestrictionValidationsByServiceOptionalParams + - Added Interface PolicyWithComplianceCollection + - Added Interface PolicyWithComplianceContract + - Added Interface PortalConfigListByServiceNextOptionalParams + - Added Interface PrivateEndpointConnectionCreateOrUpdateHeaders + - Added Interface PrivateEndpointConnectionDeleteHeaders + - Added Interface ProductApiLinkCollection + - Added Interface ProductApiLinkContract + - Added Interface ProductApiLinkCreateOrUpdateOptionalParams + - Added Interface ProductApiLinkDeleteOptionalParams + - Added Interface ProductApiLinkGetHeaders + - Added Interface ProductApiLinkGetOptionalParams + - Added Interface ProductApiLinkListByProductNextOptionalParams + - Added Interface ProductApiLinkListByProductOptionalParams + - Added Interface ProductGroupLinkCollection + - Added Interface ProductGroupLinkContract + - Added Interface ProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface ProductGroupLinkDeleteOptionalParams + - Added Interface ProductGroupLinkGetHeaders + - Added Interface ProductGroupLinkGetOptionalParams + - Added Interface ProductGroupLinkListByProductNextOptionalParams + - Added Interface ProductGroupLinkListByProductOptionalParams + - Added Interface ProductPolicyListByProductNextOptionalParams + - Added Interface TagApiLinkCollection + - Added Interface TagApiLinkContract + - Added Interface TagApiLinkCreateOrUpdateOptionalParams + - Added Interface TagApiLinkDeleteOptionalParams + - Added Interface TagApiLinkGetHeaders + - Added Interface TagApiLinkGetOptionalParams + - Added Interface TagApiLinkListByProductNextOptionalParams + - Added Interface TagApiLinkListByProductOptionalParams + - Added Interface TagOperationLinkCollection + - Added Interface TagOperationLinkContract + - Added Interface TagOperationLinkCreateOrUpdateOptionalParams + - Added Interface TagOperationLinkDeleteOptionalParams + - Added Interface TagOperationLinkGetHeaders + - Added Interface TagOperationLinkGetOptionalParams + - Added Interface TagOperationLinkListByProductNextOptionalParams + - Added Interface TagOperationLinkListByProductOptionalParams + - Added Interface TagProductLinkCollection + - Added Interface TagProductLinkContract + - Added Interface TagProductLinkCreateOrUpdateOptionalParams + - Added Interface TagProductLinkDeleteOptionalParams + - Added Interface TagProductLinkGetHeaders + - Added Interface TagProductLinkGetOptionalParams + - Added Interface TagProductLinkListByProductNextOptionalParams + - Added Interface TagProductLinkListByProductOptionalParams + - Added Interface TenantConfigurationDeployHeaders + - Added Interface TenantConfigurationSaveHeaders + - Added Interface TenantConfigurationValidateHeaders + - Added Interface UserDeleteHeaders + - Added Interface WorkspaceApiCreateOrUpdateHeaders + - Added Interface WorkspaceApiCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiDeleteOptionalParams + - Added Interface WorkspaceApiExportGetOptionalParams + - Added Interface WorkspaceApiGetEntityTagHeaders + - Added Interface WorkspaceApiGetEntityTagOptionalParams + - Added Interface WorkspaceApiGetHeaders + - Added Interface WorkspaceApiGetOptionalParams + - Added Interface WorkspaceApiListByServiceNextOptionalParams + - Added Interface WorkspaceApiListByServiceOptionalParams + - Added Interface WorkspaceApiOperationCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationDeleteOptionalParams + - Added Interface WorkspaceApiOperationGetEntityTagHeaders + - Added Interface WorkspaceApiOperationGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationGetHeaders + - Added Interface WorkspaceApiOperationGetOptionalParams + - Added Interface WorkspaceApiOperationListByApiNextOptionalParams + - Added Interface WorkspaceApiOperationListByApiOptionalParams + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationPolicyDeleteOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetHeaders + - Added Interface WorkspaceApiOperationPolicyGetOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationOptionalParams + - Added Interface WorkspaceApiOperationUpdateHeaders + - Added Interface WorkspaceApiOperationUpdateOptionalParams + - Added Interface WorkspaceApiPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiPolicyDeleteOptionalParams + - Added Interface WorkspaceApiPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiPolicyGetHeaders + - Added Interface WorkspaceApiPolicyGetOptionalParams + - Added Interface WorkspaceApiPolicyListByApiNextOptionalParams + - Added Interface WorkspaceApiPolicyListByApiOptionalParams + - Added Interface WorkspaceApiReleaseCreateOrUpdateHeaders + - Added Interface WorkspaceApiReleaseCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiReleaseDeleteOptionalParams + - Added Interface WorkspaceApiReleaseGetEntityTagHeaders + - Added Interface WorkspaceApiReleaseGetEntityTagOptionalParams + - Added Interface WorkspaceApiReleaseGetHeaders + - Added Interface WorkspaceApiReleaseGetOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceNextOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceOptionalParams + - Added Interface WorkspaceApiReleaseUpdateHeaders + - Added Interface WorkspaceApiReleaseUpdateOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceNextOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceOptionalParams + - Added Interface WorkspaceApiSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceApiSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiSchemaDeleteOptionalParams + - Added Interface WorkspaceApiSchemaGetEntityTagHeaders + - Added Interface WorkspaceApiSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceApiSchemaGetHeaders + - Added Interface WorkspaceApiSchemaGetOptionalParams + - Added Interface WorkspaceApiSchemaListByApiNextOptionalParams + - Added Interface WorkspaceApiSchemaListByApiOptionalParams + - Added Interface WorkspaceApiUpdateHeaders + - Added Interface WorkspaceApiUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetCreateOrUpdateHeaders + - Added Interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetDeleteOptionalParams + - Added Interface WorkspaceApiVersionSetGetEntityTagHeaders + - Added Interface WorkspaceApiVersionSetGetEntityTagOptionalParams + - Added Interface WorkspaceApiVersionSetGetHeaders + - Added Interface WorkspaceApiVersionSetGetOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceNextOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceOptionalParams + - Added Interface WorkspaceApiVersionSetUpdateHeaders + - Added Interface WorkspaceApiVersionSetUpdateOptionalParams + - Added Interface WorkspaceCollection + - Added Interface WorkspaceContract + - Added Interface WorkspaceCreateOrUpdateHeaders + - Added Interface WorkspaceCreateOrUpdateOptionalParams + - Added Interface WorkspaceDeleteOptionalParams + - Added Interface WorkspaceGetEntityTagHeaders + - Added Interface WorkspaceGetEntityTagOptionalParams + - Added Interface WorkspaceGetHeaders + - Added Interface WorkspaceGetOptionalParams + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceGlobalSchemaDeleteOptionalParams + - Added Interface WorkspaceGlobalSchemaGetEntityTagHeaders + - Added Interface WorkspaceGlobalSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceGlobalSchemaGetHeaders + - Added Interface WorkspaceGlobalSchemaGetOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceNextOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceOptionalParams + - Added Interface WorkspaceGroupCreateOrUpdateHeaders + - Added Interface WorkspaceGroupCreateOrUpdateOptionalParams + - Added Interface WorkspaceGroupDeleteOptionalParams + - Added Interface WorkspaceGroupGetEntityTagHeaders + - Added Interface WorkspaceGroupGetEntityTagOptionalParams + - Added Interface WorkspaceGroupGetHeaders + - Added Interface WorkspaceGroupGetOptionalParams + - Added Interface WorkspaceGroupListByServiceNextOptionalParams + - Added Interface WorkspaceGroupListByServiceOptionalParams + - Added Interface WorkspaceGroupUpdateHeaders + - Added Interface WorkspaceGroupUpdateOptionalParams + - Added Interface WorkspaceGroupUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceGroupUserCreateOptionalParams + - Added Interface WorkspaceGroupUserDeleteOptionalParams + - Added Interface WorkspaceGroupUserListNextOptionalParams + - Added Interface WorkspaceGroupUserListOptionalParams + - Added Interface WorkspaceListByServiceNextOptionalParams + - Added Interface WorkspaceListByServiceOptionalParams + - Added Interface WorkspaceNamedValueCreateOrUpdateHeaders + - Added Interface WorkspaceNamedValueCreateOrUpdateOptionalParams + - Added Interface WorkspaceNamedValueDeleteOptionalParams + - Added Interface WorkspaceNamedValueGetEntityTagHeaders + - Added Interface WorkspaceNamedValueGetEntityTagOptionalParams + - Added Interface WorkspaceNamedValueGetHeaders + - Added Interface WorkspaceNamedValueGetOptionalParams + - Added Interface WorkspaceNamedValueListByServiceNextOptionalParams + - Added Interface WorkspaceNamedValueListByServiceOptionalParams + - Added Interface WorkspaceNamedValueListValueHeaders + - Added Interface WorkspaceNamedValueListValueOptionalParams + - Added Interface WorkspaceNamedValueRefreshSecretHeaders + - Added Interface WorkspaceNamedValueRefreshSecretOptionalParams + - Added Interface WorkspaceNamedValueUpdateHeaders + - Added Interface WorkspaceNamedValueUpdateOptionalParams + - Added Interface WorkspaceNotificationCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationGetOptionalParams + - Added Interface WorkspaceNotificationListByServiceNextOptionalParams + - Added Interface WorkspaceNotificationListByServiceOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientUserDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams + - Added Interface WorkspacePolicyCreateOrUpdateHeaders + - Added Interface WorkspacePolicyCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentCreateOrUpdateHeaders + - Added Interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyFragmentDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentGetEntityTagHeaders + - Added Interface WorkspacePolicyFragmentGetEntityTagOptionalParams + - Added Interface WorkspacePolicyFragmentGetHeaders + - Added Interface WorkspacePolicyFragmentGetOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceNextOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceOptionalParams + - Added Interface WorkspacePolicyFragmentListReferencesOptionalParams + - Added Interface WorkspacePolicyGetEntityTagHeaders + - Added Interface WorkspacePolicyGetEntityTagOptionalParams + - Added Interface WorkspacePolicyGetHeaders + - Added Interface WorkspacePolicyGetOptionalParams + - Added Interface WorkspacePolicyListByApiNextOptionalParams + - Added Interface WorkspacePolicyListByApiOptionalParams + - Added Interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductApiLinkDeleteOptionalParams + - Added Interface WorkspaceProductApiLinkGetHeaders + - Added Interface WorkspaceProductApiLinkGetOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductOptionalParams + - Added Interface WorkspaceProductCreateOrUpdateHeaders + - Added Interface WorkspaceProductCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductDeleteOptionalParams + - Added Interface WorkspaceProductGetEntityTagHeaders + - Added Interface WorkspaceProductGetEntityTagOptionalParams + - Added Interface WorkspaceProductGetHeaders + - Added Interface WorkspaceProductGetOptionalParams + - Added Interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductGroupLinkDeleteOptionalParams + - Added Interface WorkspaceProductGroupLinkGetHeaders + - Added Interface WorkspaceProductGroupLinkGetOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductOptionalParams + - Added Interface WorkspaceProductListByServiceNextOptionalParams + - Added Interface WorkspaceProductListByServiceOptionalParams + - Added Interface WorkspaceProductPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceProductPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductPolicyDeleteOptionalParams + - Added Interface WorkspaceProductPolicyGetEntityTagHeaders + - Added Interface WorkspaceProductPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceProductPolicyGetHeaders + - Added Interface WorkspaceProductPolicyGetOptionalParams + - Added Interface WorkspaceProductPolicyListByProductOptionalParams + - Added Interface WorkspaceProductUpdateHeaders + - Added Interface WorkspaceProductUpdateOptionalParams + - Added Interface WorkspaceSubscriptionCreateOrUpdateHeaders + - Added Interface WorkspaceSubscriptionCreateOrUpdateOptionalParams + - Added Interface WorkspaceSubscriptionDeleteOptionalParams + - Added Interface WorkspaceSubscriptionGetEntityTagHeaders + - Added Interface WorkspaceSubscriptionGetEntityTagOptionalParams + - Added Interface WorkspaceSubscriptionGetHeaders + - Added Interface WorkspaceSubscriptionGetOptionalParams + - Added Interface WorkspaceSubscriptionListNextOptionalParams + - Added Interface WorkspaceSubscriptionListOptionalParams + - Added Interface WorkspaceSubscriptionListSecretsHeaders + - Added Interface WorkspaceSubscriptionListSecretsOptionalParams + - Added Interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionUpdateHeaders + - Added Interface WorkspaceSubscriptionUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkDeleteOptionalParams + - Added Interface WorkspaceTagApiLinkGetHeaders + - Added Interface WorkspaceTagApiLinkGetOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductOptionalParams + - Added Interface WorkspaceTagCreateOrUpdateHeaders + - Added Interface WorkspaceTagCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagDeleteOptionalParams + - Added Interface WorkspaceTagGetEntityStateHeaders + - Added Interface WorkspaceTagGetEntityStateOptionalParams + - Added Interface WorkspaceTagGetHeaders + - Added Interface WorkspaceTagGetOptionalParams + - Added Interface WorkspaceTagListByServiceNextOptionalParams + - Added Interface WorkspaceTagListByServiceOptionalParams + - Added Interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagOperationLinkDeleteOptionalParams + - Added Interface WorkspaceTagOperationLinkGetHeaders + - Added Interface WorkspaceTagOperationLinkGetOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductOptionalParams + - Added Interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagProductLinkDeleteOptionalParams + - Added Interface WorkspaceTagProductLinkGetHeaders + - Added Interface WorkspaceTagProductLinkGetOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductOptionalParams + - Added Interface WorkspaceTagUpdateHeaders + - Added Interface WorkspaceTagUpdateOptionalParams + - Added Interface WorkspaceUpdateHeaders + - Added Interface WorkspaceUpdateOptionalParams + - Added Type Alias AllPoliciesListByServiceNextResponse + - Added Type Alias AllPoliciesListByServiceResponse + - Added Type Alias ApiDeleteResponse + - Added Type Alias ApiManagementGatewayCreateOrUpdateResponse + - Added Type Alias ApiManagementGatewayDeleteResponse + - Added Type Alias ApiManagementGatewayGetResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupNextResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupResponse + - Added Type Alias ApiManagementGatewayListNextResponse + - Added Type Alias ApiManagementGatewayListResponse + - Added Type Alias ApiManagementGatewayUpdateResponse + - Added Type Alias BackendType + - Added Type Alias DeveloperPortalStatus + - Added Type Alias GatewayListDebugCredentialsContractPurpose + - Added Type Alias GatewayListDebugCredentialsResponse + - Added Type Alias GatewayListTraceResponse + - Added Type Alias KeyVaultRefreshState + - Added Type Alias LegacyApiState + - Added Type Alias LegacyPortalStatus + - Added Type Alias MigrateToStv2Mode + - Added Type Alias PolicyComplianceState + - Added Type Alias PolicyFragmentListByServiceNextResponse + - Added Type Alias PolicyListByServiceNextResponse + - Added Type Alias PolicyRestrictionCreateOrUpdateResponse + - Added Type Alias PolicyRestrictionGetEntityTagResponse + - Added Type Alias PolicyRestrictionGetResponse + - Added Type Alias PolicyRestrictionListByServiceNextResponse + - Added Type Alias PolicyRestrictionListByServiceResponse + - Added Type Alias PolicyRestrictionRequireBase + - Added Type Alias PolicyRestrictionUpdateResponse + - Added Type Alias PolicyRestrictionValidationsByServiceResponse + - Added Type Alias PortalConfigListByServiceNextResponse + - Added Type Alias ProductApiLinkCreateOrUpdateResponse + - Added Type Alias ProductApiLinkGetResponse + - Added Type Alias ProductApiLinkListByProductNextResponse + - Added Type Alias ProductApiLinkListByProductResponse + - Added Type Alias ProductGroupLinkCreateOrUpdateResponse + - Added Type Alias ProductGroupLinkGetResponse + - Added Type Alias ProductGroupLinkListByProductNextResponse + - Added Type Alias ProductGroupLinkListByProductResponse + - Added Type Alias ProductPolicyListByProductNextResponse + - Added Type Alias TagApiLinkCreateOrUpdateResponse + - Added Type Alias TagApiLinkGetResponse + - Added Type Alias TagApiLinkListByProductNextResponse + - Added Type Alias TagApiLinkListByProductResponse + - Added Type Alias TagOperationLinkCreateOrUpdateResponse + - Added Type Alias TagOperationLinkGetResponse + - Added Type Alias TagOperationLinkListByProductNextResponse + - Added Type Alias TagOperationLinkListByProductResponse + - Added Type Alias TagProductLinkCreateOrUpdateResponse + - Added Type Alias TagProductLinkGetResponse + - Added Type Alias TagProductLinkListByProductNextResponse + - Added Type Alias TagProductLinkListByProductResponse + - Added Type Alias UserDeleteResponse + - Added Type Alias WorkspaceApiCreateOrUpdateResponse + - Added Type Alias WorkspaceApiExportGetResponse + - Added Type Alias WorkspaceApiGetEntityTagResponse + - Added Type Alias WorkspaceApiGetResponse + - Added Type Alias WorkspaceApiListByServiceNextResponse + - Added Type Alias WorkspaceApiListByServiceResponse + - Added Type Alias WorkspaceApiOperationCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationGetResponse + - Added Type Alias WorkspaceApiOperationListByApiNextResponse + - Added Type Alias WorkspaceApiOperationListByApiResponse + - Added Type Alias WorkspaceApiOperationPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationPolicyGetResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationNextResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationResponse + - Added Type Alias WorkspaceApiOperationUpdateResponse + - Added Type Alias WorkspaceApiPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiPolicyGetResponse + - Added Type Alias WorkspaceApiPolicyListByApiNextResponse + - Added Type Alias WorkspaceApiPolicyListByApiResponse + - Added Type Alias WorkspaceApiReleaseCreateOrUpdateResponse + - Added Type Alias WorkspaceApiReleaseGetEntityTagResponse + - Added Type Alias WorkspaceApiReleaseGetResponse + - Added Type Alias WorkspaceApiReleaseListByServiceNextResponse + - Added Type Alias WorkspaceApiReleaseListByServiceResponse + - Added Type Alias WorkspaceApiReleaseUpdateResponse + - Added Type Alias WorkspaceApiRevisionListByServiceNextResponse + - Added Type Alias WorkspaceApiRevisionListByServiceResponse + - Added Type Alias WorkspaceApiSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceApiSchemaGetEntityTagResponse + - Added Type Alias WorkspaceApiSchemaGetResponse + - Added Type Alias WorkspaceApiSchemaListByApiNextResponse + - Added Type Alias WorkspaceApiSchemaListByApiResponse + - Added Type Alias WorkspaceApiUpdateResponse + - Added Type Alias WorkspaceApiVersionSetCreateOrUpdateResponse + - Added Type Alias WorkspaceApiVersionSetGetEntityTagResponse + - Added Type Alias WorkspaceApiVersionSetGetResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceNextResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceResponse + - Added Type Alias WorkspaceApiVersionSetUpdateResponse + - Added Type Alias WorkspaceCreateOrUpdateResponse + - Added Type Alias WorkspaceGetEntityTagResponse + - Added Type Alias WorkspaceGetResponse + - Added Type Alias WorkspaceGlobalSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceGlobalSchemaGetEntityTagResponse + - Added Type Alias WorkspaceGlobalSchemaGetResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceNextResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceResponse + - Added Type Alias WorkspaceGroupCreateOrUpdateResponse + - Added Type Alias WorkspaceGroupGetEntityTagResponse + - Added Type Alias WorkspaceGroupGetResponse + - Added Type Alias WorkspaceGroupListByServiceNextResponse + - Added Type Alias WorkspaceGroupListByServiceResponse + - Added Type Alias WorkspaceGroupUpdateResponse + - Added Type Alias WorkspaceGroupUserCheckEntityExistsResponse + - Added Type Alias WorkspaceGroupUserCreateResponse + - Added Type Alias WorkspaceGroupUserListNextResponse + - Added Type Alias WorkspaceGroupUserListResponse + - Added Type Alias WorkspaceListByServiceNextResponse + - Added Type Alias WorkspaceListByServiceResponse + - Added Type Alias WorkspaceNamedValueCreateOrUpdateResponse + - Added Type Alias WorkspaceNamedValueGetEntityTagResponse + - Added Type Alias WorkspaceNamedValueGetResponse + - Added Type Alias WorkspaceNamedValueListByServiceNextResponse + - Added Type Alias WorkspaceNamedValueListByServiceResponse + - Added Type Alias WorkspaceNamedValueListValueResponse + - Added Type Alias WorkspaceNamedValueRefreshSecretResponse + - Added Type Alias WorkspaceNamedValueUpdateResponse + - Added Type Alias WorkspaceNotificationCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationGetResponse + - Added Type Alias WorkspaceNotificationListByServiceNextResponse + - Added Type Alias WorkspaceNotificationListByServiceResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientEmailListByNotificationResponse + - Added Type Alias WorkspaceNotificationRecipientUserCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientUserCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientUserListByNotificationResponse + - Added Type Alias WorkspacePolicyCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentGetEntityTagResponse + - Added Type Alias WorkspacePolicyFragmentGetResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceNextResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceResponse + - Added Type Alias WorkspacePolicyFragmentListReferencesResponse + - Added Type Alias WorkspacePolicyGetEntityTagResponse + - Added Type Alias WorkspacePolicyGetResponse + - Added Type Alias WorkspacePolicyListByApiNextResponse + - Added Type Alias WorkspacePolicyListByApiResponse + - Added Type Alias WorkspaceProductApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductApiLinkGetResponse + - Added Type Alias WorkspaceProductApiLinkListByProductNextResponse + - Added Type Alias WorkspaceProductApiLinkListByProductResponse + - Added Type Alias WorkspaceProductCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGetEntityTagResponse + - Added Type Alias WorkspaceProductGetResponse + - Added Type Alias WorkspaceProductGroupLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGroupLinkGetResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductNextResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductResponse + - Added Type Alias WorkspaceProductListByServiceNextResponse + - Added Type Alias WorkspaceProductListByServiceResponse + - Added Type Alias WorkspaceProductPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceProductPolicyGetEntityTagResponse + - Added Type Alias WorkspaceProductPolicyGetResponse + - Added Type Alias WorkspaceProductPolicyListByProductResponse + - Added Type Alias WorkspaceProductUpdateResponse + - Added Type Alias WorkspaceSubscriptionCreateOrUpdateResponse + - Added Type Alias WorkspaceSubscriptionGetEntityTagResponse + - Added Type Alias WorkspaceSubscriptionGetResponse + - Added Type Alias WorkspaceSubscriptionListNextResponse + - Added Type Alias WorkspaceSubscriptionListResponse + - Added Type Alias WorkspaceSubscriptionListSecretsResponse + - Added Type Alias WorkspaceSubscriptionUpdateResponse + - Added Type Alias WorkspaceTagApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagApiLinkGetResponse + - Added Type Alias WorkspaceTagApiLinkListByProductNextResponse + - Added Type Alias WorkspaceTagApiLinkListByProductResponse + - Added Type Alias WorkspaceTagCreateOrUpdateResponse + - Added Type Alias WorkspaceTagGetEntityStateResponse + - Added Type Alias WorkspaceTagGetResponse + - Added Type Alias WorkspaceTagListByServiceNextResponse + - Added Type Alias WorkspaceTagListByServiceResponse + - Added Type Alias WorkspaceTagOperationLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagOperationLinkGetResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductNextResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductResponse + - Added Type Alias WorkspaceTagProductLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagProductLinkGetResponse + - Added Type Alias WorkspaceTagProductLinkListByProductNextResponse + - Added Type Alias WorkspaceTagProductLinkListByProductResponse + - Added Type Alias WorkspaceTagUpdateResponse + - Added Type Alias WorkspaceUpdateResponse + - Interface ApiContract has a new optional parameter provisioningState + - Interface ApiContractProperties has a new optional parameter provisioningState + - Interface ApiCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiCreateOrUpdateHeaders has a new optional parameter location + - Interface ApiCreateOrUpdateParameter has a new optional parameter provisioningState + - Interface ApiDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ApiDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApiManagementServiceBaseProperties has a new optional parameter configurationApi + - Interface ApiManagementServiceBaseProperties has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceBaseProperties has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceMigrateToStv2OptionalParams has a new optional parameter parameters + - Interface ApiManagementServiceResource has a new optional parameter configurationApi + - Interface ApiManagementServiceResource has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceResource has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter configurationApi + - Interface ApiManagementServiceUpdateParameters has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter legacyPortalStatus + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface AuthorizationAccessPolicyContract has a new optional parameter appIds + - Interface BackendBaseParameters has a new optional parameter circuitBreaker + - Interface BackendBaseParameters has a new optional parameter pool + - Interface BackendBaseParameters has a new optional parameter type + - Interface BackendContract has a new optional parameter circuitBreaker + - Interface BackendContract has a new optional parameter pool + - Interface BackendContract has a new optional parameter typePropertiesType + - Interface BackendUpdateParameters has a new optional parameter circuitBreaker + - Interface BackendUpdateParameters has a new optional parameter pool + - Interface BackendUpdateParameters has a new optional parameter type + - Interface GlobalSchemaContract has a new optional parameter provisioningState + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface NamedValueContract has a new optional parameter provisioningState + - Interface NamedValueContractProperties has a new optional parameter provisioningState + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter location + - Interface PolicyFragmentContract has a new optional parameter provisioningState + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter location + - Interface PortalRevisionContract has a new optional parameter provisioningState + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter location + - Interface SchemaContract has a new optional parameter provisioningState + - Interface UserDeleteOptionalParams has a new optional parameter resumeFrom + - Interface UserDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Added Enum KnownBackendType + - Added Enum KnownDeveloperPortalStatus + - Added Enum KnownGatewayListDebugCredentialsContractPurpose + - Added Enum KnownKeyVaultRefreshState + - Added Enum KnownLegacyApiState + - Added Enum KnownLegacyPortalStatus + - Added Enum KnownMigrateToStv2Mode + - Added Enum KnownPolicyComplianceState + - Added Enum KnownPolicyRestrictionRequireBase + - Enum KnownApiType has a new value Grpc + - Enum KnownApiType has a new value Odata + - Enum KnownContentFormat has a new value Grpc + - Enum KnownContentFormat has a new value GrpcLink + - Enum KnownContentFormat has a new value Odata + - Enum KnownContentFormat has a new value OdataLink + - Enum KnownHostnameType has a new value ConfigurationApi + - Enum KnownPlatformVersion has a new value Stv21 + - Enum KnownSoapApiType has a new value GRPC + - Enum KnownSoapApiType has a new value OData + +**Breaking Changes** + - Removed operation Api.delete + - Removed operation User.delete + - Enum KnownSkuType no longer has value Basic + - Enum KnownSkuType no longer has value Consumption + - Enum KnownSkuType no longer has value Developer + - Enum KnownSkuType no longer has value Isolated + - Enum KnownSkuType no longer has value Premium + ## 9.1.0 (2023-08-23) **Features** @@ -571,4 +1234,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE b/sdk/apimanagement/arm-apimanagement/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE +++ b/sdk/apimanagement/arm-apimanagement/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/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 9b6c2e8409c2..075f96a061ed 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -6,7 +6,7 @@ ApiManagement Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 2dd27e303209..e8410195af2c 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1", + "commit": "38e3927628f8589ef4f95b700b5e805b90ee9536", "readme": "specification/apimanagement/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\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "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.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index f8b67f7e1880..9044bd36e858 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.1.0", + "version": "10.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@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": [ @@ -32,19 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.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": "api-extractor run --local", "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", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement" +} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index 666a2a8cd093..32d42386e5fc 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -68,6 +68,37 @@ export interface AdditionalLocation { zones?: string[]; } +// @public +export interface AllPolicies { + listByService(resourceGroupName: string, serviceName: string, options?: AllPoliciesListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AllPoliciesCollection { + nextLink?: string; + value?: AllPoliciesContract[]; +} + +// @public +export interface AllPoliciesContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} + +// @public +export interface AllPoliciesListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +// @public +export interface AllPoliciesListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + // @public export type AlwaysLog = string; @@ -75,7 +106,8 @@ export type AlwaysLog = string; export interface Api { beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise, ApiDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetEntityTagOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -115,6 +147,7 @@ export interface ApiContract extends ProxyResource { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; @@ -128,6 +161,7 @@ export interface ApiContractProperties extends ApiEntityBaseContract { displayName?: string; path: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; } @@ -142,7 +176,9 @@ export interface ApiContractUpdateProperties extends ApiEntityBaseContract { // @public export interface ApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -171,6 +207,7 @@ export interface ApiCreateOrUpdateParameter { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; soapApiType?: SoapApiType; sourceApiId?: string; @@ -200,11 +237,22 @@ export interface ApiCreateOrUpdatePropertiesWsdlSelector { // @public export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +// @public +export interface ApiDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { deleteRevisions?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type ApiDeleteResponse = ApiDeleteHeaders; + // @public export interface ApiDiagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, parameters: DiagnosticContract, options?: ApiDiagnosticCreateOrUpdateOptionalParams): Promise; @@ -618,6 +666,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApiManagementClientOptionalParams); constructor(credentials: coreAuth.TokenCredential, options?: ApiManagementClientOptionalParams); // (undocumented) + allPolicies: AllPolicies; + // (undocumented) api: Api; // (undocumented) apiDiagnostic: ApiDiagnostic; @@ -630,6 +680,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiIssueComment: ApiIssueComment; // (undocumented) + apiManagementGateway: ApiManagementGateway; + // (undocumented) apiManagementOperations: ApiManagementOperations; // (undocumented) apiManagementService: ApiManagementService; @@ -740,6 +792,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyFragment: PolicyFragment; // (undocumented) + policyRestriction: PolicyRestriction; + // (undocumented) + policyRestrictionValidations: PolicyRestrictionValidations; + // (undocumented) portalConfig: PortalConfig; // (undocumented) portalRevision: PortalRevision; @@ -752,8 +808,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productApi: ProductApi; // (undocumented) + productApiLink: ProductApiLink; + // (undocumented) productGroup: ProductGroup; // (undocumented) + productGroupLink: ProductGroupLink; + // (undocumented) productPolicy: ProductPolicy; // (undocumented) productSubscriptions: ProductSubscriptions; @@ -780,6 +840,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) tag: Tag; // (undocumented) + tagApiLink: TagApiLink; + // (undocumented) + tagOperationLink: TagOperationLink; + // (undocumented) + tagProductLink: TagProductLink; + // (undocumented) tagResource: TagResource; // (undocumented) tenantAccess: TenantAccess; @@ -799,6 +865,62 @@ export class ApiManagementClient extends coreClient.ServiceClient { userIdentities: UserIdentities; // (undocumented) userSubscription: UserSubscription; + // (undocumented) + workspace: Workspace; + // (undocumented) + workspaceApi: WorkspaceApi; + // (undocumented) + workspaceApiExport: WorkspaceApiExport; + // (undocumented) + workspaceApiOperation: WorkspaceApiOperation; + // (undocumented) + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + // (undocumented) + workspaceApiPolicy: WorkspaceApiPolicy; + // (undocumented) + workspaceApiRelease: WorkspaceApiRelease; + // (undocumented) + workspaceApiRevision: WorkspaceApiRevision; + // (undocumented) + workspaceApiSchema: WorkspaceApiSchema; + // (undocumented) + workspaceApiVersionSet: WorkspaceApiVersionSet; + // (undocumented) + workspaceGlobalSchema: WorkspaceGlobalSchema; + // (undocumented) + workspaceGroup: WorkspaceGroup; + // (undocumented) + workspaceGroupUser: WorkspaceGroupUser; + // (undocumented) + workspaceNamedValue: WorkspaceNamedValue; + // (undocumented) + workspaceNotification: WorkspaceNotification; + // (undocumented) + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + // (undocumented) + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + // (undocumented) + workspacePolicy: WorkspacePolicy; + // (undocumented) + workspacePolicyFragment: WorkspacePolicyFragment; + // (undocumented) + workspaceProduct: WorkspaceProduct; + // (undocumented) + workspaceProductApiLink: WorkspaceProductApiLink; + // (undocumented) + workspaceProductGroupLink: WorkspaceProductGroupLink; + // (undocumented) + workspaceProductPolicy: WorkspaceProductPolicy; + // (undocumented) + workspaceSubscription: WorkspaceSubscription; + // (undocumented) + workspaceTag: WorkspaceTag; + // (undocumented) + workspaceTagApiLink: WorkspaceTagApiLink; + // (undocumented) + workspaceTagOperationLink: WorkspaceTagOperationLink; + // (undocumented) + workspaceTagProductLink: WorkspaceTagProductLink; } // @public @@ -808,6 +930,159 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementGateway { + beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise, ApiManagementGatewayCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise, ApiManagementGatewayDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise, ApiManagementGatewayUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise; + get(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayGetOptionalParams): Promise; + list(options?: ApiManagementGatewayListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: ApiManagementGatewayListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementGatewayBaseProperties { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayCreateOrUpdateResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayDeleteHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayDeleteResponse = ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListResult { + nextLink?: string; + value: ApiManagementGatewayResource[]; +} + +// @public +export interface ApiManagementGatewayProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export interface ApiManagementGatewayResource extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + location: string; + readonly provisioningState?: string; + sku: ApiManagementGatewaySkuProperties; + readonly systemData?: SystemData; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewaySkuProperties { + capacity: number; + name: SkuType; +} + +// @public +export interface ApiManagementGatewaySkuPropertiesForPatch { + capacity?: number; + name?: SkuType; +} + +// @public +export interface ApiManagementGatewayUpdateHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + sku?: ApiManagementGatewaySkuPropertiesForPatch; + readonly targetProvisioningState?: string; +} + +// @public +export interface ApiManagementGatewayUpdateProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -902,16 +1177,19 @@ export interface ApiManagementServiceBaseProperties { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; readonly gatewayRegionalUrl?: string; readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -952,6 +1230,11 @@ export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreCl // @public export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceDeleteHeaders { + location?: string; +} + // @public export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1041,6 +1324,7 @@ export interface ApiManagementServiceMigrateToStv2Headers { // @public export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + parameters?: MigrateToStv2Contract; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1066,10 +1350,12 @@ export interface ApiManagementServiceResource extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1078,6 +1364,7 @@ export interface ApiManagementServiceResource extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; location: string; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; @@ -1143,6 +1430,11 @@ export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams // @public export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +// @public +export interface ApiManagementServiceUpdateHeaders { + location?: string; +} + // @public export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1154,10 +1446,12 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1166,6 +1460,7 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -1685,7 +1980,9 @@ export interface ApiSchema { // @public export interface ApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -1863,6 +2160,11 @@ export interface ApiVersionConstraint { minApiVersion?: string; } +// @public +export interface ApiVersionConstraintAutoGenerated { + minApiVersion?: string; +} + // @public export interface ApiVersionSet { createOrUpdate(resourceGroupName: string, serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, options?: ApiVersionSetCreateOrUpdateOptionalParams): Promise; @@ -2137,6 +2439,7 @@ export interface AuthorizationAccessPolicyCollection { // @public export interface AuthorizationAccessPolicyContract extends ProxyResource { + appIds?: string[]; objectId?: string; tenantId?: string; } @@ -2598,13 +2901,26 @@ export interface BackendAuthorizationHeaderCredentials { // @public export interface BackendBaseParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; +} + +// @public (undocumented) +export interface BackendBaseParametersPool extends BackendPool { +} + +// @public +export interface BackendCircuitBreaker { + rules?: CircuitBreakerRule[]; } // @public @@ -2614,16 +2930,25 @@ export interface BackendCollection { value?: BackendContract[]; } +// @public +export interface BackendConfiguration { + subnet?: BackendSubnetConfiguration; +} + // @public export interface BackendContract extends ProxyResource { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + typePropertiesType?: BackendType; url?: string; } @@ -2704,6 +3029,16 @@ export interface BackendListByServiceOptionalParams extends coreClient.Operation // @public export type BackendListByServiceResponse = BackendCollection; +// @public +export interface BackendPool { + services?: BackendPoolItem[]; +} + +// @public +export interface BackendPoolItem { + id: string; +} + // @public export interface BackendProperties { serviceFabricCluster?: BackendServiceFabricClusterProperties; @@ -2739,12 +3074,20 @@ export interface BackendServiceFabricClusterProperties { serverX509Names?: X509CertificateName[]; } +// @public +export interface BackendSubnetConfiguration { + id?: string; +} + // @public export interface BackendTlsProperties { validateCertificateChain?: boolean; validateCertificateName?: boolean; } +// @public +export type BackendType = string; + // @public export interface BackendUpdateHeaders { eTag?: string; @@ -2762,14 +3105,18 @@ export interface BackendUpdateParameterProperties extends BackendBaseParameters // @public export interface BackendUpdateParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; url?: string; } @@ -3017,6 +3364,22 @@ export type CertificateSource = string; // @public export type CertificateStatus = string; +// @public +export interface CircuitBreakerFailureCondition { + count?: number; + errorReasons?: string[]; + interval?: string; + percentage?: number; + statusCodeRanges?: FailureStatusCodeRange[]; +} + +// @public +export interface CircuitBreakerRule { + failureCondition?: CircuitBreakerFailureCondition; + name?: string; + tripDuration?: string; +} + // @public export type ClientAuthenticationMethod = string; @@ -3025,6 +3388,11 @@ export interface ClientSecretContract { clientSecret?: string; } +// @public +export interface ConfigurationApi { + legacyApi?: LegacyApiState; +} + // @public export type ConfigurationIdName = string; @@ -3392,6 +3760,9 @@ export interface DeployConfigurationParameters { force?: boolean; } +// @public +export type DeveloperPortalStatus = string; + // @public export interface Diagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; @@ -3711,6 +4082,21 @@ export interface EndpointDetail { region?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorFieldContract { code?: string; @@ -3725,6 +4111,11 @@ export interface ErrorResponse { message?: string; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetail; +} + // @public export interface ErrorResponseBody { code?: string; @@ -3741,6 +4132,17 @@ export type ExportFormat = string; // @public export type ExportResultFormat = string; +// @public +export interface FailureStatusCodeRange { + max?: number; + min?: number; +} + +// @public +export interface FrontendConfiguration { + readonly defaultHostname?: string; +} + // @public export interface Gateway { createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; @@ -3748,8 +4150,11 @@ export interface Gateway { generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, options?: GatewayGenerateTokenOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetEntityTagOptionalParams): Promise; + invalidateDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayInvalidateDebugCredentialsOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; + listDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListDebugCredentialsContract, options?: GatewayListDebugCredentialsOptionalParams): Promise; listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): Promise; + listTrace(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListTraceContract, options?: GatewayListTraceOptionalParams): Promise; regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, options?: GatewayRegenerateKeyOptionalParams): Promise; update(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, parameters: GatewayContract, options?: GatewayUpdateOptionalParams): Promise; } @@ -3888,6 +4293,11 @@ export interface GatewayCollection { readonly value?: GatewayContract[]; } +// @public +export interface GatewayConfigurationApi { + readonly hostname?: string; +} + // @public export interface GatewayContract extends ProxyResource { description?: string; @@ -3907,6 +4317,11 @@ export interface GatewayCreateOrUpdateOptionalParams extends coreClient.Operatio // @public export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; +// @public +export interface GatewayDebugCredentialsContract { + token?: string; +} + // @public export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { } @@ -4025,6 +4440,10 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams extends // @public export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +// @public +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + // @public export interface GatewayKeyRegenerationRequestContract { keyType: KeyType_2; @@ -4054,21 +4473,57 @@ export interface GatewayListByServiceOptionalParams extends coreClient.Operation export type GatewayListByServiceResponse = GatewayCollection; // @public -export interface GatewayListKeysHeaders { - eTag?: string; +export interface GatewayListDebugCredentialsContract { + apiId: string; + credentialsExpireAfter?: string; + purposes: GatewayListDebugCredentialsContractPurpose[]; } // @public -export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { +export type GatewayListDebugCredentialsContractPurpose = string; + +// @public +export interface GatewayListDebugCredentialsOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; +export type GatewayListDebugCredentialsResponse = GatewayDebugCredentialsContract; + +// @public +export interface GatewayListKeysHeaders { + eTag?: string; +} + +// @public +export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; + +// @public +export interface GatewayListTraceContract { + traceId?: string; +} + +// @public +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListTraceResponse = { + [propertyName: string]: any; +}; // @public export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { } +// @public +export interface GatewaySku { + name?: SkuType; +} + // @public export interface GatewayTokenContract { value?: string; @@ -4121,13 +4576,16 @@ export interface GlobalSchemaCollection { export interface GlobalSchemaContract extends ProxyResource { description?: string; document?: Record; + readonly provisioningState?: string; schemaType?: SchemaType; value?: any; } // @public export interface GlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -4848,6 +5306,9 @@ export interface KeyVaultLastAccessStatusContractProperties { timeStampUtc?: Date; } +// @public +export type KeyVaultRefreshState = string; + // @public export enum KnownAccessIdName { Access = "access", @@ -4877,7 +5338,9 @@ export enum KnownApimIdentityType { // @public export enum KnownApiType { Graphql = "graphql", + Grpc = "grpc", Http = "http", + Odata = "odata", Soap = "soap", Websocket = "websocket" } @@ -4906,6 +5369,12 @@ export enum KnownBackendProtocol { Soap = "soap" } +// @public +export enum KnownBackendType { + Pool = "Pool", + Single = "Single" +} + // @public export enum KnownBearerTokenSendingMethod { AuthorizationHeader = "authorizationHeader", @@ -4981,6 +5450,10 @@ export enum KnownConnectivityStatusType { // @public export enum KnownContentFormat { GraphqlLink = "graphql-link", + Grpc = "grpc", + GrpcLink = "grpc-link", + Odata = "odata", + OdataLink = "odata-link", Openapi = "openapi", OpenapiJson = "openapi+json", OpenapiJsonLink = "openapi+json-link", @@ -5007,6 +5480,12 @@ export enum KnownDataMaskingMode { Mask = "Mask" } +// @public +export enum KnownDeveloperPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownExportApi { True = "true" @@ -5029,6 +5508,11 @@ export enum KnownExportResultFormat { Wsdl = "wsdl-link+xml" } +// @public +export enum KnownGatewayListDebugCredentialsContractPurpose { + Tracing = "tracing" +} + // @public export enum KnownGrantType { AuthorizationCode = "authorizationCode", @@ -5039,6 +5523,7 @@ export enum KnownGrantType { // @public export enum KnownHostnameType { + ConfigurationApi = "ConfigurationApi", DeveloperPortal = "DeveloperPortal", Management = "Management", Portal = "Portal", @@ -5076,6 +5561,24 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } +// @public +export enum KnownKeyVaultRefreshState { + False = "false", + True = "true" +} + +// @public +export enum KnownLegacyApiState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownLegacyPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownLoggerType { ApplicationInsights = "applicationInsights", @@ -5089,6 +5592,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownMigrateToStv2Mode { + NewIP = "NewIP", + PreserveIp = "PreserveIp" +} + // @public export enum KnownNatGatewayState { Disabled = "Disabled", @@ -5130,9 +5639,17 @@ export enum KnownPlatformVersion { Mtv1 = "mtv1", Stv1 = "stv1", Stv2 = "stv2", + Stv21 = "stv2.1", Undetermined = "undetermined" } +// @public +export enum KnownPolicyComplianceState { + Compliant = "Compliant", + NonCompliant = "NonCompliant", + Pending = "Pending" +} + // @public export enum KnownPolicyContentFormat { Rawxml = "rawxml", @@ -5158,6 +5675,12 @@ export enum KnownPolicyIdName { Policy = "policy" } +// @public +export enum KnownPolicyRestrictionRequireBase { + False = "false", + True = "true" +} + // @public export enum KnownPortalRevisionStatus { Completed = "completed", @@ -5238,17 +5761,14 @@ export enum KnownSeverity { // @public export enum KnownSkuType { - Basic = "Basic", - Consumption = "Consumption", - Developer = "Developer", - Isolated = "Isolated", - Premium = "Premium", Standard = "Standard" } // @public export enum KnownSoapApiType { GraphQL = "graphql", + GRPC = "grpc", + OData = "odata", SoapPassThrough = "soap", SoapToRest = "http", WebSocket = "websocket" @@ -5316,6 +5836,12 @@ export enum KnownVirtualNetworkType { None = "None" } +// @public +export type LegacyApiState = string; + +// @public +export type LegacyPortalStatus = string; + // @public export interface Logger { createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; @@ -5430,6 +5956,14 @@ export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; // @public export type Method = string; +// @public +export interface MigrateToStv2Contract { + mode?: MigrateToStv2Mode; +} + +// @public +export type MigrateToStv2Mode = string; + // @public export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; @@ -5459,6 +5993,7 @@ export interface NamedValueCollection { export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; secret?: boolean; tags?: string[]; value?: string; @@ -5468,6 +6003,7 @@ export interface NamedValueContract extends ProxyResource { export interface NamedValueContractProperties extends NamedValueEntityBaseParameters { displayName: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; value?: string; } @@ -5489,7 +6025,9 @@ export interface NamedValueCreateContractProperties extends NamedValueEntityBase // @public export interface NamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6119,7 +6657,7 @@ export interface Policy { delete(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, ifMatch: string, options?: PolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6129,6 +6667,9 @@ export interface PolicyCollection { value?: PolicyContract[]; } +// @public +export type PolicyComplianceState = string; + // @public export type PolicyContentFormat = string; @@ -6190,7 +6731,7 @@ export interface PolicyFragment { delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; } @@ -6208,12 +6749,15 @@ export type PolicyFragmentContentFormat = string; export interface PolicyFragmentContract extends ProxyResource { description?: string; format?: PolicyFragmentContentFormat; + readonly provisioningState?: string; value?: string; } // @public export interface PolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6255,6 +6799,13 @@ export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOpt // @public export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; +// @public +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + // @public export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; @@ -6303,6 +6854,13 @@ export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; // @public export type PolicyIdName = string; +// @public +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyListByServiceNextResponse = PolicyCollection; + // @public export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6310,15 +6868,147 @@ export interface PolicyListByServiceOptionalParams extends coreClient.OperationO // @public export type PolicyListByServiceResponse = PolicyCollection; +// @public +export interface PolicyRestriction { + createOrUpdate(resourceGroupName: string, serviceName: string, policyRestrictionId: string, parameters: PolicyRestrictionContract, options?: PolicyRestrictionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, policyRestrictionId: string, ifMatch: string, parameters: PolicyRestrictionUpdateContract, options?: PolicyRestrictionUpdateOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionCollection { + nextLink?: string; + // (undocumented) + value?: PolicyRestrictionContract[]; +} + +// @public +export interface PolicyRestrictionContract extends ProxyResource { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type PolicyRestrictionCreateOrUpdateResponse = PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionDeleteOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetEntityTagResponse = PolicyRestrictionGetEntityTagHeaders; + +// @public +export interface PolicyRestrictionGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceNextResponse = PolicyRestrictionCollection; + +// @public +export interface PolicyRestrictionListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceResponse = PolicyRestrictionCollection; + +// @public +export type PolicyRestrictionRequireBase = string; + +// @public +export interface PolicyRestrictionUpdateContract { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionValidations { + beginByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise, PolicyRestrictionValidationsByServiceResponse>>; + beginByServiceAndWait(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionValidationsByServiceHeaders { + location?: string; +} + +// @public +export interface PolicyRestrictionValidationsByServiceOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyRestrictionValidationsByServiceResponse = OperationResultContract; + // @public export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; +// @public +export interface PolicyWithComplianceCollection { + nextLink?: string; + value?: PolicyWithComplianceContract[]; +} + +// @public +export interface PolicyWithComplianceContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} + // @public export interface PortalConfig { createOrUpdate(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; } @@ -6391,6 +7081,13 @@ export interface PortalConfigGetOptionalParams extends coreClient.OperationOptio // @public export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; +// @public +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; + // @public export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6451,6 +7148,7 @@ export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; + readonly provisioningState?: string; readonly status?: PortalRevisionStatus; readonly statusDetails?: string; readonly updatedDateTime?: Date; @@ -6458,7 +7156,9 @@ export interface PortalRevisionContract extends ProxyResource { // @public export interface PortalRevisionCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6590,6 +7290,11 @@ export interface PrivateEndpointConnection extends Resource { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } +// @public +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6599,6 +7304,11 @@ export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends c // @public export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionDeleteHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6725,6 +7435,66 @@ export type ProductApiCreateOrUpdateResponse = ApiContract; export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: ProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductApiLinkCollection { + count?: number; + nextLink?: string; + value?: ProductApiLinkContract[]; +} + +// @public +export interface ProductApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface ProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; + // @public export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { } @@ -6846,31 +7616,91 @@ export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOp } // @public -export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { +export interface ProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: ProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; } // @public -export type ProductGroupListByProductNextResponse = GroupCollection; +export interface ProductGroupLinkCollection { + count?: number; + nextLink?: string; + value?: ProductGroupLinkContract[]; +} // @public -export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface ProductGroupLinkContract extends ProxyResource { + groupId?: string; } // @public -export type ProductGroupListByProductResponse = GroupCollection; +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductListByServiceNextResponse = ProductCollection; +export interface ProductGroupLinkGetHeaders { + eTag?: string; +} // @public -export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupListByProductNextResponse = GroupCollection; + +// @public +export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductGroupListByProductResponse = GroupCollection; + +// @public +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductListByServiceNextResponse = ProductCollection; + +// @public +export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { expandGroups?: boolean; filter?: string; skip?: number; @@ -6905,7 +7735,7 @@ export interface ProductPolicy { delete(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: ProductPolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetEntityTagOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6950,6 +7780,13 @@ export interface ProductPolicyGetOptionalParams extends coreClient.OperationOpti // @public export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +// @public +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductPolicyListByProductNextResponse = PolicyCollection; + // @public export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { } @@ -7625,6 +8462,7 @@ export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; + readonly provisioningState?: string; value?: string; } @@ -7944,6 +8782,66 @@ export interface Tag { update(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: TagUpdateOptionalParams): Promise; } +// @public +export interface TagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: TagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagApiLinkCollection { + count?: number; + nextLink?: string; + value?: TagApiLinkContract[]; +} + +// @public +export interface TagApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagApiLinkListByProductResponse = TagApiLinkCollection; + // @public export interface TagAssignToApiHeaders { eTag?: string; @@ -8217,6 +9115,126 @@ export interface TagListByServiceOptionalParams extends coreClient.OperationOpti // @public export type TagListByServiceResponse = TagCollection; +// @public +export interface TagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: TagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagOperationLinkCollection { + count?: number; + nextLink?: string; + value?: TagOperationLinkContract[]; +} + +// @public +export interface TagOperationLinkContract extends ProxyResource { + operationId?: string; +} + +// @public +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface TagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: TagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagProductLinkCollection { + count?: number; + nextLink?: string; + value?: TagProductLinkContract[]; +} + +// @public +export interface TagProductLinkContract extends ProxyResource { + productId?: string; +} + +// @public +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagProductLinkListByProductResponse = TagProductLinkCollection; + // @public export interface TagResource { listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -8395,6 +9413,12 @@ export interface TenantConfiguration { getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } +// @public +export interface TenantConfigurationDeployHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8411,6 +9435,12 @@ export interface TenantConfigurationGetSyncStateOptionalParams extends coreClien // @public export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; +// @public +export interface TenantConfigurationSaveHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8432,6 +9462,12 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { syncDate?: Date; } +// @public +export interface TenantConfigurationValidateHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8505,8 +9541,9 @@ export type TranslateRequiredQueryParametersConduct = string; // @public export interface User { + beginDelete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise, UserDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: UserCreateParameters, options?: UserCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options?: UserGenerateSsoUrlOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetEntityTagOptionalParams): Promise; @@ -8590,13 +9627,24 @@ export interface UserCreateParameters { state?: UserState; } +// @public +export interface UserDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface UserDeleteOptionalParams extends coreClient.OperationOptions { appType?: AppType; deleteSubscriptions?: boolean; notify?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type UserDeleteResponse = UserDeleteHeaders; + // @public export interface UserEntityBaseParameters { identities?: UserIdentityContract[]; @@ -8837,6 +9885,1806 @@ export interface WikiUpdateContract { documents?: WikiDocumentationContract[]; } +// @public +export interface Workspace { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, parameters: WorkspaceContract, options?: WorkspaceCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, options?: WorkspaceDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: WorkspaceListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, parameters: WorkspaceContract, options?: WorkspaceUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApi { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise, WorkspaceApiCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, options?: WorkspaceApiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, parameters: ApiUpdateContract, options?: WorkspaceApiUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { + deleteRevisions?: boolean; +} + +// @public +export interface WorkspaceApiExport { + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, format: ExportFormat, exportParam: ExportApi, options?: WorkspaceApiExportGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiExportGetResponse = ApiExportResult; + +// @public +export interface WorkspaceApiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; + +// @public +export interface WorkspaceApiGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +// @public +export interface WorkspaceApiListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiListByServiceNextResponse = ApiCollection; + +// @public +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + expandApiVersionSet?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiListByServiceResponse = ApiCollection; + +// @public +export interface WorkspaceApiOperation { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, parameters: OperationContract, options?: WorkspaceApiOperationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, options?: WorkspaceApiOperationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiOperationListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, parameters: OperationUpdateContract, options?: WorkspaceApiOperationUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiOperationListByApiResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiOperationPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams): Promise; + listByOperation(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationPolicyListByOperationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiPolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceApiRelease { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, options?: WorkspaceApiReleaseDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiReleaseListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; + +// @public +export interface WorkspaceApiReleaseGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiRevision { + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, ifMatch: string, options?: WorkspaceApiSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiSchemaListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceApiSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +// @public +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; + +// @public +export interface WorkspaceApiUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiVersionSet { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, parameters: ApiVersionSetContract, options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, options?: WorkspaceApiVersionSetDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiVersionSetListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, options?: WorkspaceApiVersionSetUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; + +// @public +export interface WorkspaceApiVersionSetGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceCollection { + count?: number; + nextLink?: string; + value?: WorkspaceContract[]; +} + +// @public +export interface WorkspaceContract extends ProxyResource { + description?: string; + displayName?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & WorkspaceContract; + +// @public +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; + +// @public +export interface WorkspaceGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; + +// @public +export interface WorkspaceGlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceGlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, ifMatch: string, options?: WorkspaceGlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceGlobalSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGroup { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, parameters: GroupCreateParameters, options?: WorkspaceGroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, options?: WorkspaceGroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGroupListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: WorkspaceGroupUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; + +// @public +export interface WorkspaceGroupGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & GroupContract; + +// @public +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; + +// @public +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupListByServiceResponse = GroupCollection; + +// @public +export interface WorkspaceGroupUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCheckEntityExistsOptionalParams): Promise; + create(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCreateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserDeleteOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupUserListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCreateResponse = UserContract; + +// @public +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserListNextResponse = UserCollection; + +// @public +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupUserListResponse = UserCollection; + +// @public +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; + +// @public +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceListByServiceResponse = WorkspaceCollection; + +// @public +export interface WorkspaceNamedValue { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise, WorkspaceNamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise; + beginRefreshSecret(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise, WorkspaceNamedValueRefreshSecretResponse>>; + beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise, WorkspaceNamedValueUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, options?: WorkspaceNamedValueDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; + listValue(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueListValueOptionalParams): Promise; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNamedValueGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; + +// @public +export interface WorkspaceNamedValueGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: KeyVaultRefreshState; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListValueHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; + +// @public +export interface WorkspaceNamedValueRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNotification { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationGetResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationRecipientEmail { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +// @public +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; + +// @public +export interface WorkspaceNotificationRecipientUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; + +// @public +export interface WorkspacePolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspacePolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspacePolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise, WorkspacePolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, ifMatch: string, options?: WorkspacePolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; + listReferences(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; + +// @public +export interface WorkspacePolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceProduct { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, parameters: ProductContract, options?: WorkspaceProductCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, options?: WorkspaceProductDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceProductListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: WorkspaceProductUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} + +// @public +export interface WorkspaceProductGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; + +// @public +export interface WorkspaceProductGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & ProductContract; + +// @public +export interface WorkspaceProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductListByServiceNextResponse = ProductCollection; + +// @public +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceProductListByServiceResponse = ProductCollection; + +// @public +export interface WorkspaceProductPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceProductPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetEntityTagOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductPolicyListByProductOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceProductPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + +// @public +export interface WorkspaceProductUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceSubscription { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, parameters: SubscriptionCreateParameters, options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, options?: WorkspaceSubscriptionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetEntityTagOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceSubscriptionListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: WorkspaceSubscriptionUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + ifMatch?: string; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; + +// @public +export interface WorkspaceSubscriptionGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListSecretsHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; + +// @public +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceTag { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, options?: WorkspaceTagDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetOptionalParams): Promise; + getEntityState(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetEntityStateOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceTagListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceTagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & TagContract; + +// @public +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagGetEntityStateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; + +// @public +export interface WorkspaceTagGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; + +// @public +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagListByServiceNextResponse = TagCollection; + +// @public +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + scope?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagListByServiceResponse = TagCollection; + +// @public +export interface WorkspaceTagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & TagContract; + +// @public +export interface WorkspaceUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & WorkspaceContract; + // @public export interface X509CertificateName { issuerCertificateThumbprint?: string; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 7907189618aa..52014d5e5119 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -11,16 +11,18 @@ 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 { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "./lroImpl"; import { + AllPoliciesImpl, + ApiManagementGatewayImpl, ApiImpl, ApiRevisionImpl, ApiReleaseImpl, @@ -42,11 +44,11 @@ import { ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, - AuthorizationServerImpl, AuthorizationProviderImpl, AuthorizationImpl, AuthorizationLoginLinksImpl, AuthorizationAccessPolicyImpl, + AuthorizationServerImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -57,6 +59,7 @@ import { ApiManagementServiceSkusImpl, ApiManagementServiceImpl, DiagnosticImpl, + DocumentationImpl, EmailTemplateImpl, GatewayImpl, GatewayHostnameConfigurationImpl, @@ -77,6 +80,8 @@ import { PolicyImpl, PolicyDescriptionImpl, PolicyFragmentImpl, + PolicyRestrictionImpl, + PolicyRestrictionValidationsImpl, PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, @@ -91,6 +96,8 @@ import { ProductPolicyImpl, ProductWikiImpl, ProductWikisImpl, + ProductApiLinkImpl, + ProductGroupLinkImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -100,6 +107,9 @@ import { ApiManagementSkusImpl, SubscriptionImpl, TagResourceImpl, + TagApiLinkImpl, + TagOperationLinkImpl, + TagProductLinkImpl, TenantAccessImpl, TenantAccessGitImpl, TenantConfigurationImpl, @@ -108,9 +118,38 @@ import { UserSubscriptionImpl, UserIdentitiesImpl, UserConfirmationPasswordImpl, - DocumentationImpl + WorkspaceImpl, + WorkspacePolicyImpl, + WorkspaceNamedValueImpl, + WorkspaceGlobalSchemaImpl, + WorkspaceNotificationImpl, + WorkspaceNotificationRecipientUserImpl, + WorkspaceNotificationRecipientEmailImpl, + WorkspacePolicyFragmentImpl, + WorkspaceGroupImpl, + WorkspaceGroupUserImpl, + WorkspaceSubscriptionImpl, + WorkspaceApiVersionSetImpl, + WorkspaceApiImpl, + WorkspaceApiRevisionImpl, + WorkspaceApiReleaseImpl, + WorkspaceApiOperationImpl, + WorkspaceApiOperationPolicyImpl, + WorkspaceApiPolicyImpl, + WorkspaceApiSchemaImpl, + WorkspaceProductImpl, + WorkspaceProductApiLinkImpl, + WorkspaceProductGroupLinkImpl, + WorkspaceProductPolicyImpl, + WorkspaceTagImpl, + WorkspaceTagApiLinkImpl, + WorkspaceTagOperationLinkImpl, + WorkspaceTagProductLinkImpl, + WorkspaceApiExportImpl, } from "./operations"; import { + AllPolicies, + ApiManagementGateway, Api, ApiRevision, ApiRelease, @@ -132,11 +171,11 @@ import { ApiWikis, ApiExport, ApiVersionSet, - AuthorizationServer, AuthorizationProvider, Authorization, AuthorizationLoginLinks, AuthorizationAccessPolicy, + AuthorizationServer, Backend, Cache, Certificate, @@ -147,6 +186,7 @@ import { ApiManagementServiceSkus, ApiManagementService, Diagnostic, + Documentation, EmailTemplate, Gateway, GatewayHostnameConfiguration, @@ -167,6 +207,8 @@ import { Policy, PolicyDescription, PolicyFragment, + PolicyRestriction, + PolicyRestrictionValidations, PortalConfig, PortalRevision, PortalSettings, @@ -181,6 +223,8 @@ import { ProductPolicy, ProductWiki, ProductWikis, + ProductApiLink, + ProductGroupLink, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -190,6 +234,9 @@ import { ApiManagementSkus, Subscription, TagResource, + TagApiLink, + TagOperationLink, + TagProductLink, TenantAccess, TenantAccessGit, TenantConfiguration, @@ -198,7 +245,34 @@ import { UserSubscription, UserIdentities, UserConfirmationPassword, - Documentation + Workspace, + WorkspacePolicy, + WorkspaceNamedValue, + WorkspaceGlobalSchema, + WorkspaceNotification, + WorkspaceNotificationRecipientUser, + WorkspaceNotificationRecipientEmail, + WorkspacePolicyFragment, + WorkspaceGroup, + WorkspaceGroupUser, + WorkspaceSubscription, + WorkspaceApiVersionSet, + WorkspaceApi, + WorkspaceApiRevision, + WorkspaceApiRelease, + WorkspaceApiOperation, + WorkspaceApiOperationPolicy, + WorkspaceApiPolicy, + WorkspaceApiSchema, + WorkspaceProduct, + WorkspaceProductApiLink, + WorkspaceProductGroupLink, + WorkspaceProductPolicy, + WorkspaceTag, + WorkspaceTagApiLink, + WorkspaceTagOperationLink, + WorkspaceTagProductLink, + WorkspaceApiExport, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -206,7 +280,7 @@ import { ApiManagementClientOptionalParams, ConnectivityCheckRequest, PerformConnectivityCheckAsyncOptionalParams, - PerformConnectivityCheckAsyncResponse + PerformConnectivityCheckAsyncResponse, } from "./models"; export class ApiManagementClient extends coreClient.ServiceClient { @@ -217,22 +291,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ApiManagementClientOptionalParams | string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -252,10 +326,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { } const defaults: ApiManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; + const packageDetails = `azsdk-js-arm-apimanagement/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,20 +339,21 @@ export class ApiManagementClient 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 ( @@ -288,7 +363,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -298,9 +373,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -308,7 +383,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-08-01"; + this.apiVersion = options.apiVersion || "2023-09-01-preview"; + this.allPolicies = new AllPoliciesImpl(this); + this.apiManagementGateway = new ApiManagementGatewayImpl(this); this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); @@ -330,11 +407,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); - this.authorizationServer = new AuthorizationServerImpl(this); this.authorizationProvider = new AuthorizationProviderImpl(this); this.authorization = new AuthorizationImpl(this); this.authorizationLoginLinks = new AuthorizationLoginLinksImpl(this); this.authorizationAccessPolicy = new AuthorizationAccessPolicyImpl(this); + this.authorizationServer = new AuthorizationServerImpl(this); this.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -345,14 +422,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementServiceSkus = new ApiManagementServiceSkusImpl(this); this.apiManagementService = new ApiManagementServiceImpl(this); this.diagnostic = new DiagnosticImpl(this); + this.documentation = new DocumentationImpl(this); this.emailTemplate = new EmailTemplateImpl(this); this.gateway = new GatewayImpl(this); this.gatewayHostnameConfiguration = new GatewayHostnameConfigurationImpl( - this + this, ); this.gatewayApi = new GatewayApiImpl(this); this.gatewayCertificateAuthority = new GatewayCertificateAuthorityImpl( - this + this, ); this.group = new GroupImpl(this); this.groupUser = new GroupUserImpl(this); @@ -365,21 +443,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.notificationRecipientUser = new NotificationRecipientUserImpl(this); this.notificationRecipientEmail = new NotificationRecipientEmailImpl(this); this.openIdConnectProvider = new OpenIdConnectProviderImpl(this); - this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl( - this - ); + this.outboundNetworkDependenciesEndpoints = + new OutboundNetworkDependenciesEndpointsImpl(this); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); this.policyFragment = new PolicyFragmentImpl(this); + this.policyRestriction = new PolicyRestrictionImpl(this); + this.policyRestrictionValidations = new PolicyRestrictionValidationsImpl( + this, + ); this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); this.signUpSettings = new SignUpSettingsImpl(this); this.delegationSettings = new DelegationSettingsImpl(this); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this - ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.product = new ProductImpl(this); this.productApi = new ProductApiImpl(this); this.productGroup = new ProductGroupImpl(this); @@ -387,6 +467,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productPolicy = new ProductPolicyImpl(this); this.productWiki = new ProductWikiImpl(this); this.productWikis = new ProductWikisImpl(this); + this.productApiLink = new ProductApiLinkImpl(this); + this.productGroupLink = new ProductGroupLinkImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -396,6 +478,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementSkus = new ApiManagementSkusImpl(this); this.subscription = new SubscriptionImpl(this); this.tagResource = new TagResourceImpl(this); + this.tagApiLink = new TagApiLinkImpl(this); + this.tagOperationLink = new TagOperationLinkImpl(this); + this.tagProductLink = new TagProductLinkImpl(this); this.tenantAccess = new TenantAccessImpl(this); this.tenantAccessGit = new TenantAccessGitImpl(this); this.tenantConfiguration = new TenantConfigurationImpl(this); @@ -404,7 +489,38 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(this); - this.documentation = new DocumentationImpl(this); + this.workspace = new WorkspaceImpl(this); + this.workspacePolicy = new WorkspacePolicyImpl(this); + this.workspaceNamedValue = new WorkspaceNamedValueImpl(this); + this.workspaceGlobalSchema = new WorkspaceGlobalSchemaImpl(this); + this.workspaceNotification = new WorkspaceNotificationImpl(this); + this.workspaceNotificationRecipientUser = + new WorkspaceNotificationRecipientUserImpl(this); + this.workspaceNotificationRecipientEmail = + new WorkspaceNotificationRecipientEmailImpl(this); + this.workspacePolicyFragment = new WorkspacePolicyFragmentImpl(this); + this.workspaceGroup = new WorkspaceGroupImpl(this); + this.workspaceGroupUser = new WorkspaceGroupUserImpl(this); + this.workspaceSubscription = new WorkspaceSubscriptionImpl(this); + this.workspaceApiVersionSet = new WorkspaceApiVersionSetImpl(this); + this.workspaceApi = new WorkspaceApiImpl(this); + this.workspaceApiRevision = new WorkspaceApiRevisionImpl(this); + this.workspaceApiRelease = new WorkspaceApiReleaseImpl(this); + this.workspaceApiOperation = new WorkspaceApiOperationImpl(this); + this.workspaceApiOperationPolicy = new WorkspaceApiOperationPolicyImpl( + this, + ); + this.workspaceApiPolicy = new WorkspaceApiPolicyImpl(this); + this.workspaceApiSchema = new WorkspaceApiSchemaImpl(this); + this.workspaceProduct = new WorkspaceProductImpl(this); + this.workspaceProductApiLink = new WorkspaceProductApiLinkImpl(this); + this.workspaceProductGroupLink = new WorkspaceProductGroupLinkImpl(this); + this.workspaceProductPolicy = new WorkspaceProductPolicyImpl(this); + this.workspaceTag = new WorkspaceTagImpl(this); + this.workspaceTagApiLink = new WorkspaceTagApiLinkImpl(this); + this.workspaceTagOperationLink = new WorkspaceTagOperationLinkImpl(this); + this.workspaceTagProductLink = new WorkspaceTagProductLinkImpl(this); + this.workspaceApiExport = new WorkspaceApiExportImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -417,7 +533,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -431,7 +547,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -448,7 +564,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -457,21 +573,20 @@ export class ApiManagementClient extends coreClient.ServiceClient { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.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); @@ -480,8 +595,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -489,8 +604,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -500,9 +615,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, }, - spec: performConnectivityCheckAsyncOperationSpec + spec: performConnectivityCheckAsyncOperationSpec, }); const poller = await createHttpPoller< PerformConnectivityCheckAsyncResponse, @@ -510,7 +625,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -528,17 +643,19 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise { const poller = await this.beginPerformConnectivityCheckAsync( resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, ); return poller.pollUntilDone(); } + allPolicies: AllPolicies; + apiManagementGateway: ApiManagementGateway; api: Api; apiRevision: ApiRevision; apiRelease: ApiRelease; @@ -560,11 +677,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; - authorizationServer: AuthorizationServer; authorizationProvider: AuthorizationProvider; authorization: Authorization; authorizationLoginLinks: AuthorizationLoginLinks; authorizationAccessPolicy: AuthorizationAccessPolicy; + authorizationServer: AuthorizationServer; backend: Backend; cache: Cache; certificate: Certificate; @@ -575,6 +692,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementServiceSkus: ApiManagementServiceSkus; apiManagementService: ApiManagementService; diagnostic: Diagnostic; + documentation: Documentation; emailTemplate: EmailTemplate; gateway: Gateway; gatewayHostnameConfiguration: GatewayHostnameConfiguration; @@ -595,6 +713,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { policy: Policy; policyDescription: PolicyDescription; policyFragment: PolicyFragment; + policyRestriction: PolicyRestriction; + policyRestrictionValidations: PolicyRestrictionValidations; portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; @@ -609,6 +729,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productPolicy: ProductPolicy; productWiki: ProductWiki; productWikis: ProductWikis; + productApiLink: ProductApiLink; + productGroupLink: ProductGroupLink; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -618,6 +740,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementSkus: ApiManagementSkus; subscription: Subscription; tagResource: TagResource; + tagApiLink: TagApiLink; + tagOperationLink: TagOperationLink; + tagProductLink: TagProductLink; tenantAccess: TenantAccess; tenantAccessGit: TenantAccessGit; tenantConfiguration: TenantConfiguration; @@ -626,31 +751,57 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; - documentation: Documentation; + workspace: Workspace; + workspacePolicy: WorkspacePolicy; + workspaceNamedValue: WorkspaceNamedValue; + workspaceGlobalSchema: WorkspaceGlobalSchema; + workspaceNotification: WorkspaceNotification; + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + workspacePolicyFragment: WorkspacePolicyFragment; + workspaceGroup: WorkspaceGroup; + workspaceGroupUser: WorkspaceGroupUser; + workspaceSubscription: WorkspaceSubscription; + workspaceApiVersionSet: WorkspaceApiVersionSet; + workspaceApi: WorkspaceApi; + workspaceApiRevision: WorkspaceApiRevision; + workspaceApiRelease: WorkspaceApiRelease; + workspaceApiOperation: WorkspaceApiOperation; + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + workspaceApiPolicy: WorkspaceApiPolicy; + workspaceApiSchema: WorkspaceApiSchema; + workspaceProduct: WorkspaceProduct; + workspaceProductApiLink: WorkspaceProductApiLink; + workspaceProductGroupLink: WorkspaceProductGroupLink; + workspaceProductPolicy: WorkspaceProductPolicy; + workspaceTag: WorkspaceTag; + workspaceTagApiLink: WorkspaceTagApiLink; + workspaceTagOperationLink: WorkspaceTagOperationLink; + workspaceTagProductLink: WorkspaceTagProductLink; + workspaceApiExport: WorkspaceApiExport; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 201: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 202: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 204: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.connectivityCheckRequestParams, queryParameters: [Parameters.apiVersion], @@ -658,9 +809,9 @@ const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/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/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 4e69c371d1f3..8dc52e490df0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -8,6 +8,228 @@ import * as coreClient from "@azure/core-client"; +/** The response of All Policies. */ +export interface AllPoliciesCollection { + /** AllPolicies Contract value. */ + value?: AllPoliciesContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Error Response. */ +export interface ErrorResponse { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Body contract. */ +export interface ErrorResponseBody { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Field contract. */ +export interface ErrorFieldContract { + /** Property level error code. */ + code?: string; + /** Human-readable representation of property-level error. */ + message?: string; + /** Property name. */ + target?: string; +} + +/** Base Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayBaseProperties { + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; +} + +/** Information regarding how the gateway should be exposed. */ +export interface FrontendConfiguration { + /** + * The default hostname of the data-plane gateway to which requests can be sent. This is only applicable for API gateway with Standard SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultHostname?: string; +} + +/** Information regarding how the gateway should integrate with backend systems. */ +export interface BackendConfiguration { + /** The default hostname of the data-plane gateway to which requests can be sent. */ + subnet?: BackendSubnetConfiguration; +} + +/** Information regarding how the subnet to which the gateway should be injected. */ +export interface BackendSubnetConfiguration { + /** The ARM ID of the subnet in which the backend systems are hosted. */ + id?: string; +} + +/** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ +export interface GatewayConfigurationApi { + /** + * Hostname to which the agent connects to propagate configuration to the cloud. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostname?: string; +} + +/** API Management gateway resource SKU properties. */ +export interface ApiManagementGatewaySkuProperties { + /** Name of the Sku. */ + name: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity: number; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** The Resource definition. */ +export interface ApimResource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type for API Management resource is set to Microsoft.ApiManagement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** API Management gateway resource SKU properties for PATCH operations given nothing should be required. */ +export interface ApiManagementGatewaySkuPropertiesForPatch { + /** Name of the Sku. */ + name?: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity?: number; +} + +/** The response of the List API Management gateway operation. */ +export interface ApiManagementGatewayListResult { + /** Result of the List API Management gateway operation. */ + value: ApiManagementGatewayResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; +} + /** Paged API list representation. */ export interface ApiCollection { /** @@ -131,55 +353,6 @@ export interface ApiLicenseInformation { url?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - -/** Error Response. */ -export interface ErrorResponse { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Body contract. */ -export interface ErrorResponseBody { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Field contract. */ -export interface ErrorFieldContract { - /** Property level error code. */ - code?: string; - /** Human-readable representation of property-level error. */ - message?: string; - /** Property name. */ - target?: string; -} - /** API Create or Update Parameters. */ export interface ApiCreateOrUpdateParameter { /** Description of the API. May include HTML formatting tags. */ @@ -227,9 +400,14 @@ export interface ApiCreateOrUpdateParameter { protocols?: Protocol[]; /** Version set details */ apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; /** Content value when Importing an API. */ value?: string; - /** Format of the Content in which the API is getting imported. */ + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ format?: ContentFormat; /** Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; @@ -239,6 +417,7 @@ export interface ApiCreateOrUpdateParameter { * * `soap` creates a SOAP pass-through API * * `websocket` creates websocket API * * `graphql` creates GraphQL API. + * New types can be added in the future. */ soapApiType?: SoapApiType; /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ @@ -891,72 +1070,20 @@ export interface ApiVersionSetUpdateParameters { versioningScheme?: VersioningScheme; } -/** Paged OAuth2 Authorization Servers list representation. */ -export interface AuthorizationServerCollection { +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { /** Page values. */ - value?: AuthorizationServerContract[]; - /** Total record count number across all pages. */ - count?: number; + value?: AuthorizationProviderContract[]; /** Next page link if any. */ nextLink?: string; } -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerContractBaseProperties { - /** Description of the authorization server. Can contain HTML formatting tags. */ - description?: string; - /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ - authorizationMethods?: AuthorizationMethod[]; - /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ - tokenBodyParameters?: TokenBodyParameterContract[]; - /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ - tokenEndpoint?: string; - /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ - supportState?: boolean; - /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ - defaultScope?: string; - /** Specifies the mechanism by which access token is passed to the API. */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** OAuth acquire token request body parameter (www-url-form-encoded). */ -export interface TokenBodyParameterContract { - /** body parameter name. */ - name: string; - /** body parameter value. */ - value: string; -} - -/** OAuth Server Secrets Contract. */ -export interface AuthorizationServerSecretsContract { - /** oAuth Authorization Server Secrets. */ - clientSecret?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** Paged Authorization Provider list representation. */ -export interface AuthorizationProviderCollection { - /** Page values. */ - value?: AuthorizationProviderContract[]; - /** Next page link if any. */ - nextLink?: string; -} - -/** OAuth2 settings details */ -export interface AuthorizationProviderOAuth2Settings { - /** Redirect URL to be set in the OAuth application. */ - redirectUrl?: string; - /** OAuth2 settings */ - grantTypes?: AuthorizationProviderOAuth2GrantTypes; +/** OAuth2 settings details */ +export interface AuthorizationProviderOAuth2Settings { + /** Redirect URL to be set in the OAuth application. */ + redirectUrl?: string; + /** OAuth2 settings */ + grantTypes?: AuthorizationProviderOAuth2GrantTypes; } /** Authorization Provider oauth2 grant types settings */ @@ -1013,6 +1140,58 @@ export interface AuthorizationAccessPolicyCollection { nextLink?: string; } +/** Paged OAuth2 Authorization Servers list representation. */ +export interface AuthorizationServerCollection { + /** Page values. */ + value?: AuthorizationServerContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerContractBaseProperties { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + +/** OAuth acquire token request body parameter (www-url-form-encoded). */ +export interface TokenBodyParameterContract { + /** body parameter name. */ + name: string; + /** body parameter value. */ + value: string; +} + +/** OAuth Server Secrets Contract. */ +export interface AuthorizationServerSecretsContract { + /** oAuth Authorization Server Secrets. */ + clientSecret?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -1039,6 +1218,11 @@ export interface BackendBaseParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; } /** Properties specific to the Backend Type. */ @@ -1111,6 +1295,56 @@ export interface BackendTlsProperties { validateCertificateName?: boolean; } +/** The configuration of the backend circuit breaker */ +export interface BackendCircuitBreaker { + /** The rules for tripping the backend. */ + rules?: CircuitBreakerRule[]; +} + +/** Rule configuration to trip the backend. */ +export interface CircuitBreakerRule { + /** The rule name. */ + name?: string; + /** The conditions for tripping the circuit breaker. */ + failureCondition?: CircuitBreakerFailureCondition; + /** The duration for which the circuit will be tripped. */ + tripDuration?: string; +} + +/** The trip conditions of the circuit breaker */ +export interface CircuitBreakerFailureCondition { + /** The threshold for opening the circuit. */ + count?: number; + /** The threshold for opening the circuit. */ + percentage?: number; + /** The interval during which the failures are counted. */ + interval?: string; + /** The status code ranges which are considered as failure. */ + statusCodeRanges?: FailureStatusCodeRange[]; + /** The error reasons which are considered as failure. */ + errorReasons?: string[]; +} + +/** The failure http status code range */ +export interface FailureStatusCodeRange { + /** The minimum http status code. */ + min?: number; + /** The maximum http status code. */ + max?: number; +} + +/** Backend pool information */ +export interface BackendPool { + /** The list of backend entities belonging to a pool. */ + services?: BackendPoolItem[]; +} + +/** Backend pool service information */ +export interface BackendPoolItem { + /** The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity. */ + id: string; +} + /** Backend update parameters. */ export interface BackendUpdateParameters { /** Backend Title. */ @@ -1127,6 +1361,11 @@ export interface BackendUpdateParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -1559,6 +1798,8 @@ export interface ApiManagementServiceBaseProperties { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -1591,6 +1832,10 @@ export interface ApiManagementServiceBaseProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; } /** Custom hostname configuration. */ @@ -1629,6 +1874,12 @@ export interface CertificateInformation { subject: string; } +/** Information regarding the Configuration API of the API Management service. */ +export interface ConfigurationApi { + /** Indication whether or not the legacy Configuration API (v1) should be exposed on the API Management service. Value is optional but must be 'Enabled' or 'Disabled'. If 'Disabled', legacy Configuration API (v1) will not be available for self-hosted gateways. Default value is 'Enabled' */ + legacyApi?: LegacyApiState; +} + /** Configuration of a virtual network to which API Management service is deployed. */ export interface VirtualNetworkConfiguration { /** @@ -1784,41 +2035,10 @@ export interface UserIdentityProperties { clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The Resource definition. */ -export interface ApimResource { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type for API Management resource is set to Microsoft.ApiManagement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Describes an available API Management SKU. */ +export interface MigrateToStv2Contract { + /** Mode of Migration to stv2. Default is PreserveIp. */ + mode?: MigrateToStv2Mode; } /** The response of the List API Management services operation. */ @@ -1872,6 +2092,28 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +/** Paged Documentation list representation. */ +export interface DocumentationCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DocumentationContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Documentation update contract details. */ +export interface DocumentationUpdateContract { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Paged email template list representation. */ export interface EmailTemplateCollection { /** Page values. */ @@ -1993,6 +2235,28 @@ export interface GatewayCertificateAuthorityCollection { readonly nextLink?: string; } +/** List debug credentials properties. */ +export interface GatewayListDebugCredentialsContract { + /** Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used. */ + credentialsExpireAfter?: string; + /** Purposes of debug credential. */ + purposes: GatewayListDebugCredentialsContractPurpose[]; + /** Full resource Id of an API. */ + apiId: string; +} + +/** Gateway debug credentials. */ +export interface GatewayDebugCredentialsContract { + /** Gateway debug token. */ + token?: string; +} + +/** List trace properties. */ +export interface GatewayListTraceContract { + /** Trace id. */ + traceId?: string; +} + /** Paged Group list representation. */ export interface GroupCollection { /** Page values. */ @@ -2365,6 +2629,31 @@ export interface ResourceCollection { nextLink?: string; } +/** The response of the get policy restrictions operation. */ +export interface PolicyRestrictionCollection { + value?: PolicyRestrictionContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Policy restriction contract details. */ +export interface PolicyRestrictionUpdateContract { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; +} + +/** Log of the entity being created, updated or deleted. */ +export interface OperationResultLogItemContract { + /** The type of entity contract. */ + objectType?: string; + /** Action like create/update/delete. */ + action?: string; + /** Identifier of the entity being created/updated/deleted. */ + objectKey?: string; +} + /** The collection of the developer portal configurations. */ export interface PortalConfigCollection { /** The developer portal configurations. */ @@ -2534,6 +2823,26 @@ export interface SubscriptionCollection { nextLink?: string; } +/** Paged Product-API link list representation. */ +export interface ProductApiLinkCollection { + /** Page values. */ + value?: ProductApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Product-group link list representation. */ +export interface ProductGroupLinkCollection { + /** Page values. */ + value?: ProductGroupLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Quota Counter list representation. */ export interface QuotaCounterCollection { /** Quota counter values. */ @@ -3022,6 +3331,36 @@ export interface TagCreateUpdateParameters { displayName?: string; } +/** Paged Tag-API link list representation. */ +export interface TagApiLinkCollection { + /** Page values. */ + value?: TagApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-operation link list representation. */ +export interface TagOperationLinkCollection { + /** Page values. */ + value?: TagOperationLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-product link list representation. */ +export interface TagProductLinkCollection { + /** Page values. */ + value?: TagProductLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged AccessInformation list representation. */ export interface AccessInformationCollection { /** @@ -3078,16 +3417,6 @@ export interface DeployConfigurationParameters { force?: boolean; } -/** Log of the entity being created, updated or deleted. */ -export interface OperationResultLogItemContract { - /** The type of entity contract. */ - objectType?: string; - /** Action like create/update/delete. */ - action?: string; - /** Identifier of the entity being created/updated/deleted. */ - objectKey?: string; -} - /** Save Tenant Configuration Contract details. */ export interface SaveConfigurationParameter { /** The name of the Git branch in which to commit the current configuration snapshot. */ @@ -3169,26 +3498,26 @@ export interface UserTokenResult { value?: string; } -/** Paged Documentation list representation. */ -export interface DocumentationCollection { - /** - * Page values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DocumentationContract[]; - /** - * Next page link if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Paged workspace list representation. */ +export interface WorkspaceCollection { + /** Page values. */ + value?: WorkspaceContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; } -/** Documentation update contract details. */ -export interface DocumentationUpdateContract { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Describes an available API Management SKU for gateways. */ +export interface GatewaySku { + /** Name of the Sku. */ + name?: SkuType; +} + +/** Control Plane Apis version constraint for the API Management gateway. */ +export interface ApiVersionConstraintAutoGenerated { + /** Limit control plane API calls to API Management gateway with version equal to or newer than this value. */ + minApiVersion?: string; } /** Object used to create an API Revision or Version based on an existing API Revision */ @@ -3203,10 +3532,18 @@ export interface ApiRevisionInfoContract { apiVersionSet?: ApiVersionSetContractDetails; } -/** Quota counter value details. */ -export interface QuotaCounterValueContract { - /** Number of times Counter was called. */ - callsCount?: number; +/** The response of the list policy operation. */ +export interface PolicyWithComplianceCollection { + /** Policy Contract value. */ + value?: PolicyWithComplianceContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Quota counter value details. */ +export interface QuotaCounterValueContract { + /** Number of times Counter was called. */ + callsCount?: number; /** Data Transferred in KiloBytes. */ kbTransferred?: number; } @@ -3221,49 +3558,6 @@ export interface ResolverResultLogItemContract { objectKey?: string; } -/** API Entity Properties */ -export interface ApiContractProperties extends ApiEntityBaseContract { - /** API identifier of the source API. */ - sourceApiId?: string; - /** API name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; - /** Version set details */ - apiVersionSet?: ApiVersionSetContractDetails; -} - -/** API update contract properties. */ -export interface ApiContractUpdateProperties extends ApiEntityBaseContract { - /** API name. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - -/** API contract properties for the Tag Resources. */ -export interface ApiTagResourceContractProperties - extends ApiEntityBaseContract { - /** API identifier in the form /apis/{apiId}. */ - id?: string; - /** API name. */ - name?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -3296,187 +3590,18 @@ export interface PrivateLinkResource extends Resource { requiredZoneNames?: string[]; } -/** Operation Contract Properties */ -export interface OperationContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate: string; -} - -/** Operation Update Contract Properties. */ -export interface OperationUpdateContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName?: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method?: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate?: string; -} - -/** Product profile. */ -export interface ProductContractProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName: string; -} - -/** Product profile. */ -export interface ProductTagResourceContractProperties - extends ProductEntityBaseParameters { - /** Identifier of the product in the form of /products/{productId} */ - id?: string; - /** Product name. */ - name: string; -} - -/** Parameters supplied to the Update Product operation. */ -export interface ProductUpdateProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName?: string; -} - -/** Issue contract Properties. */ -export interface IssueContractProperties extends IssueContractBaseProperties { - /** The issue title. */ - title: string; - /** Text describing the issue. */ - description: string; - /** A resource identifier for the user created the issue. */ - userId: string; -} - -/** Issue contract Update Properties. */ -export interface IssueUpdateContractProperties - extends IssueContractBaseProperties { - /** The issue title. */ - title?: string; - /** Text describing the issue. */ - description?: string; - /** A resource identifier for the user created the issue. */ - userId?: string; -} - -/** TagDescription contract Properties. */ -export interface TagDescriptionContractProperties - extends TagDescriptionBaseProperties { - /** Identifier of the tag in the form of /tags/{tagId} */ - tagId?: string; - /** Tag name. */ - displayName?: string; -} - -/** Properties of an API Version Set. */ -export interface ApiVersionSetContractProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme: VersioningScheme; -} - -/** Properties used to create or update an API Version Set. */ -export interface ApiVersionSetUpdateParametersProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName?: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: VersioningScheme; -} - -/** External OAuth authorization server settings Properties. */ -export interface AuthorizationServerContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerUpdateContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName?: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint?: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint?: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes?: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId?: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Parameters supplied to the Create Backend operation. */ -export interface BackendContractProperties extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url: string; - /** Backend communication protocol. */ - protocol: BackendProtocol; -} - -/** Parameters supplied to the Update Backend operation. */ -export interface BackendUpdateParameterProperties - extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url?: string; - /** Backend communication protocol. */ - protocol?: BackendProtocol; -} - -/** KeyVault contract details. */ -export interface KeyVaultContractProperties - extends KeyVaultContractCreateProperties { - /** Last time sync and refresh status of secret from key vault. */ - lastStatus?: KeyVaultLastAccessStatusContractProperties; -} - -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayProperties + extends ApiManagementGatewayBaseProperties {} -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayUpdateProperties + extends ApiManagementGatewayBaseProperties {} -/** A single API Management service resource in List or Get response. */ -export interface ApiManagementServiceResource extends ApimResource { - /** SKU properties of the API Management service. */ - sku: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; +/** A single API Management gateway resource in List or Get response. */ +export interface ApiManagementGatewayResource extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku: ApiManagementGatewaySkuProperties; /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3489,48 +3614,121 @@ export interface ApiManagementServiceResource extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; - /** A list of availability zones denoting where the resource needs to come from. */ - zones?: string[]; - /** Email address from which the notification will be sent. */ - notificationSenderEmail?: string; /** - * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; /** - * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly targetProvisioningState?: string; /** - * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; +} + +/** Parameter supplied to Update API Management gateway. */ +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku?: ApiManagementGatewaySkuPropertiesForPatch; /** - * Gateway URL of the API Management service. + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayUrl?: string; + readonly etag?: string; /** - * Gateway URL of the API Management service in the Default Region. + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayRegionalUrl?: string; + readonly provisioningState?: string; /** - * Publisher portal endpoint Url of the API Management service. + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly portalUrl?: string; + readonly targetProvisioningState?: string; /** - * Management API endpoint URL of the API Management service. + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managementApiUrl?: string; - /** - * SCM endpoint URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; +} + +/** A single API Management service resource in List or Get response. */ +export interface ApiManagementServiceResource extends ApimResource { + /** SKU properties of the API Management service. */ + sku: ApiManagementServiceSkuProperties; + /** Managed service identity of the Api Management service. */ + identity?: ApiManagementServiceIdentity; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Resource location. */ + location: string; + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** A list of availability zones denoting where the resource needs to come from. */ + zones?: string[]; + /** Email address from which the notification will be sent. */ + notificationSenderEmail?: string; + /** + * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gatewayUrl?: string; + /** + * Gateway URL of the API Management service in the Default Region. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gatewayRegionalUrl?: string; + /** + * Publisher portal endpoint Url of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly portalUrl?: string; + /** + * Management API endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementApiUrl?: string; + /** + * SCM endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scmUrl?: string; /** @@ -3554,6 +3752,8 @@ export interface ApiManagementServiceResource extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3586,6 +3786,10 @@ export interface ApiManagementServiceResource extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail: string; /** Publisher name. */ @@ -3668,6 +3872,8 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3700,147 +3906,369 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail?: string; /** Publisher name. */ publisherName?: string; } -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; - /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - registrationDate?: Date; +/** API Entity Properties */ +export interface ApiContractProperties extends ApiEntityBaseContract { + /** API identifier of the source API. */ + sourceApiId?: string; + /** API name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; + /** Version set details */ + apiVersionSet?: ApiVersionSetContractDetails; /** - * Collection of groups user is part of. + * The provisioning state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groups?: GroupContractProperties[]; -} - -/** Parameters supplied to the Create User operation. */ -export interface UserCreateParameterProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email: string; - /** First name. */ - firstName: string; - /** Last name. */ - lastName: string; - /** User Password. If no value is provided, a default password is generated. */ - password?: string; - /** Determines the type of application which send the create user request. Default is legacy portal. */ - appType?: AppType; - /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ - confirmation?: Confirmation; + readonly provisioningState?: string; } -/** Parameters supplied to the Update User operation. */ -export interface UserUpdateParametersProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email?: string; - /** User Password. */ - password?: string; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; +/** API update contract properties. */ +export interface ApiContractUpdateProperties extends ApiEntityBaseContract { + /** API name. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; +/** API contract properties for the Tag Resources. */ +export interface ApiTagResourceContractProperties + extends ApiEntityBaseContract { + /** API identifier in the form /apis/{apiId}. */ + id?: string; + /** API name. */ + name?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderCreateContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret: string; +/** Operation Contract Properties */ +export interface OperationContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate: string; } -/** Parameters supplied to the Update Identity Provider operation. */ -export interface IdentityProviderUpdateProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ - clientSecret?: string; +/** Operation Update Contract Properties. */ +export interface OperationUpdateContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName?: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method?: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate?: string; } -/** NamedValue Contract properties. */ -export interface NamedValueContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ +/** Product profile. */ +export interface ProductContractProperties extends ProductEntityBaseParameters { + /** Product name. */ displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractProperties; } -/** NamedValue Contract properties. */ -export interface NamedValueCreateContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; +/** Product profile. */ +export interface ProductTagResourceContractProperties + extends ProductEntityBaseParameters { + /** Identifier of the product in the form of /products/{productId} */ + id?: string; + /** Product name. */ + name: string; } -/** NamedValue Contract properties. */ -export interface NamedValueUpdateParameterProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ +/** Parameters supplied to the Update Product operation. */ +export interface ProductUpdateProperties extends ProductEntityBaseParameters { + /** Product name. */ displayName?: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; } -/** API Create or Update Properties. */ -export interface ApiCreateOrUpdateProperties extends ApiContractProperties { - /** Content value when Importing an API. */ - value?: string; - /** Format of the Content in which the API is getting imported. */ - format?: ContentFormat; - /** Criteria to limit import of WSDL to a subset of the document. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; - /** - * Type of API to create. - * * `http` creates a REST API - * * `soap` creates a SOAP pass-through API - * * `websocket` creates websocket API - * * `graphql` creates GraphQL API. - */ - soapApiType?: SoapApiType; - /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ - translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +/** Issue contract Properties. */ +export interface IssueContractProperties extends IssueContractBaseProperties { + /** The issue title. */ + title: string; + /** Text describing the issue. */ + description: string; + /** A resource identifier for the user created the issue. */ + userId: string; } -/** API details. */ -export interface ApiContract extends ProxyResource { - /** Description of the API. May include HTML formatting tags. */ +/** Issue contract Update Properties. */ +export interface IssueUpdateContractProperties + extends IssueContractBaseProperties { + /** The issue title. */ + title?: string; + /** Text describing the issue. */ description?: string; - /** Collection of authentication settings included into this API. */ + /** A resource identifier for the user created the issue. */ + userId?: string; +} + +/** TagDescription contract Properties. */ +export interface TagDescriptionContractProperties + extends TagDescriptionBaseProperties { + /** Identifier of the tag in the form of /tags/{tagId} */ + tagId?: string; + /** Tag name. */ + displayName?: string; +} + +/** Properties of an API Version Set. */ +export interface ApiVersionSetContractProperties + extends ApiVersionSetEntityBase { + /** Name of API Version Set */ + displayName: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme: VersioningScheme; +} + +/** Properties used to create or update an API Version Set. */ +export interface ApiVersionSetUpdateParametersProperties + extends ApiVersionSetEntityBase { + /** Name of API Version Set */ + displayName?: string; + /** An value that determines where the API Version identifier will be located in a HTTP request. */ + versioningScheme?: VersioningScheme; +} + +/** External OAuth authorization server settings Properties. */ +export interface AuthorizationServerContractProperties + extends AuthorizationServerContractBaseProperties { + /** User-friendly authorization server name. */ + displayName: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerUpdateContractProperties + extends AuthorizationServerContractBaseProperties { + /** User-friendly authorization server name. */ + displayName?: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint?: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint?: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes?: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId?: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** Parameters supplied to the Create Backend operation. */ +export interface BackendContractProperties extends BackendBaseParameters { + /** Runtime Url of the Backend. */ + url: string; + /** Backend communication protocol. */ + protocol: BackendProtocol; +} + +/** Parameters supplied to the Update Backend operation. */ +export interface BackendUpdateParameterProperties + extends BackendBaseParameters { + /** Runtime Url of the Backend. */ + url?: string; + /** Backend communication protocol. */ + protocol?: BackendProtocol; +} + +export interface BackendBaseParametersPool extends BackendPool {} + +/** KeyVault contract details. */ +export interface KeyVaultContractProperties + extends KeyVaultContractCreateProperties { + /** Last time sync and refresh status of secret from key vault. */ + lastStatus?: KeyVaultLastAccessStatusContractProperties; +} + +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; +} + +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceUpdateProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail?: string; + /** Publisher name. */ + publisherName?: string; +} + +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; + /** Email address. */ + email?: string; + /** + * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + registrationDate?: Date; + /** + * Collection of groups user is part of. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groups?: GroupContractProperties[]; +} + +/** Parameters supplied to the Create User operation. */ +export interface UserCreateParameterProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email: string; + /** First name. */ + firstName: string; + /** Last name. */ + lastName: string; + /** User Password. If no value is provided, a default password is generated. */ + password?: string; + /** Determines the type of application which send the create user request. Default is legacy portal. */ + appType?: AppType; + /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ + confirmation?: Confirmation; +} + +/** Parameters supplied to the Update User operation. */ +export interface UserUpdateParametersProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email?: string; + /** User Password. */ + password?: string; + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderCreateContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret: string; +} + +/** Parameters supplied to the Update Identity Provider operation. */ +export interface IdentityProviderUpdateProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ + clientSecret?: string; +} + +/** NamedValue Contract properties. */ +export interface NamedValueContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractProperties; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + +/** NamedValue Contract properties. */ +export interface NamedValueCreateContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** NamedValue Contract properties. */ +export interface NamedValueUpdateParameterProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** AllPolicies Contract details. */ +export interface AllPoliciesContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; +} + +/** API details. */ +export interface ApiContract extends ProxyResource { + /** Description of the API. May include HTML formatting tags. */ + description?: string; + /** Collection of authentication settings included into this API. */ authenticationSettings?: AuthenticationSettingsContract; /** Protocols over which API is made available. */ subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; @@ -3883,6 +4311,11 @@ export interface ApiContract extends ProxyResource { protocols?: Protocol[]; /** Version set details */ apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** ApiRelease details. */ @@ -3967,8 +4400,13 @@ export interface ProductContract extends ProxyResource { /** API Schema Contract details. */ export interface SchemaContract extends ProxyResource { - /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. */ + /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`
- `OData Schema` use `application/vnd.ms-azure-apim.odata.schema`
- `gRPC Schema` use `text/protobuf`. */ contentType?: string; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ value?: string; /** Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise. */ @@ -4071,17 +4509,51 @@ export interface ApiVersionSetContract extends ProxyResource { versioningScheme?: VersioningScheme; } -/** External OAuth authorization server settings. */ -export interface AuthorizationServerContract extends ProxyResource { - /** Description of the authorization server. Can contain HTML formatting tags. */ - description?: string; - /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ - authorizationMethods?: AuthorizationMethod[]; - /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ - tokenBodyParameters?: TokenBodyParameterContract[]; - /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ +/** Authorization Provider contract. */ +export interface AuthorizationProviderContract extends ProxyResource { + /** Authorization Provider name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Identity provider name. Must be 1 to 300 characters long. */ + identityProvider?: string; + /** OAuth2 settings */ + oauth2?: AuthorizationProviderOAuth2Settings; +} + +/** Authorization contract. */ +export interface AuthorizationContract extends ProxyResource { + /** Authorization type options */ + authorizationType?: AuthorizationType; + /** OAuth2 grant type options */ + oAuth2GrantType?: OAuth2GrantType; + /** Authorization parameters */ + parameters?: { [propertyName: string]: string }; + /** Authorization error details. */ + error?: AuthorizationError; + /** Status of the Authorization */ + status?: string; +} + +/** Authorization access policy contract. */ +export interface AuthorizationAccessPolicyContract extends ProxyResource { + /** The allowed Azure Active Directory Application IDs */ + appIds?: string[]; + /** The Tenant Id */ + tenantId?: string; + /** The Object Id */ + objectId?: string; +} + +/** External OAuth authorization server settings. */ +export interface AuthorizationServerContract extends ProxyResource { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ tokenEndpoint?: string; /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ supportState?: boolean; @@ -4151,38 +4623,6 @@ export interface AuthorizationServerUpdateContract extends ProxyResource { clientSecret?: string; } -/** Authorization Provider contract. */ -export interface AuthorizationProviderContract extends ProxyResource { - /** Authorization Provider name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Identity provider name. Must be 1 to 300 characters long. */ - identityProvider?: string; - /** OAuth2 settings */ - oauth2?: AuthorizationProviderOAuth2Settings; -} - -/** Authorization contract. */ -export interface AuthorizationContract extends ProxyResource { - /** Authorization type options */ - authorizationType?: AuthorizationType; - /** OAuth2 grant type options */ - oAuth2GrantType?: OAuth2GrantType; - /** Authorization parameters */ - parameters?: { [propertyName: string]: string }; - /** Authorization error details. */ - error?: AuthorizationError; - /** Status of the Authorization */ - status?: string; -} - -/** Authorization access policy contract. */ -export interface AuthorizationAccessPolicyContract extends ProxyResource { - /** The Tenant Id */ - tenantId?: string; - /** The Object Id */ - objectId?: string; -} - /** Backend details. */ export interface BackendContract extends ProxyResource { /** Backend Title. */ @@ -4199,6 +4639,11 @@ export interface BackendContract extends ProxyResource { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + typePropertiesType?: BackendType; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -4273,6 +4718,14 @@ export interface DeletedServiceContract extends ProxyResource { deletionDate?: Date; } +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Email Template details. */ export interface EmailTemplateContract extends ProxyResource { /** Subject of the Template. */ @@ -4452,6 +4905,11 @@ export interface NamedValueContract extends ProxyResource { value?: string; /** KeyVault location details of the namedValue. */ keyVault?: KeyVaultContractProperties; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** NamedValue details. */ @@ -4530,10 +4988,50 @@ export interface PolicyFragmentContract extends ProxyResource { description?: string; /** Format of the policy fragment content. */ format?: PolicyFragmentContentFormat; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } export interface ResourceCollectionValueItem extends ProxyResource {} +/** Policy restriction contract details. */ +export interface PolicyRestrictionContract extends ProxyResource { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; +} + +/** Long Running Git Operation Results. */ +export interface OperationResultContract extends ProxyResource { + /** Operation result identifier. */ + idPropertiesId?: string; + /** Status of an async operation. */ + status?: AsyncOperationStatus; + /** + * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + started?: Date; + /** + * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + updated?: Date; + /** Optional result info. */ + resultInfo?: string; + /** Error Body Contract */ + error?: ErrorResponseBody; + /** + * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionLog?: OperationResultLogItemContract[]; +} + /** The developer portal configuration contract. */ export interface PortalConfigContract extends ProxyResource { /** Enable or disable Basic authentication method. */ @@ -4574,6 +5072,11 @@ export interface PortalRevisionContract extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly updatedDateTime?: Date; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** Portal Settings for the Developer Portal. */ @@ -4664,6 +5167,18 @@ export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; } +/** Product-API link details. */ +export interface ProductApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Product-group link details. */ +export interface ProductGroupLinkContract extends ProxyResource { + /** Full resource Id of a group. */ + groupId?: string; +} + /** Global Schema Contract details. */ export interface GlobalSchemaContract extends ProxyResource { /** Schema Type. Immutable. */ @@ -4674,6 +5189,11 @@ export interface GlobalSchemaContract extends ProxyResource { value?: any; /** Global Schema document object for json-based schema formats(e.g. json schema). */ document?: Record; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } /** Tenant Settings. */ @@ -4682,6 +5202,24 @@ export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string }; } +/** Tag-API link details. */ +export interface TagApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Tag-operation link details. */ +export interface TagOperationLinkContract extends ProxyResource { + /** Full resource Id of an API operation. */ + operationId?: string; +} + +/** Tag-product link details. */ +export interface TagProductLinkContract extends ProxyResource { + /** Full resource Id of a product. */ + productId?: string; +} + /** Tenant Settings. */ export interface AccessInformationContract extends ProxyResource { /** Access Information type ('access' or 'gitAccess') */ @@ -4692,33 +5230,6 @@ export interface AccessInformationContract extends ProxyResource { enabled?: boolean; } -/** Long Running Git Operation Results. */ -export interface OperationResultContract extends ProxyResource { - /** Operation result identifier. */ - idPropertiesId?: string; - /** Status of an async operation. */ - status?: AsyncOperationStatus; - /** - * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - started?: Date; - /** - * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - updated?: Date; - /** Optional result info. */ - resultInfo?: string; - /** Error Body Contract */ - error?: ErrorResponseBody; - /** - * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionLog?: OperationResultLogItemContract[]; -} - /** Result of Tenant Configuration Sync State. */ export interface TenantConfigurationSyncStateContract extends ProxyResource { /** The name of Git branch. */ @@ -4745,12 +5256,20 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { lastOperationId?: string; } -/** Markdown documentation details. */ -export interface DocumentationContract extends ProxyResource { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Workspace details. */ +export interface WorkspaceContract extends ProxyResource { + /** Name of the workspace. */ + displayName?: string; + /** Description of the workspace. */ + description?: string; +} + +/** Policy Contract details. */ +export interface PolicyWithComplianceContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; } /** Long Running Git Resolver Results. */ @@ -4780,6 +5299,39 @@ export interface ResolverResultContract extends ProxyResource { readonly actionLog?: ResolverResultLogItemContract[]; } +/** API Create or Update Properties. */ +export interface ApiCreateOrUpdateProperties extends ApiContractProperties { + /** Content value when Importing an API. */ + value?: string; + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ + format?: ContentFormat; + /** Criteria to limit import of WSDL to a subset of the document. */ + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + /** + * Type of API to create. + * * `http` creates a REST API + * * `soap` creates a SOAP pass-through API + * * `websocket` creates websocket API + * * `graphql` creates GraphQL API. + * New types can be added in the future. + */ + soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +} + +/** Defines headers for ApiManagementGateway_update operation. */ +export interface ApiManagementGatewayUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for ApiManagementGateway_delete operation. */ +export interface ApiManagementGatewayDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for Api_getEntityTag operation. */ export interface ApiGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -4796,6 +5348,10 @@ export interface ApiGetHeaders { export interface ApiCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for Api_update operation. */ @@ -4804,6 +5360,14 @@ export interface ApiUpdateHeaders { eTag?: string; } +/** Defines headers for Api_delete operation. */ +export interface ApiDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + /** Defines headers for ApiRelease_getEntityTag operation. */ export interface ApiReleaseGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5012,6 +5576,10 @@ export interface ApiSchemaGetHeaders { export interface ApiSchemaCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for ApiDiagnostic_getEntityTag operation. */ @@ -5164,36 +5732,6 @@ export interface ApiVersionSetUpdateHeaders { eTag?: string; } -/** Defines headers for AuthorizationServer_getEntityTag operation. */ -export interface AuthorizationServerGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_get operation. */ -export interface AuthorizationServerGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_createOrUpdate operation. */ -export interface AuthorizationServerCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_update operation. */ -export interface AuthorizationServerUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for AuthorizationServer_listSecrets operation. */ -export interface AuthorizationServerListSecretsHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - /** Defines headers for AuthorizationProvider_get operation. */ export interface AuthorizationProviderGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5242,26 +5780,56 @@ export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { eTag?: string; } -/** Defines headers for Backend_getEntityTag operation. */ -export interface BackendGetEntityTagHeaders { +/** Defines headers for AuthorizationServer_getEntityTag operation. */ +export interface AuthorizationServerGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_get operation. */ -export interface BackendGetHeaders { +/** Defines headers for AuthorizationServer_get operation. */ +export interface AuthorizationServerGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_createOrUpdate operation. */ -export interface BackendCreateOrUpdateHeaders { +/** Defines headers for AuthorizationServer_createOrUpdate operation. */ +export interface AuthorizationServerCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Backend_update operation. */ -export interface BackendUpdateHeaders { +/** Defines headers for AuthorizationServer_update operation. */ +export interface AuthorizationServerUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationServer_listSecrets operation. */ +export interface AuthorizationServerListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_getEntityTag operation. */ +export interface BackendGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_get operation. */ +export interface BackendGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_createOrUpdate operation. */ +export interface BackendCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Backend_update operation. */ +export interface BackendUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } @@ -5314,6 +5882,11 @@ export interface CertificateRefreshSecretHeaders { eTag?: string; } +/** Defines headers for ApiManagementClient_performConnectivityCheckAsync operation. */ +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + location?: string; +} + /** Defines headers for ContentType_get operation. */ export interface ContentTypeGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5359,6 +5932,18 @@ export interface ApiManagementServiceBackupHeaders { location?: string; } +/** Defines headers for ApiManagementService_update operation. */ +export interface ApiManagementServiceUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for ApiManagementService_delete operation. */ +export interface ApiManagementServiceDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for ApiManagementService_migrateToStv2 operation. */ export interface ApiManagementServiceMigrateToStv2Headers { location?: string; @@ -5393,6 +5978,30 @@ export interface DiagnosticUpdateHeaders { eTag?: string; } +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for EmailTemplate_getEntityTag operation. */ export interface EmailTemplateGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5583,6 +6192,10 @@ export interface NamedValueGetHeaders { export interface NamedValueCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for NamedValue_update operation. */ @@ -5667,6 +6280,40 @@ export interface PolicyFragmentGetHeaders { export interface PolicyFragmentCreateOrUpdateHeaders { /** Current entity state version */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for PolicyRestriction_getEntityTag operation. */ +export interface PolicyRestrictionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_get operation. */ +export interface PolicyRestrictionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_createOrUpdate operation. */ +export interface PolicyRestrictionCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PolicyRestriction_update operation. */ +export interface PolicyRestrictionUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PolicyRestrictionValidations_byService operation. */ +export interface PolicyRestrictionValidationsByServiceHeaders { + /** location of the header. */ + location?: string; } /** Defines headers for PortalConfig_getEntityTag operation. */ @@ -5697,6 +6344,10 @@ export interface PortalRevisionGetHeaders { export interface PortalRevisionCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for PortalRevision_update operation. */ @@ -5741,6 +6392,18 @@ export interface DelegationSettingsGetHeaders { eTag?: string; } +/** Defines headers for PrivateEndpointConnection_createOrUpdate operation. */ +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for PrivateEndpointConnection_delete operation. */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for Product_getEntityTag operation. */ export interface ProductGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5819,6 +6482,18 @@ export interface ProductWikisListNextHeaders { eTag?: string; } +/** Defines headers for ProductApiLink_get operation. */ +export interface ProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductGroupLink_get operation. */ +export interface ProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for GlobalSchema_getEntityTag operation. */ export interface GlobalSchemaGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5835,6 +6510,10 @@ export interface GlobalSchemaGetHeaders { export interface GlobalSchemaCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } /** Defines headers for TenantSettings_get operation. */ @@ -5873,6 +6552,24 @@ export interface SubscriptionListSecretsHeaders { eTag?: string; } +/** Defines headers for TagApiLink_get operation. */ +export interface TagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagOperationLink_get operation. */ +export interface TagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagProductLink_get operation. */ +export interface TagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for TenantAccess_getEntityTag operation. */ export interface TenantAccessGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5903,6 +6600,21 @@ export interface TenantAccessListSecretsHeaders { eTag?: string; } +/** Defines headers for TenantConfiguration_deploy operation. */ +export interface TenantConfigurationDeployHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_save operation. */ +export interface TenantConfigurationSaveHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_validate operation. */ +export interface TenantConfigurationValidateHeaders { + location?: string; +} + /** Defines headers for User_getEntityTag operation. */ export interface UserGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5927,1584 +6639,4011 @@ export interface UserUpdateHeaders { eTag?: string; } +/** Defines headers for User_delete operation. */ +export interface UserDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + /** Defines headers for UserSubscription_get operation. */ export interface UserSubscriptionGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_getEntityTag operation. */ -export interface DocumentationGetEntityTagHeaders { +/** Defines headers for Workspace_getEntityTag operation. */ +export interface WorkspaceGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_get operation. */ -export interface DocumentationGetHeaders { +/** Defines headers for Workspace_get operation. */ +export interface WorkspaceGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_createOrUpdate operation. */ -export interface DocumentationCreateOrUpdateHeaders { +/** Defines headers for Workspace_createOrUpdate operation. */ +export interface WorkspaceCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_update operation. */ -export interface DocumentationUpdateHeaders { +/** Defines headers for Workspace_update operation. */ +export interface WorkspaceUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Known values of {@link Protocol} that the service accepts. */ -export enum KnownProtocol { - /** Http */ - Http = "http", - /** Https */ - Https = "https", - /** Ws */ - Ws = "ws", - /** Wss */ - Wss = "wss" +/** Defines headers for WorkspacePolicy_getEntityTag operation. */ +export interface WorkspacePolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Protocol. \ - * {@link KnownProtocol} can be used interchangeably with Protocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **https** \ - * **ws** \ - * **wss** - */ -export type Protocol = string; +/** Defines headers for WorkspacePolicy_get operation. */ +export interface WorkspacePolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ -export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** The API Version is passed in a path segment. */ - Segment = "Segment", - /** The API Version is passed in a query parameter. */ - Query = "Query", - /** The API Version is passed in a HTTP header. */ - Header = "Header" +/** Defines headers for WorkspacePolicy_createOrUpdate operation. */ +export interface WorkspacePolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ - * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Segment**: The API Version is passed in a path segment. \ - * **Query**: The API Version is passed in a query parameter. \ - * **Header**: The API Version is passed in a HTTP header. - */ -export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Defines headers for WorkspaceNamedValue_getEntityTag operation. */ +export interface WorkspaceNamedValueGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ -export enum KnownBearerTokenSendingMethods { - /** Access token will be transmitted in the Authorization header using Bearer schema */ - AuthorizationHeader = "authorizationHeader", - /** Access token will be transmitted as query parameters. */ - Query = "query" +/** Defines headers for WorkspaceNamedValue_get operation. */ +export interface WorkspaceNamedValueGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for BearerTokenSendingMethods. \ - * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ - * **query**: Access token will be transmitted as query parameters. - */ -export type BearerTokenSendingMethods = string; +/** Defines headers for WorkspaceNamedValue_createOrUpdate operation. */ +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** Known values of {@link ApiType} that the service accepts. */ -export enum KnownApiType { - /** Http */ - Http = "http", - /** Soap */ - Soap = "soap", - /** Websocket */ - Websocket = "websocket", - /** Graphql */ - Graphql = "graphql" +/** Defines headers for WorkspaceNamedValue_update operation. */ +export interface WorkspaceNamedValueUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiType. \ - * {@link KnownApiType} can be used interchangeably with ApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **soap** \ - * **websocket** \ - * **graphql** - */ -export type ApiType = string; +/** Defines headers for WorkspaceNamedValue_listValue operation. */ +export interface WorkspaceNamedValueListValueHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ContentFormat} that the service accepts. */ -export enum KnownContentFormat { - /** The contents are inline and Content type is a WADL document. */ - WadlXml = "wadl-xml", - /** The WADL document is hosted on a publicly accessible internet address. */ - WadlLinkJson = "wadl-link-json", - /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ - SwaggerJson = "swagger-json", - /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ - SwaggerLinkJson = "swagger-link-json", - /** The contents are inline and the document is a WSDL\/Soap document. */ - Wsdl = "wsdl", - /** The WSDL document is hosted on a publicly accessible internet address. */ - WsdlLink = "wsdl-link", - /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ - Openapi = "openapi", - /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ - OpenapiJson = "openapi+json", - /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ - OpenapiLink = "openapi-link", - /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ - OpenapiJsonLink = "openapi+json-link", - /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ - GraphqlLink = "graphql-link" +/** Defines headers for WorkspaceNamedValue_refreshSecret operation. */ +export interface WorkspaceNamedValueRefreshSecretHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ContentFormat. \ - * {@link KnownContentFormat} can be used interchangeably with ContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **wadl-xml**: The contents are inline and Content type is a WADL document. \ - * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ - * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ - * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ - * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ - * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ - * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ - * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ - * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ - * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ - * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. - */ -export type ContentFormat = string; +/** Defines headers for WorkspaceGlobalSchema_getEntityTag operation. */ +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SoapApiType} that the service accepts. */ -export enum KnownSoapApiType { - /** Imports a SOAP API having a RESTful front end. */ - SoapToRest = "http", - /** Imports the SOAP API having a SOAP front end. */ - SoapPassThrough = "soap", - /** Imports the API having a Websocket front end. */ - WebSocket = "websocket", - /** Imports the API having a GraphQL front end. */ - GraphQL = "graphql" +/** Defines headers for WorkspaceGlobalSchema_get operation. */ +export interface WorkspaceGlobalSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SoapApiType. \ - * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http**: Imports a SOAP API having a RESTful front end. \ - * **soap**: Imports the SOAP API having a SOAP front end. \ - * **websocket**: Imports the API having a Websocket front end. \ - * **graphql**: Imports the API having a GraphQL front end. - */ -export type SoapApiType = string; +/** Defines headers for WorkspaceGlobalSchema_createOrUpdate operation. */ +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ -export enum KnownTranslateRequiredQueryParametersConduct { - /** Translates required query parameters to template ones. Is a default value */ - Template = "template", - /** Leaves required query parameters as they are (no translation done). */ - Query = "query" +/** Defines headers for WorkspacePolicyFragment_getEntityTag operation. */ +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for TranslateRequiredQueryParametersConduct. \ - * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **template**: Translates required query parameters to template ones. Is a default value \ - * **query**: Leaves required query parameters as they are (no translation done). - */ -export type TranslateRequiredQueryParametersConduct = string; +/** Defines headers for WorkspacePolicyFragment_get operation. */ +export interface WorkspacePolicyFragmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyContentFormat} that the service accepts. */ -export enum KnownPolicyContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ - XmlLink = "xml-link", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml", - /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ - RawxmlLink = "rawxml-link" +/** Defines headers for WorkspacePolicyFragment_createOrUpdate operation. */ +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines values for PolicyContentFormat. \ - * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ - * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. - */ -export type PolicyContentFormat = string; +/** Defines headers for WorkspaceGroup_getEntityTag operation. */ +export interface WorkspaceGroupGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyIdName} that the service accepts. */ -export enum KnownPolicyIdName { - /** Policy */ - Policy = "policy" +/** Defines headers for WorkspaceGroup_get operation. */ +export interface WorkspaceGroupGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyIdName. \ - * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **policy** - */ -export type PolicyIdName = string; +/** Defines headers for WorkspaceGroup_createOrUpdate operation. */ +export interface WorkspaceGroupCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyExportFormat} that the service accepts. */ -export enum KnownPolicyExportFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Defines headers for WorkspaceGroup_update operation. */ +export interface WorkspaceGroupUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyExportFormat. \ - * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. - */ -export type PolicyExportFormat = string; +/** Defines headers for WorkspaceSubscription_getEntityTag operation. */ +export interface WorkspaceSubscriptionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link AlwaysLog} that the service accepts. */ -export enum KnownAlwaysLog { - /** Always log all erroneous request regardless of sampling settings. */ - AllErrors = "allErrors" +/** Defines headers for WorkspaceSubscription_get operation. */ +export interface WorkspaceSubscriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for AlwaysLog. \ - * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **allErrors**: Always log all erroneous request regardless of sampling settings. - */ -export type AlwaysLog = string; +/** Defines headers for WorkspaceSubscription_createOrUpdate operation. */ +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SamplingType} that the service accepts. */ -export enum KnownSamplingType { - /** Fixed-rate sampling. */ - Fixed = "fixed" +/** Defines headers for WorkspaceSubscription_update operation. */ +export interface WorkspaceSubscriptionUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SamplingType. \ - * {@link KnownSamplingType} can be used interchangeably with SamplingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **fixed**: Fixed-rate sampling. - */ -export type SamplingType = string; +/** Defines headers for WorkspaceSubscription_listSecrets operation. */ +export interface WorkspaceSubscriptionListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link DataMaskingMode} that the service accepts. */ -export enum KnownDataMaskingMode { - /** Mask the value of an entity. */ - Mask = "Mask", - /** Hide the presence of an entity. */ - Hide = "Hide" +/** Defines headers for WorkspaceApiVersionSet_getEntityTag operation. */ +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for DataMaskingMode. \ - * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Mask**: Mask the value of an entity. \ - * **Hide**: Hide the presence of an entity. - */ -export type DataMaskingMode = string; +/** Defines headers for WorkspaceApiVersionSet_get operation. */ +export interface WorkspaceApiVersionSetGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ -export enum KnownHttpCorrelationProtocol { - /** Do not read and inject correlation headers. */ - None = "None", - /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ - Legacy = "Legacy", - /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ - W3C = "W3C" +/** Defines headers for WorkspaceApiVersionSet_createOrUpdate operation. */ +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for HttpCorrelationProtocol. \ - * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Do not read and inject correlation headers. \ - * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ - * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. - */ -export type HttpCorrelationProtocol = string; +/** Defines headers for WorkspaceApiVersionSet_update operation. */ +export interface WorkspaceApiVersionSetUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link Verbosity} that the service accepts. */ -export enum KnownVerbosity { - /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ - Verbose = "verbose", - /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ - Information = "information", - /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ - Error = "error" +/** Defines headers for WorkspaceApi_getEntityTag operation. */ +export interface WorkspaceApiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Verbosity. \ - * {@link KnownVerbosity} can be used interchangeably with Verbosity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ - * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ - * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. - */ -export type Verbosity = string; +/** Defines headers for WorkspaceApi_get operation. */ +export interface WorkspaceApiGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link OperationNameFormat} that the service accepts. */ -export enum KnownOperationNameFormat { - /** API_NAME;rev=API_REVISION - OPERATION_NAME */ - Name = "Name", - /** HTTP_VERB URL */ - Url = "Url" +/** Defines headers for WorkspaceApi_createOrUpdate operation. */ +export interface WorkspaceApiCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines values for OperationNameFormat. \ - * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ - * **Url**: HTTP_VERB URL - */ -export type OperationNameFormat = string; +/** Defines headers for WorkspaceApi_update operation. */ +export interface WorkspaceApiUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link State} that the service accepts. */ -export enum KnownState { - /** The issue is proposed. */ - Proposed = "proposed", - /** The issue is opened. */ - Open = "open", - /** The issue was removed. */ - Removed = "removed", - /** The issue is now resolved. */ - Resolved = "resolved", - /** The issue was closed. */ - Closed = "closed" +/** Defines headers for WorkspaceApiRelease_getEntityTag operation. */ +export interface WorkspaceApiReleaseGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **proposed**: The issue is proposed. \ - * **open**: The issue is opened. \ - * **removed**: The issue was removed. \ - * **resolved**: The issue is now resolved. \ - * **closed**: The issue was closed. - */ -export type State = string; +/** Defines headers for WorkspaceApiRelease_get operation. */ +export interface WorkspaceApiReleaseGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportFormat} that the service accepts. */ -export enum KnownExportFormat { - /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ - Swagger = "swagger-link", - /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link", - /** Export the Api Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ - Openapi = "openapi-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ - OpenapiJson = "openapi+json-link" +/** Defines headers for WorkspaceApiRelease_createOrUpdate operation. */ +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiRelease_update operation. */ +export interface WorkspaceApiReleaseUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_getEntityTag operation. */ +export interface WorkspaceApiOperationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_get operation. */ +export interface WorkspaceApiOperationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_createOrUpdate operation. */ +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_update operation. */ +export interface WorkspaceApiOperationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_getEntityTag operation. */ +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_get operation. */ +export interface WorkspaceApiOperationPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_createOrUpdate operation. */ +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_getEntityTag operation. */ +export interface WorkspaceApiPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_get operation. */ +export interface WorkspaceApiPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_createOrUpdate operation. */ +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_getEntityTag operation. */ +export interface WorkspaceApiSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_get operation. */ +export interface WorkspaceApiSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_createOrUpdate operation. */ +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for WorkspaceProduct_getEntityTag operation. */ +export interface WorkspaceProductGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_get operation. */ +export interface WorkspaceProductGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_createOrUpdate operation. */ +export interface WorkspaceProductCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_update operation. */ +export interface WorkspaceProductUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductApiLink_get operation. */ +export interface WorkspaceProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductGroupLink_get operation. */ +export interface WorkspaceProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_getEntityTag operation. */ +export interface WorkspaceProductPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_get operation. */ +export interface WorkspaceProductPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_createOrUpdate operation. */ +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_getEntityState operation. */ +export interface WorkspaceTagGetEntityStateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_get operation. */ +export interface WorkspaceTagGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_createOrUpdate operation. */ +export interface WorkspaceTagCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_update operation. */ +export interface WorkspaceTagUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagApiLink_get operation. */ +export interface WorkspaceTagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagOperationLink_get operation. */ +export interface WorkspaceTagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagProductLink_get operation. */ +export interface WorkspaceTagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Known values of {@link PolicyComplianceState} that the service accepts. */ +export enum KnownPolicyComplianceState { + /** The policy restriction compliance state has not yet been determined. */ + Pending = "Pending", + /** The scope in restriction is out of compliance. */ + NonCompliant = "NonCompliant", + /** The scope in restriction is in compliance. */ + Compliant = "Compliant", } /** - * Defines values for ExportFormat. \ - * {@link KnownExportFormat} can be used interchangeably with ExportFormat, + * Defines values for PolicyComplianceState. \ + * {@link KnownPolicyComplianceState} can be used interchangeably with PolicyComplianceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ - * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ - * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. + * **Pending**: The policy restriction compliance state has not yet been determined. \ + * **NonCompliant**: The scope in restriction is out of compliance. \ + * **Compliant**: The scope in restriction is in compliance. */ -export type ExportFormat = string; +export type PolicyComplianceState = string; -/** Known values of {@link ExportApi} that the service accepts. */ -export enum KnownExportApi { - /** True */ - True = "true" +/** Known values of {@link SkuType} that the service accepts. */ +export enum KnownSkuType { + /** Standard SKU of the API gateway. */ + Standard = "Standard", } /** - * Defines values for ExportApi. \ - * {@link KnownExportApi} can be used interchangeably with ExportApi, + * Defines values for SkuType. \ + * {@link KnownSkuType} can be used interchangeably with SkuType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **true** + * **Standard**: Standard SKU of the API gateway. */ -export type ExportApi = string; +export type SkuType = string; -/** Known values of {@link ExportResultFormat} that the service accepts. */ -export enum KnownExportResultFormat { - /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ - Swagger = "swagger-link-json", - /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link+xml", - /** Export the API Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link-json", - /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ - OpenApi = "openapi-link" +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } /** - * Defines values for ExportResultFormat. \ - * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ - * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type ExportResultFormat = string; +export type CreatedByType = string; -/** Known values of {@link VersioningScheme} that the service accepts. */ -export enum KnownVersioningScheme { +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** Http */ + Http = "http", + /** Https */ + Https = "https", + /** Ws */ + Ws = "ws", + /** Wss */ + Wss = "wss", +} + +/** + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **http** \ + * **https** \ + * **ws** \ + * **wss** + */ +export type Protocol = string; + +/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ +export enum KnownApiVersionSetContractDetailsVersioningScheme { /** The API Version is passed in a path segment. */ Segment = "Segment", /** The API Version is passed in a query parameter. */ Query = "Query", /** The API Version is passed in a HTTP header. */ - Header = "Header" + Header = "Header", } /** - * Defines values for VersioningScheme. \ - * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, + * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ + * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Segment**: The API Version is passed in a path segment. \ * **Query**: The API Version is passed in a query parameter. \ * **Header**: The API Version is passed in a HTTP header. */ -export type VersioningScheme = string; +export type ApiVersionSetContractDetailsVersioningScheme = string; -/** Known values of {@link GrantType} that the service accepts. */ -export enum KnownGrantType { - /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ - AuthorizationCode = "authorizationCode", - /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ - Implicit = "implicit", - /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ - ResourceOwnerPassword = "resourceOwnerPassword", - /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ - ClientCredentials = "clientCredentials" +/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ +export enum KnownBearerTokenSendingMethods { + /** Access token will be transmitted in the Authorization header using Bearer schema */ + AuthorizationHeader = "authorizationHeader", + /** Access token will be transmitted as query parameters. */ + Query = "query", } /** - * Defines values for GrantType. \ - * {@link KnownGrantType} can be used interchangeably with GrantType, + * Defines values for BearerTokenSendingMethods. \ + * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ - * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ - * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ - * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. + * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ + * **query**: Access token will be transmitted as query parameters. */ -export type GrantType = string; +export type BearerTokenSendingMethods = string; -/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ -export enum KnownClientAuthenticationMethod { - /** Basic Client Authentication method. */ - Basic = "Basic", - /** Body based Authentication method. */ - Body = "Body" +/** Known values of {@link ApiType} that the service accepts. */ +export enum KnownApiType { + /** Http */ + Http = "http", + /** Soap */ + Soap = "soap", + /** Websocket */ + Websocket = "websocket", + /** Graphql */ + Graphql = "graphql", + /** Odata */ + Odata = "odata", + /** Grpc */ + Grpc = "grpc", } /** - * Defines values for ClientAuthenticationMethod. \ - * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, + * Defines values for ApiType. \ + * {@link KnownApiType} can be used interchangeably with ApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic Client Authentication method. \ - * **Body**: Body based Authentication method. + * **http** \ + * **soap** \ + * **websocket** \ + * **graphql** \ + * **odata** \ + * **grpc** */ -export type ClientAuthenticationMethod = string; +export type ApiType = string; -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - /** AuthorizationHeader */ - AuthorizationHeader = "authorizationHeader", - /** Query */ - Query = "query" +/** Known values of {@link ContentFormat} that the service accepts. */ +export enum KnownContentFormat { + /** The contents are inline and Content type is a WADL document. */ + WadlXml = "wadl-xml", + /** The WADL document is hosted on a publicly accessible internet address. */ + WadlLinkJson = "wadl-link-json", + /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ + SwaggerJson = "swagger-json", + /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ + SwaggerLinkJson = "swagger-link-json", + /** The contents are inline and the document is a WSDL\/Soap document. */ + Wsdl = "wsdl", + /** The WSDL document is hosted on a publicly accessible internet address. */ + WsdlLink = "wsdl-link", + /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ + Openapi = "openapi", + /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ + OpenapiJson = "openapi+json", + /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ + OpenapiLink = "openapi-link", + /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ + OpenapiJsonLink = "openapi+json-link", + /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ + GraphqlLink = "graphql-link", + /** The contents are inline and Content Type is a OData XML Document. */ + Odata = "odata", + /** The OData metadata document hosted on a publicly accessible internet address. */ + OdataLink = "odata-link", + /** The contents are inline and Content Type is a gRPC protobuf file. */ + Grpc = "grpc", + /** The gRPC protobuf file is hosted on a publicly accessible internet address. */ + GrpcLink = "grpc-link", } /** - * Defines values for BearerTokenSendingMethod. \ - * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, + * Defines values for ContentFormat. \ + * {@link KnownContentFormat} can be used interchangeably with ContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationHeader** \ - * **query** + * **wadl-xml**: The contents are inline and Content type is a WADL document. \ + * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ + * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ + * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ + * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ + * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ + * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ + * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ + * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ + * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ + * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. \ + * **odata**: The contents are inline and Content Type is a OData XML Document. \ + * **odata-link**: The OData metadata document hosted on a publicly accessible internet address. \ + * **grpc**: The contents are inline and Content Type is a gRPC protobuf file. \ + * **grpc-link**: The gRPC protobuf file is hosted on a publicly accessible internet address. */ -export type BearerTokenSendingMethod = string; +export type ContentFormat = string; -/** Known values of {@link AuthorizationType} that the service accepts. */ -export enum KnownAuthorizationType { - /** OAuth2 authorization type */ - OAuth2 = "OAuth2" +/** Known values of {@link SoapApiType} that the service accepts. */ +export enum KnownSoapApiType { + /** Imports a SOAP API having a RESTful front end. */ + SoapToRest = "http", + /** Imports the SOAP API having a SOAP front end. */ + SoapPassThrough = "soap", + /** Imports the API having a Websocket front end. */ + WebSocket = "websocket", + /** Imports the API having a GraphQL front end. */ + GraphQL = "graphql", + /** Imports the API having a OData front end. */ + OData = "odata", + /** Imports the API having a gRPC front end. */ + GRPC = "grpc", } /** - * Defines values for AuthorizationType. \ - * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, + * Defines values for SoapApiType. \ + * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **OAuth2**: OAuth2 authorization type + * **http**: Imports a SOAP API having a RESTful front end. \ + * **soap**: Imports the SOAP API having a SOAP front end. \ + * **websocket**: Imports the API having a Websocket front end. \ + * **graphql**: Imports the API having a GraphQL front end. \ + * **odata**: Imports the API having a OData front end. \ + * **grpc**: Imports the API having a gRPC front end. */ -export type AuthorizationType = string; +export type SoapApiType = string; -/** Known values of {@link OAuth2GrantType} that the service accepts. */ -export enum KnownOAuth2GrantType { - /** Authorization Code grant */ - AuthorizationCode = "AuthorizationCode", - /** Client Credential grant */ - ClientCredentials = "ClientCredentials" +/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ +export enum KnownTranslateRequiredQueryParametersConduct { + /** Translates required query parameters to template ones. Is a default value */ + Template = "template", + /** Leaves required query parameters as they are (no translation done). */ + Query = "query", } /** - * Defines values for OAuth2GrantType. \ - * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, + * Defines values for TranslateRequiredQueryParametersConduct. \ + * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AuthorizationCode**: Authorization Code grant \ - * **ClientCredentials**: Client Credential grant + * **template**: Translates required query parameters to template ones. Is a default value \ + * **query**: Leaves required query parameters as they are (no translation done). */ -export type OAuth2GrantType = string; +export type TranslateRequiredQueryParametersConduct = string; -/** Known values of {@link BackendProtocol} that the service accepts. */ -export enum KnownBackendProtocol { - /** The Backend is a RESTful service. */ - Http = "http", - /** The Backend is a SOAP service. */ - Soap = "soap" +/** Known values of {@link PolicyContentFormat} that the service accepts. */ +export enum KnownPolicyContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ + XmlLink = "xml-link", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", + /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ + RawxmlLink = "rawxml-link", } /** - * Defines values for BackendProtocol. \ - * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, + * Defines values for PolicyContentFormat. \ + * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **http**: The Backend is a RESTful service. \ - * **soap**: The Backend is a SOAP service. + * **xml**: The contents are inline and Content type is an XML document. \ + * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ + * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ -export type BackendProtocol = string; +export type PolicyContentFormat = string; -/** Known values of {@link PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - /** IPv4 */ - IPv4 = "IPv4" +/** Known values of {@link PolicyIdName} that the service accepts. */ +export enum KnownPolicyIdName { + /** Policy */ + Policy = "policy", } /** - * Defines values for PreferredIPVersion. \ - * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, + * Defines values for PolicyIdName. \ + * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** + * **policy** */ -export type PreferredIPVersion = string; +export type PolicyIdName = string; -/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - /** TCP */ - TCP = "TCP", - /** Http */ - Http = "HTTP", - /** Https */ - Https = "HTTPS" +/** Known values of {@link PolicyExportFormat} that the service accepts. */ +export enum KnownPolicyExportFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", } /** - * Defines values for ConnectivityCheckProtocol. \ - * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, + * Defines values for PolicyExportFormat. \ + * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TCP** \ - * **HTTP** \ - * **HTTPS** + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. */ -export type ConnectivityCheckProtocol = string; +export type PolicyExportFormat = string; -/** Known values of {@link Method} that the service accepts. */ -export enum KnownMethod { - /** GET */ - GET = "GET", - /** Post */ - Post = "POST" +/** Known values of {@link AlwaysLog} that the service accepts. */ +export enum KnownAlwaysLog { + /** Always log all erroneous request regardless of sampling settings. */ + AllErrors = "allErrors", } /** - * Defines values for Method. \ - * {@link KnownMethod} can be used interchangeably with Method, + * Defines values for AlwaysLog. \ + * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GET** \ - * **POST** + * **allErrors**: Always log all erroneous request regardless of sampling settings. */ -export type Method = string; +export type AlwaysLog = string; -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** Local */ - Local = "Local", - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound" +/** Known values of {@link SamplingType} that the service accepts. */ +export enum KnownSamplingType { + /** Fixed-rate sampling. */ + Fixed = "fixed", } /** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, + * Defines values for SamplingType. \ + * {@link KnownSamplingType} can be used interchangeably with SamplingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Local** \ - * **Inbound** \ - * **Outbound** + * **fixed**: Fixed-rate sampling. */ -export type Origin = string; +export type SamplingType = string; -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning" +/** Known values of {@link DataMaskingMode} that the service accepts. */ +export enum KnownDataMaskingMode { + /** Mask the value of an entity. */ + Mask = "Mask", + /** Hide the presence of an entity. */ + Hide = "Hide", } /** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, + * Defines values for DataMaskingMode. \ + * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Error** \ - * **Warning** + * **Mask**: Mask the value of an entity. \ + * **Hide**: Hide the presence of an entity. */ -export type Severity = string; - -/** Known values of {@link IssueType} that the service accepts. */ -export enum KnownIssueType { - /** Unknown */ - Unknown = "Unknown", - /** AgentStopped */ - AgentStopped = "AgentStopped", - /** GuestFirewall */ - GuestFirewall = "GuestFirewall", - /** DnsResolution */ - DnsResolution = "DnsResolution", - /** SocketBind */ - SocketBind = "SocketBind", - /** NetworkSecurityRule */ - NetworkSecurityRule = "NetworkSecurityRule", - /** UserDefinedRoute */ - UserDefinedRoute = "UserDefinedRoute", - /** PortThrottled */ - PortThrottled = "PortThrottled", - /** Platform */ - Platform = "Platform" -} +export type DataMaskingMode = string; -/** - * Defines values for IssueType. \ - * {@link KnownIssueType} can be used interchangeably with IssueType, - * this enum contains the known values that the service supports. +/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ +export enum KnownHttpCorrelationProtocol { + /** Do not read and inject correlation headers. */ + None = "None", + /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ + Legacy = "Legacy", + /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ + W3C = "W3C", +} + +/** + * Defines values for HttpCorrelationProtocol. \ + * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, + * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **AgentStopped** \ - * **GuestFirewall** \ - * **DnsResolution** \ - * **SocketBind** \ - * **NetworkSecurityRule** \ - * **UserDefinedRoute** \ - * **PortThrottled** \ - * **Platform** + * **None**: Do not read and inject correlation headers. \ + * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ + * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. */ -export type IssueType = string; +export type HttpCorrelationProtocol = string; -/** Known values of {@link ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - /** Unknown */ - Unknown = "Unknown", - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Degraded */ - Degraded = "Degraded" +/** Known values of {@link Verbosity} that the service accepts. */ +export enum KnownVerbosity { + /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ + Verbose = "verbose", + /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ + Information = "information", + /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ + Error = "error", } /** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, + * Defines values for Verbosity. \ + * {@link KnownVerbosity} can be used interchangeably with Verbosity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Connected** \ - * **Disconnected** \ - * **Degraded** + * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ + * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ + * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ -export type ConnectionStatus = string; +export type Verbosity = string; -/** Known values of {@link SkuType} that the service accepts. */ -export enum KnownSkuType { - /** Developer SKU of Api Management. */ - Developer = "Developer", - /** Standard SKU of Api Management. */ - Standard = "Standard", - /** Premium SKU of Api Management. */ - Premium = "Premium", - /** Basic SKU of Api Management. */ - Basic = "Basic", - /** Consumption SKU of Api Management. */ - Consumption = "Consumption", - /** Isolated SKU of Api Management. */ - Isolated = "Isolated" +/** Known values of {@link OperationNameFormat} that the service accepts. */ +export enum KnownOperationNameFormat { + /** API_NAME;rev=API_REVISION - OPERATION_NAME */ + Name = "Name", + /** HTTP_VERB URL */ + Url = "Url", } /** - * Defines values for SkuType. \ - * {@link KnownSkuType} can be used interchangeably with SkuType, + * Defines values for OperationNameFormat. \ + * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Developer**: Developer SKU of Api Management. \ - * **Standard**: Standard SKU of Api Management. \ - * **Premium**: Premium SKU of Api Management. \ - * **Basic**: Basic SKU of Api Management. \ - * **Consumption**: Consumption SKU of Api Management. \ - * **Isolated**: Isolated SKU of Api Management. + * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ + * **Url**: HTTP_VERB URL */ -export type SkuType = string; +export type OperationNameFormat = string; -/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ -export enum KnownResourceSkuCapacityScaleType { - /** Supported scale type automatic. */ - Automatic = "automatic", - /** Supported scale type manual. */ - Manual = "manual", - /** Scaling not supported. */ - None = "none" +/** Known values of {@link State} that the service accepts. */ +export enum KnownState { + /** The issue is proposed. */ + Proposed = "proposed", + /** The issue is opened. */ + Open = "open", + /** The issue was removed. */ + Removed = "removed", + /** The issue is now resolved. */ + Resolved = "resolved", + /** The issue was closed. */ + Closed = "closed", } /** - * Defines values for ResourceSkuCapacityScaleType. \ - * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **automatic**: Supported scale type automatic. \ - * **manual**: Supported scale type manual. \ - * **none**: Scaling not supported. + * **proposed**: The issue is proposed. \ + * **open**: The issue is opened. \ + * **removed**: The issue was removed. \ + * **resolved**: The issue is now resolved. \ + * **closed**: The issue was closed. */ -export type ResourceSkuCapacityScaleType = string; +export type State = string; -/** Known values of {@link AccessType} that the service accepts. */ -export enum KnownAccessType { - /** Use access key. */ - AccessKey = "AccessKey", - /** Use system assigned managed identity. */ - SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", - /** Use user assigned managed identity. */ - UserAssignedManagedIdentity = "UserAssignedManagedIdentity" +/** Known values of {@link ExportFormat} that the service accepts. */ +export enum KnownExportFormat { + /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ + Swagger = "swagger-link", + /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link", + /** Export the Api Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ + Openapi = "openapi-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ + OpenapiJson = "openapi+json-link", } /** - * Defines values for AccessType. \ - * {@link KnownAccessType} can be used interchangeably with AccessType, + * Defines values for ExportFormat. \ + * {@link KnownExportFormat} can be used interchangeably with ExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AccessKey**: Use access key. \ - * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ - * **UserAssignedManagedIdentity**: Use user assigned managed identity. + * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ + * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ + * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ -export type AccessType = string; +export type ExportFormat = string; -/** Known values of {@link HostnameType} that the service accepts. */ -export enum KnownHostnameType { - /** Proxy */ - Proxy = "Proxy", - /** Portal */ - Portal = "Portal", - /** Management */ - Management = "Management", - /** Scm */ - Scm = "Scm", - /** DeveloperPortal */ - DeveloperPortal = "DeveloperPortal" +/** Known values of {@link ExportApi} that the service accepts. */ +export enum KnownExportApi { + /** True */ + True = "true", } /** - * Defines values for HostnameType. \ - * {@link KnownHostnameType} can be used interchangeably with HostnameType, + * Defines values for ExportApi. \ + * {@link KnownExportApi} can be used interchangeably with ExportApi, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Proxy** \ - * **Portal** \ - * **Management** \ - * **Scm** \ - * **DeveloperPortal** + * **true** */ -export type HostnameType = string; +export type ExportApi = string; -/** Known values of {@link CertificateSource} that the service accepts. */ -export enum KnownCertificateSource { - /** Managed */ - Managed = "Managed", - /** KeyVault */ - KeyVault = "KeyVault", - /** Custom */ - Custom = "Custom", - /** BuiltIn */ - BuiltIn = "BuiltIn" +/** Known values of {@link ExportResultFormat} that the service accepts. */ +export enum KnownExportResultFormat { + /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ + Swagger = "swagger-link-json", + /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link+xml", + /** Export the API Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link-json", + /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ + OpenApi = "openapi-link", } /** - * Defines values for CertificateSource. \ - * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * Defines values for ExportResultFormat. \ + * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Managed** \ - * **KeyVault** \ - * **Custom** \ - * **BuiltIn** + * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ + * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ -export type CertificateSource = string; +export type ExportResultFormat = string; -/** Known values of {@link CertificateStatus} that the service accepts. */ -export enum KnownCertificateStatus { - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" +/** Known values of {@link VersioningScheme} that the service accepts. */ +export enum KnownVersioningScheme { + /** The API Version is passed in a path segment. */ + Segment = "Segment", + /** The API Version is passed in a query parameter. */ + Query = "Query", + /** The API Version is passed in a HTTP header. */ + Header = "Header", } /** - * Defines values for CertificateStatus. \ - * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, + * Defines values for VersioningScheme. \ + * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Completed** \ - * **Failed** \ - * **InProgress** + * **Segment**: The API Version is passed in a path segment. \ + * **Query**: The API Version is passed in a query parameter. \ + * **Header**: The API Version is passed in a HTTP header. */ -export type CertificateStatus = string; +export type VersioningScheme = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link AuthorizationType} that the service accepts. */ +export enum KnownAuthorizationType { + /** OAuth2 authorization type */ + OAuth2 = "OAuth2", } /** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * Defines values for AuthorizationType. \ + * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **OAuth2**: OAuth2 authorization type */ -export type PublicNetworkAccess = string; +export type AuthorizationType = string; -/** Known values of {@link NatGatewayState} that the service accepts. */ -export enum KnownNatGatewayState { - /** Nat Gateway is enabled for the service. */ - Enabled = "Enabled", - /** Nat Gateway is disabled for the service. */ - Disabled = "Disabled" +/** Known values of {@link OAuth2GrantType} that the service accepts. */ +export enum KnownOAuth2GrantType { + /** Authorization Code grant */ + AuthorizationCode = "AuthorizationCode", + /** Client Credential grant */ + ClientCredentials = "ClientCredentials", } /** - * Defines values for NatGatewayState. \ - * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, + * Defines values for OAuth2GrantType. \ + * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Nat Gateway is enabled for the service. \ - * **Disabled**: Nat Gateway is disabled for the service. + * **AuthorizationCode**: Authorization Code grant \ + * **ClientCredentials**: Client Credential grant */ -export type NatGatewayState = string; +export type OAuth2GrantType = string; -/** Known values of {@link PlatformVersion} that the service accepts. */ -export enum KnownPlatformVersion { - /** Platform version cannot be determined, as compute platform is not deployed. */ - Undetermined = "undetermined", - /** Platform running the service on Single Tenant V1 platform. */ - Stv1 = "stv1", - /** Platform running the service on Single Tenant V2 platform. */ - Stv2 = "stv2", - /** Platform running the service on Multi Tenant V1 platform. */ - Mtv1 = "mtv1" +/** Known values of {@link GrantType} that the service accepts. */ +export enum KnownGrantType { + /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ + AuthorizationCode = "authorizationCode", + /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ + Implicit = "implicit", + /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ + ResourceOwnerPassword = "resourceOwnerPassword", + /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ + ClientCredentials = "clientCredentials", } /** - * Defines values for PlatformVersion. \ - * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, + * Defines values for GrantType. \ + * {@link KnownGrantType} can be used interchangeably with GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ - * **stv1**: Platform running the service on Single Tenant V1 platform. \ - * **stv2**: Platform running the service on Single Tenant V2 platform. \ - * **mtv1**: Platform running the service on Multi Tenant V1 platform. + * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ + * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ + * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ + * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. */ -export type PlatformVersion = string; +export type GrantType = string; -/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ -export enum KnownCertificateConfigurationStoreName { - /** CertificateAuthority */ - CertificateAuthority = "CertificateAuthority", - /** Root */ - Root = "Root" +/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ +export enum KnownClientAuthenticationMethod { + /** Basic Client Authentication method. */ + Basic = "Basic", + /** Body based Authentication method. */ + Body = "Body", } /** - * Defines values for CertificateConfigurationStoreName. \ - * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, + * Defines values for ClientAuthenticationMethod. \ + * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CertificateAuthority** \ - * **Root** + * **Basic**: Basic Client Authentication method. \ + * **Body**: Body based Authentication method. */ -export type CertificateConfigurationStoreName = string; +export type ClientAuthenticationMethod = string; -/** Known values of {@link VirtualNetworkType} that the service accepts. */ -export enum KnownVirtualNetworkType { - /** The service is not part of any Virtual Network. */ - None = "None", - /** The service is part of Virtual Network and it is accessible from Internet. */ - External = "External", - /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ - Internal = "Internal" +/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ +export enum KnownBearerTokenSendingMethod { + /** AuthorizationHeader */ + AuthorizationHeader = "authorizationHeader", + /** Query */ + Query = "query", } /** - * Defines values for VirtualNetworkType. \ - * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * Defines values for BearerTokenSendingMethod. \ + * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None**: The service is not part of any Virtual Network. \ - * **External**: The service is part of Virtual Network and it is accessible from Internet. \ - * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + * **authorizationHeader** \ + * **query** */ -export type VirtualNetworkType = string; +export type BearerTokenSendingMethod = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected" +/** Known values of {@link BackendProtocol} that the service accepts. */ +export enum KnownBackendProtocol { + /** The Backend is a RESTful service. */ + Http = "http", + /** The Backend is a SOAP service. */ + Soap = "soap", } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for BackendProtocol. \ + * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **http**: The Backend is a RESTful service. \ + * **soap**: The Backend is a SOAP service. */ -export type PrivateEndpointServiceConnectionStatus = string; +export type BackendProtocol = string; -/** Known values of {@link ApimIdentityType} that the service accepts. */ -export enum KnownApimIdentityType { - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - /** None */ - None = "None" +/** Known values of {@link BackendType} that the service accepts. */ +export enum KnownBackendType { + /** supports single backend */ + Single = "Single", + /** supports pool backend */ + Pool = "Pool", } /** - * Defines values for ApimIdentityType. \ - * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * Defines values for BackendType. \ + * {@link KnownBackendType} can be used interchangeably with BackendType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned, UserAssigned** \ - * **None** + * **Single**: supports single backend \ + * **Pool**: supports pool backend */ -export type ApimIdentityType = string; +export type BackendType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link PreferredIPVersion} that the service accepts. */ +export enum KnownPreferredIPVersion { + /** IPv4 */ + IPv4 = "IPv4", } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Defines values for PreferredIPVersion. \ + * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **IPv4** */ -export type CreatedByType = string; +export type PreferredIPVersion = string; -/** Known values of {@link TemplateName} that the service accepts. */ -export enum KnownTemplateName { - /** ApplicationApprovedNotificationMessage */ - ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", - /** AccountClosedDeveloper */ - AccountClosedDeveloper = "accountClosedDeveloper", - /** QuotaLimitApproachingDeveloperNotificationMessage */ - QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", - /** NewDeveloperNotificationMessage */ - NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", - /** EmailChangeIdentityDefault */ - EmailChangeIdentityDefault = "emailChangeIdentityDefault", - /** InviteUserNotificationMessage */ - InviteUserNotificationMessage = "inviteUserNotificationMessage", - /** NewCommentNotificationMessage */ - NewCommentNotificationMessage = "newCommentNotificationMessage", - /** ConfirmSignUpIdentityDefault */ - ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", - /** NewIssueNotificationMessage */ - NewIssueNotificationMessage = "newIssueNotificationMessage", - /** PurchaseDeveloperNotificationMessage */ - PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", - /** PasswordResetIdentityDefault */ - PasswordResetIdentityDefault = "passwordResetIdentityDefault", - /** PasswordResetByAdminNotificationMessage */ - PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", - /** RejectDeveloperNotificationMessage */ - RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", - /** RequestDeveloperNotificationMessage */ - RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ +export enum KnownConnectivityCheckProtocol { + /** TCP */ + TCP = "TCP", + /** Http */ + Http = "HTTP", + /** Https */ + Https = "HTTPS", } /** - * Defines values for TemplateName. \ - * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * Defines values for ConnectivityCheckProtocol. \ + * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **applicationApprovedNotificationMessage** \ - * **accountClosedDeveloper** \ - * **quotaLimitApproachingDeveloperNotificationMessage** \ - * **newDeveloperNotificationMessage** \ - * **emailChangeIdentityDefault** \ - * **inviteUserNotificationMessage** \ - * **newCommentNotificationMessage** \ - * **confirmSignUpIdentityDefault** \ - * **newIssueNotificationMessage** \ - * **purchaseDeveloperNotificationMessage** \ - * **passwordResetIdentityDefault** \ - * **passwordResetByAdminNotificationMessage** \ - * **rejectDeveloperNotificationMessage** \ - * **requestDeveloperNotificationMessage** + * **TCP** \ + * **HTTP** \ + * **HTTPS** */ -export type TemplateName = string; +export type ConnectivityCheckProtocol = string; -/** Known values of {@link UserState} that the service accepts. */ -export enum KnownUserState { - /** User state is active. */ - Active = "active", - /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ - Blocked = "blocked", - /** User account is pending. Requires identity confirmation before it can be made active. */ - Pending = "pending", - /** User account is closed. All identities and related entities are removed. */ - Deleted = "deleted" +/** Known values of {@link Method} that the service accepts. */ +export enum KnownMethod { + /** GET */ + GET = "GET", + /** Post */ + Post = "POST", } /** - * Defines values for UserState. \ - * {@link KnownUserState} can be used interchangeably with UserState, + * Defines values for Method. \ + * {@link KnownMethod} can be used interchangeably with Method, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **active**: User state is active. \ - * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ - * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ - * **deleted**: User account is closed. All identities and related entities are removed. + * **GET** \ + * **POST** */ -export type UserState = string; +export type Method = string; -/** Known values of {@link IdentityProviderType} that the service accepts. */ -export enum KnownIdentityProviderType { - /** Facebook as Identity provider. */ - Facebook = "facebook", - /** Google as Identity provider. */ - Google = "google", - /** Microsoft Live as Identity provider. */ - Microsoft = "microsoft", - /** Twitter as Identity provider. */ - Twitter = "twitter", - /** Azure Active Directory as Identity provider. */ - Aad = "aad", - /** Azure Active Directory B2C as Identity provider. */ - AadB2C = "aadB2C" +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** Local */ + Local = "Local", + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound", } /** - * Defines values for IdentityProviderType. \ - * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **facebook**: Facebook as Identity provider. \ - * **google**: Google as Identity provider. \ - * **microsoft**: Microsoft Live as Identity provider. \ - * **twitter**: Twitter as Identity provider. \ - * **aad**: Azure Active Directory as Identity provider. \ - * **aadB2C**: Azure Active Directory B2C as Identity provider. + * **Local** \ + * **Inbound** \ + * **Outbound** */ -export type IdentityProviderType = string; +export type Origin = string; -/** Known values of {@link LoggerType} that the service accepts. */ -export enum KnownLoggerType { - /** Azure Event Hub as log destination. */ - AzureEventHub = "azureEventHub", - /** Azure Application Insights as log destination. */ - ApplicationInsights = "applicationInsights", - /** Azure Monitor */ - AzureMonitor = "azureMonitor" +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning", } /** - * Defines values for LoggerType. \ - * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureEventHub**: Azure Event Hub as log destination. \ - * **applicationInsights**: Azure Application Insights as log destination. \ - * **azureMonitor**: Azure Monitor + * **Error** \ + * **Warning** */ -export type LoggerType = string; +export type Severity = string; -/** Known values of {@link ConnectivityStatusType} that the service accepts. */ -export enum KnownConnectivityStatusType { - /** Initializing */ - Initializing = "initializing", - /** Success */ - Success = "success", - /** Failure */ - Failure = "failure" +/** Known values of {@link IssueType} that the service accepts. */ +export enum KnownIssueType { + /** Unknown */ + Unknown = "Unknown", + /** AgentStopped */ + AgentStopped = "AgentStopped", + /** GuestFirewall */ + GuestFirewall = "GuestFirewall", + /** DnsResolution */ + DnsResolution = "DnsResolution", + /** SocketBind */ + SocketBind = "SocketBind", + /** NetworkSecurityRule */ + NetworkSecurityRule = "NetworkSecurityRule", + /** UserDefinedRoute */ + UserDefinedRoute = "UserDefinedRoute", + /** PortThrottled */ + PortThrottled = "PortThrottled", + /** Platform */ + Platform = "Platform", } /** - * Defines values for ConnectivityStatusType. \ - * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * Defines values for IssueType. \ + * {@link KnownIssueType} can be used interchangeably with IssueType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **initializing** \ - * **success** \ - * **failure** + * **Unknown** \ + * **AgentStopped** \ + * **GuestFirewall** \ + * **DnsResolution** \ + * **SocketBind** \ + * **NetworkSecurityRule** \ + * **UserDefinedRoute** \ + * **PortThrottled** \ + * **Platform** */ -export type ConnectivityStatusType = string; +export type IssueType = string; -/** Known values of {@link NotificationName} that the service accepts. */ -export enum KnownNotificationName { - /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ - RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", - /** The following email recipients and users will receive email notifications about new API product subscriptions. */ - PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ - NewApplicationNotificationMessage = "NewApplicationNotificationMessage", - /** The following recipients will receive blind carbon copies of all emails sent to developers. */ - BCC = "BCC", - /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ - NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when developer closes his account. */ - AccountClosedPublisher = "AccountClosedPublisher", - /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ - QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage" +/** Known values of {@link ConnectionStatus} that the service accepts. */ +export enum KnownConnectionStatus { + /** Unknown */ + Unknown = "Unknown", + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Degraded */ + Degraded = "Degraded", } /** - * Defines values for NotificationName. \ - * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * Defines values for ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ - * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ - * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ - * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ - * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ - * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ - * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + * **Unknown** \ + * **Connected** \ + * **Disconnected** \ + * **Degraded** */ -export type NotificationName = string; +export type ConnectionStatus = string; -/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ -export enum KnownPolicyFragmentContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ +export enum KnownResourceSkuCapacityScaleType { + /** Supported scale type automatic. */ + Automatic = "automatic", + /** Supported scale type manual. */ + Manual = "manual", + /** Scaling not supported. */ + None = "none", } /** - * Defines values for PolicyFragmentContentFormat. \ - * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * Defines values for ResourceSkuCapacityScaleType. \ + * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + * **automatic**: Supported scale type automatic. \ + * **manual**: Supported scale type manual. \ + * **none**: Scaling not supported. */ -export type PolicyFragmentContentFormat = string; +export type ResourceSkuCapacityScaleType = string; -/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ -export enum KnownPortalSettingsCspMode { - /** The browser will block requests not matching allowed origins. */ - Enabled = "enabled", - /** The browser will not apply the origin restrictions. */ - Disabled = "disabled", - /** The browser will report requests not matching allowed origins without blocking them. */ - ReportOnly = "reportOnly" +/** Known values of {@link AccessType} that the service accepts. */ +export enum KnownAccessType { + /** Use access key. */ + AccessKey = "AccessKey", + /** Use system assigned managed identity. */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** Use user assigned managed identity. */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity", } /** - * Defines values for PortalSettingsCspMode. \ - * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * Defines values for AccessType. \ + * {@link KnownAccessType} can be used interchangeably with AccessType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled**: The browser will block requests not matching allowed origins. \ - * **disabled**: The browser will not apply the origin restrictions. \ - * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + * **AccessKey**: Use access key. \ + * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ + * **UserAssignedManagedIdentity**: Use user assigned managed identity. */ -export type PortalSettingsCspMode = string; +export type AccessType = string; -/** Known values of {@link PortalRevisionStatus} that the service accepts. */ -export enum KnownPortalRevisionStatus { - /** Portal's revision has been queued. */ - Pending = "pending", - /** Portal's revision is being published. */ - Publishing = "publishing", - /** Portal's revision publishing completed. */ - Completed = "completed", - /** Portal's revision publishing failed. */ - Failed = "failed" +/** Known values of {@link HostnameType} that the service accepts. */ +export enum KnownHostnameType { + /** Proxy */ + Proxy = "Proxy", + /** Portal */ + Portal = "Portal", + /** Management */ + Management = "Management", + /** Scm */ + Scm = "Scm", + /** DeveloperPortal */ + DeveloperPortal = "DeveloperPortal", + /** ConfigurationApi */ + ConfigurationApi = "ConfigurationApi", } /** - * Defines values for PortalRevisionStatus. \ - * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * Defines values for HostnameType. \ + * {@link KnownHostnameType} can be used interchangeably with HostnameType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **pending**: Portal's revision has been queued. \ - * **publishing**: Portal's revision is being published. \ - * **completed**: Portal's revision publishing completed. \ - * **failed**: Portal's revision publishing failed. + * **Proxy** \ + * **Portal** \ + * **Management** \ + * **Scm** \ + * **DeveloperPortal** \ + * **ConfigurationApi** */ -export type PortalRevisionStatus = string; +export type HostnameType = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +/** Known values of {@link CertificateSource} that the service accepts. */ +export enum KnownCertificateSource { + /** Managed */ + Managed = "Managed", + /** KeyVault */ + KeyVault = "KeyVault", + /** Custom */ + Custom = "Custom", + /** BuiltIn */ + BuiltIn = "BuiltIn", } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for CertificateSource. \ + * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **Managed** \ + * **KeyVault** \ + * **Custom** \ + * **BuiltIn** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type CertificateSource = string; -/** Known values of {@link SchemaType} that the service accepts. */ -export enum KnownSchemaType { - /** XML schema type. */ - Xml = "xml", - /** Json schema type. */ - Json = "json" +/** Known values of {@link CertificateStatus} that the service accepts. */ +export enum KnownCertificateStatus { + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress", } /** - * Defines values for SchemaType. \ - * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * Defines values for CertificateStatus. \ + * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: XML schema type. \ - * **json**: Json schema type. + * **Completed** \ + * **Failed** \ + * **InProgress** */ -export type SchemaType = string; +export type CertificateStatus = string; -/** Known values of {@link SettingsTypeName} that the service accepts. */ -export enum KnownSettingsTypeName { - /** Public */ - Public = "public" +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", } /** - * Defines values for SettingsTypeName. \ - * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **public** + * **Enabled** \ + * **Disabled** */ -export type SettingsTypeName = string; +export type PublicNetworkAccess = string; -/** Known values of {@link AppType} that the service accepts. */ -export enum KnownAppType { - /** User create request was sent by legacy developer portal. */ - Portal = "portal", - /** User create request was sent by new developer portal. */ - DeveloperPortal = "developerPortal" +/** Known values of {@link LegacyApiState} that the service accepts. */ +export enum KnownLegacyApiState { + /** Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. */ + Enabled = "Enabled", + /** Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ + Disabled = "Disabled", } /** - * Defines values for AppType. \ - * {@link KnownAppType} can be used interchangeably with AppType, + * Defines values for LegacyApiState. \ + * {@link KnownLegacyApiState} can be used interchangeably with LegacyApiState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **portal**: User create request was sent by legacy developer portal. \ - * **developerPortal**: User create request was sent by new developer portal. + * **Enabled**: Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. \ + * **Disabled**: Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ -export type AppType = string; +export type LegacyApiState = string; -/** Known values of {@link AccessIdName} that the service accepts. */ -export enum KnownAccessIdName { - /** Access */ - Access = "access", - /** GitAccess */ - GitAccess = "gitAccess" +/** Known values of {@link NatGatewayState} that the service accepts. */ +export enum KnownNatGatewayState { + /** Nat Gateway is enabled for the service. */ + Enabled = "Enabled", + /** Nat Gateway is disabled for the service. */ + Disabled = "Disabled", } /** - * Defines values for AccessIdName. \ - * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * Defines values for NatGatewayState. \ + * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **access** \ - * **gitAccess** + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. */ -export type AccessIdName = string; +export type NatGatewayState = string; -/** Known values of {@link ConfigurationIdName} that the service accepts. */ -export enum KnownConfigurationIdName { - /** Configuration */ - Configuration = "configuration" +/** Known values of {@link PlatformVersion} that the service accepts. */ +export enum KnownPlatformVersion { + /** Platform version cannot be determined, as compute platform is not deployed. */ + Undetermined = "undetermined", + /** Platform running the service on Single Tenant V1 platform. */ + Stv1 = "stv1", + /** Platform running the service on Single Tenant V2 platform. */ + Stv2 = "stv2", + /** Platform running the service on Multi Tenant V1 platform. */ + Mtv1 = "mtv1", + /** Platform running the service on Single Tenant V2 platform on newer Hardware. */ + Stv21 = "stv2.1", } /** - * Defines values for ConfigurationIdName. \ - * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * Defines values for PlatformVersion. \ + * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **configuration** + * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ + * **stv1**: Platform running the service on Single Tenant V1 platform. \ + * **stv2**: Platform running the service on Single Tenant V2 platform. \ + * **mtv1**: Platform running the service on Multi Tenant V1 platform. \ + * **stv2.1**: Platform running the service on Single Tenant V2 platform on newer Hardware. */ -export type ConfigurationIdName = string; +export type PlatformVersion = string; -/** Known values of {@link Confirmation} that the service accepts. */ -export enum KnownConfirmation { - /** Send an e-mail to the user confirming they have successfully signed up. */ - Signup = "signup", - /** Send an e-mail inviting the user to sign-up and complete registration. */ - Invite = "invite" +/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ +export enum KnownCertificateConfigurationStoreName { + /** CertificateAuthority */ + CertificateAuthority = "CertificateAuthority", + /** Root */ + Root = "Root", } /** - * Defines values for Confirmation. \ - * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * Defines values for CertificateConfigurationStoreName. \ + * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ - * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + * **CertificateAuthority** \ + * **Root** */ -export type Confirmation = string; -/** Defines values for ProductState. */ -export type ProductState = "notPublished" | "published"; -/** Defines values for AuthorizationMethod. */ -export type AuthorizationMethod = - | "HEAD" - | "OPTIONS" - | "TRACE" - | "GET" - | "POST" - | "PUT" - | "PATCH" - | "DELETE"; -/** Defines values for NameAvailabilityReason. */ -export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; -/** Defines values for KeyType. */ -export type KeyType = "primary" | "secondary"; -/** Defines values for GroupType. */ -export type GroupType = "custom" | "system" | "external"; -/** Defines values for PolicyScopeContract. */ -export type PolicyScopeContract = - | "Tenant" - | "Product" - | "Api" - | "Operation" - | "All"; -/** Defines values for SubscriptionState. */ -export type SubscriptionState = - | "suspended" - | "active" - | "expired" - | "submitted" - | "rejected" - | "cancelled"; -/** Defines values for ApiManagementSkuCapacityScaleType. */ -export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; -/** Defines values for ApiManagementSkuRestrictionsType. */ -export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; -/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ -export type ApiManagementSkuRestrictionsReasonCode = - | "QuotaId" - | "NotAvailableForSubscription"; -/** Defines values for AsyncOperationStatus. */ -export type AsyncOperationStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; -/** Defines values for AsyncResolverStatus. */ -export type AsyncResolverStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; +export type CertificateConfigurationStoreName = string; + +/** Known values of {@link VirtualNetworkType} that the service accepts. */ +export enum KnownVirtualNetworkType { + /** The service is not part of any Virtual Network. */ + None = "None", + /** The service is part of Virtual Network and it is accessible from Internet. */ + External = "External", + /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ + Internal = "Internal", +} + +/** + * Defines values for VirtualNetworkType. \ + * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: The service is not part of any Virtual Network. \ + * **External**: The service is part of Virtual Network and it is accessible from Internet. \ + * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + */ +export type VirtualNetworkType = string; + +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link LegacyPortalStatus} that the service accepts. */ +export enum KnownLegacyPortalStatus { + /** Legacy Portal is enabled for the service. */ + Enabled = "Enabled", + /** Legacy Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for LegacyPortalStatus. \ + * {@link KnownLegacyPortalStatus} can be used interchangeably with LegacyPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Legacy Portal is enabled for the service. \ + * **Disabled**: Legacy Portal is disabled for the service. + */ +export type LegacyPortalStatus = string; + +/** Known values of {@link DeveloperPortalStatus} that the service accepts. */ +export enum KnownDeveloperPortalStatus { + /** Developer Portal is enabled for the service. */ + Enabled = "Enabled", + /** Developer Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for DeveloperPortalStatus. \ + * {@link KnownDeveloperPortalStatus} can be used interchangeably with DeveloperPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Developer Portal is enabled for the service. \ + * **Disabled**: Developer Portal is disabled for the service. + */ +export type DeveloperPortalStatus = string; + +/** Known values of {@link ApimIdentityType} that the service accepts. */ +export enum KnownApimIdentityType { + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + /** None */ + None = "None", +} + +/** + * Defines values for ApimIdentityType. \ + * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** \ + * **None** + */ +export type ApimIdentityType = string; + +/** Known values of {@link MigrateToStv2Mode} that the service accepts. */ +export enum KnownMigrateToStv2Mode { + /** Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. */ + PreserveIp = "PreserveIp", + /** Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. */ + NewIP = "NewIP", +} + +/** + * Defines values for MigrateToStv2Mode. \ + * {@link KnownMigrateToStv2Mode} can be used interchangeably with MigrateToStv2Mode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PreserveIp**: Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. \ + * **NewIP**: Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. + */ +export type MigrateToStv2Mode = string; + +/** Known values of {@link TemplateName} that the service accepts. */ +export enum KnownTemplateName { + /** ApplicationApprovedNotificationMessage */ + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", + /** AccountClosedDeveloper */ + AccountClosedDeveloper = "accountClosedDeveloper", + /** QuotaLimitApproachingDeveloperNotificationMessage */ + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", + /** NewDeveloperNotificationMessage */ + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", + /** EmailChangeIdentityDefault */ + EmailChangeIdentityDefault = "emailChangeIdentityDefault", + /** InviteUserNotificationMessage */ + InviteUserNotificationMessage = "inviteUserNotificationMessage", + /** NewCommentNotificationMessage */ + NewCommentNotificationMessage = "newCommentNotificationMessage", + /** ConfirmSignUpIdentityDefault */ + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", + /** NewIssueNotificationMessage */ + NewIssueNotificationMessage = "newIssueNotificationMessage", + /** PurchaseDeveloperNotificationMessage */ + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", + /** PasswordResetIdentityDefault */ + PasswordResetIdentityDefault = "passwordResetIdentityDefault", + /** PasswordResetByAdminNotificationMessage */ + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", + /** RejectDeveloperNotificationMessage */ + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", + /** RequestDeveloperNotificationMessage */ + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage", +} + +/** + * Defines values for TemplateName. \ + * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **applicationApprovedNotificationMessage** \ + * **accountClosedDeveloper** \ + * **quotaLimitApproachingDeveloperNotificationMessage** \ + * **newDeveloperNotificationMessage** \ + * **emailChangeIdentityDefault** \ + * **inviteUserNotificationMessage** \ + * **newCommentNotificationMessage** \ + * **confirmSignUpIdentityDefault** \ + * **newIssueNotificationMessage** \ + * **purchaseDeveloperNotificationMessage** \ + * **passwordResetIdentityDefault** \ + * **passwordResetByAdminNotificationMessage** \ + * **rejectDeveloperNotificationMessage** \ + * **requestDeveloperNotificationMessage** + */ +export type TemplateName = string; + +/** Known values of {@link GatewayListDebugCredentialsContractPurpose} that the service accepts. */ +export enum KnownGatewayListDebugCredentialsContractPurpose { + /** The tracing purpose. */ + Tracing = "tracing", +} + +/** + * Defines values for GatewayListDebugCredentialsContractPurpose. \ + * {@link KnownGatewayListDebugCredentialsContractPurpose} can be used interchangeably with GatewayListDebugCredentialsContractPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tracing**: The tracing purpose. + */ +export type GatewayListDebugCredentialsContractPurpose = string; + +/** Known values of {@link UserState} that the service accepts. */ +export enum KnownUserState { + /** User state is active. */ + Active = "active", + /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ + Blocked = "blocked", + /** User account is pending. Requires identity confirmation before it can be made active. */ + Pending = "pending", + /** User account is closed. All identities and related entities are removed. */ + Deleted = "deleted", +} + +/** + * Defines values for UserState. \ + * {@link KnownUserState} can be used interchangeably with UserState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **active**: User state is active. \ + * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ + * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ + * **deleted**: User account is closed. All identities and related entities are removed. + */ +export type UserState = string; + +/** Known values of {@link IdentityProviderType} that the service accepts. */ +export enum KnownIdentityProviderType { + /** Facebook as Identity provider. */ + Facebook = "facebook", + /** Google as Identity provider. */ + Google = "google", + /** Microsoft Live as Identity provider. */ + Microsoft = "microsoft", + /** Twitter as Identity provider. */ + Twitter = "twitter", + /** Azure Active Directory as Identity provider. */ + Aad = "aad", + /** Azure Active Directory B2C as Identity provider. */ + AadB2C = "aadB2C", +} + +/** + * Defines values for IdentityProviderType. \ + * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **facebook**: Facebook as Identity provider. \ + * **google**: Google as Identity provider. \ + * **microsoft**: Microsoft Live as Identity provider. \ + * **twitter**: Twitter as Identity provider. \ + * **aad**: Azure Active Directory as Identity provider. \ + * **aadB2C**: Azure Active Directory B2C as Identity provider. + */ +export type IdentityProviderType = string; + +/** Known values of {@link LoggerType} that the service accepts. */ +export enum KnownLoggerType { + /** Azure Event Hub as log destination. */ + AzureEventHub = "azureEventHub", + /** Azure Application Insights as log destination. */ + ApplicationInsights = "applicationInsights", + /** Azure Monitor */ + AzureMonitor = "azureMonitor", +} + +/** + * Defines values for LoggerType. \ + * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azureEventHub**: Azure Event Hub as log destination. \ + * **applicationInsights**: Azure Application Insights as log destination. \ + * **azureMonitor**: Azure Monitor + */ +export type LoggerType = string; + +/** Known values of {@link ConnectivityStatusType} that the service accepts. */ +export enum KnownConnectivityStatusType { + /** Initializing */ + Initializing = "initializing", + /** Success */ + Success = "success", + /** Failure */ + Failure = "failure", +} + +/** + * Defines values for ConnectivityStatusType. \ + * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **initializing** \ + * **success** \ + * **failure** + */ +export type ConnectivityStatusType = string; + +/** Known values of {@link NotificationName} that the service accepts. */ +export enum KnownNotificationName { + /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", + /** The following email recipients and users will receive email notifications about new API product subscriptions. */ + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ + NewApplicationNotificationMessage = "NewApplicationNotificationMessage", + /** The following recipients will receive blind carbon copies of all emails sent to developers. */ + BCC = "BCC", + /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when developer closes his account. */ + AccountClosedPublisher = "AccountClosedPublisher", + /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage", +} + +/** + * Defines values for NotificationName. \ + * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ + * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ + * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ + * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ + * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ + * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ + * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + */ +export type NotificationName = string; + +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PolicyRestrictionRequireBase} that the service accepts. */ +export enum KnownPolicyRestrictionRequireBase { + /** The policy is required to have base policy */ + True = "true", + /** The policy does not require to have base policy */ + False = "false", +} + +/** + * Defines values for PolicyRestrictionRequireBase. \ + * {@link KnownPolicyRestrictionRequireBase} can be used interchangeably with PolicyRestrictionRequireBase, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: The policy is required to have base policy \ + * **false**: The policy does not require to have base policy + */ +export type PolicyRestrictionRequireBase = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly", +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + +/** Known values of {@link PortalRevisionStatus} that the service accepts. */ +export enum KnownPortalRevisionStatus { + /** Portal's revision has been queued. */ + Pending = "pending", + /** Portal's revision is being published. */ + Publishing = "publishing", + /** Portal's revision publishing completed. */ + Completed = "completed", + /** Portal's revision publishing failed. */ + Failed = "failed", +} + +/** + * Defines values for PortalRevisionStatus. \ + * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **pending**: Portal's revision has been queued. \ + * **publishing**: Portal's revision is being published. \ + * **completed**: Portal's revision publishing completed. \ + * **failed**: Portal's revision publishing failed. + */ +export type PortalRevisionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link SchemaType} that the service accepts. */ +export enum KnownSchemaType { + /** XML schema type. */ + Xml = "xml", + /** Json schema type. */ + Json = "json", +} + +/** + * Defines values for SchemaType. \ + * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: XML schema type. \ + * **json**: Json schema type. + */ +export type SchemaType = string; + +/** Known values of {@link SettingsTypeName} that the service accepts. */ +export enum KnownSettingsTypeName { + /** Public */ + Public = "public", +} + +/** + * Defines values for SettingsTypeName. \ + * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **public** + */ +export type SettingsTypeName = string; + +/** Known values of {@link AppType} that the service accepts. */ +export enum KnownAppType { + /** User create request was sent by legacy developer portal. */ + Portal = "portal", + /** User create request was sent by new developer portal. */ + DeveloperPortal = "developerPortal", +} + +/** + * Defines values for AppType. \ + * {@link KnownAppType} can be used interchangeably with AppType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **portal**: User create request was sent by legacy developer portal. \ + * **developerPortal**: User create request was sent by new developer portal. + */ +export type AppType = string; + +/** Known values of {@link AccessIdName} that the service accepts. */ +export enum KnownAccessIdName { + /** Access */ + Access = "access", + /** GitAccess */ + GitAccess = "gitAccess", +} + +/** + * Defines values for AccessIdName. \ + * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **access** \ + * **gitAccess** + */ +export type AccessIdName = string; + +/** Known values of {@link ConfigurationIdName} that the service accepts. */ +export enum KnownConfigurationIdName { + /** Configuration */ + Configuration = "configuration", +} + +/** + * Defines values for ConfigurationIdName. \ + * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **configuration** + */ +export type ConfigurationIdName = string; + +/** Known values of {@link Confirmation} that the service accepts. */ +export enum KnownConfirmation { + /** Send an e-mail to the user confirming they have successfully signed up. */ + Signup = "signup", + /** Send an e-mail inviting the user to sign-up and complete registration. */ + Invite = "invite", +} + +/** + * Defines values for Confirmation. \ + * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ + * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + */ +export type Confirmation = string; + +/** Known values of {@link KeyVaultRefreshState} that the service accepts. */ +export enum KnownKeyVaultRefreshState { + /** Entities for which KeyVault refresh failed. */ + True = "true", + /** Entities for which KeyVault refresh succeeded */ + False = "false", +} + +/** + * Defines values for KeyVaultRefreshState. \ + * {@link KnownKeyVaultRefreshState} can be used interchangeably with KeyVaultRefreshState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: Entities for which KeyVault refresh failed. \ + * **false**: Entities for which KeyVault refresh succeeded + */ +export type KeyVaultRefreshState = string; +/** Defines values for ProductState. */ +export type ProductState = "notPublished" | "published"; +/** Defines values for AuthorizationMethod. */ +export type AuthorizationMethod = + | "HEAD" + | "OPTIONS" + | "TRACE" + | "GET" + | "POST" + | "PUT" + | "PATCH" + | "DELETE"; +/** Defines values for NameAvailabilityReason. */ +export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; +/** Defines values for KeyType. */ +export type KeyType = "primary" | "secondary"; +/** Defines values for GroupType. */ +export type GroupType = "custom" | "system" | "external"; +/** Defines values for PolicyScopeContract. */ +export type PolicyScopeContract = + | "Tenant" + | "Product" + | "Api" + | "Operation" + | "All"; +/** Defines values for AsyncOperationStatus. */ +export type AsyncOperationStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; +/** Defines values for SubscriptionState. */ +export type SubscriptionState = + | "suspended" + | "active" + | "expired" + | "submitted" + | "rejected" + | "cancelled"; +/** Defines values for ApiManagementSkuCapacityScaleType. */ +export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +/** Defines values for ApiManagementSkuRestrictionsType. */ +export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; +/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ +export type ApiManagementSkuRestrictionsReasonCode = + | "QuotaId" + | "NotAvailableForSubscription"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface ApiManagementGatewayCreateOrUpdateOptionalParams + 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 ApiManagementGatewayCreateOrUpdateResponse = + ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayUpdateOptionalParams + 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 update operation. */ +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayDeleteOptionalParams + 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 delete operation. */ +export type ApiManagementGatewayDeleteResponse = + ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementGatewayListByResourceGroupResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementGatewayListByResourceGroupNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementGatewayListNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiListByServiceResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiGetResponse = ApiGetHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** 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 ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; + /** 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 delete operation. */ +export type ApiDeleteResponse = ApiDeleteHeaders; + +/** Optional parameters. */ +export interface ApiListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged APIs. */ + includeNotTaggedApis?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type ApiListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiListByServiceNextResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type ApiListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiRevisionListByServiceResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiReleaseListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiReleaseListByServiceResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiReleaseGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiReleaseGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiReleaseListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiOperationListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; +} + +/** Contains response data for the listByApi operation. */ +export type ApiOperationListByApiResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiOperationGetResponse = ApiOperationGetHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationCreateOrUpdateResponse = + ApiOperationCreateOrUpdateHeaders & OperationContract; + +/** Optional parameters. */ +export interface ApiOperationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiOperationListByApiNextResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type ApiOperationPolicyListByOperationResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationPolicyGetEntityTagResponse = + ApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationPolicyCreateOrUpdateResponse = + ApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByOperation operation. */ +export type TagListByOperationResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByOperation operation. */ +export type TagGetEntityStateByOperationResponse = + TagGetEntityStateByOperationHeaders; + +/** Optional parameters. */ +export interface TagGetByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByOperation operation. */ +export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToOperation operation. */ +export type TagAssignToOperationResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type TagListByApiResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByApi operation. */ +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; + +/** Optional parameters. */ +export interface TagGetByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByApi operation. */ +export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToApi operation. */ +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDetachFromApiOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type TagListByProductResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByProduct operation. */ +export type TagGetEntityStateByProductResponse = + TagGetEntityStateByProductHeaders; + +/** Optional parameters. */ +export interface TagGetByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByProduct operation. */ +export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToProduct operation. */ +export type TagAssignToProductResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromProductOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; +} + +/** Contains response data for the listByService operation. */ +export type TagListByServiceResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityState operation. */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; + +/** Optional parameters. */ +export interface TagGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagGetResponse = TagGetHeaders & TagContract; + +/** Optional parameters. */ +export interface TagCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type TagUpdateResponse = TagUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type TagListByOperationNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type TagListByApiNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagListByProductNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type TagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = + GraphQLApiResolverGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverCreateOrUpdateResponse = + GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = + GraphQLApiResolverPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = + GraphQLApiResolverPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = + GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = + PolicyCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApis operation. */ +export type ApiProductListByApisResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApisNext operation. */ +export type ApiProductListByApisNextResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiPolicyListByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApi operation. */ +export type ApiPolicyListByApiResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiSchemaListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type ApiSchemaListByApiResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiSchemaGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** 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 ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & + SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaDeleteOptionalParams + extends coreClient.OperationOptions { + /** If true removes all references to the schema before deleting it. */ + force?: boolean; +} + +/** Optional parameters. */ +export interface ApiSchemaListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiDiagnosticGetEntityTagResponse = + ApiDiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiDiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiDiagnosticCreateOrUpdateResponse = + ApiDiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiIssueListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueListByServiceResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the get operation. */ +export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & + IssueContract; + +/** Optional parameters. */ +export interface ApiIssueUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueListByServiceNextResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueCommentGetEntityTagResponse = + ApiIssueCommentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueCommentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & + IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCommentCreateOrUpdateResponse = + ApiIssueCommentCreateOrUpdateHeaders & IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueAttachmentGetEntityTagResponse = + ApiIssueAttachmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & + IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueAttachmentCreateOrUpdateResponse = + ApiIssueAttachmentCreateOrUpdateHeaders & IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueAttachmentListByServiceNextResponse = + IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiTagDescriptionGetEntityTagResponse = + ApiTagDescriptionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & + TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiTagDescriptionCreateOrUpdateResponse = + ApiTagDescriptionCreateOrUpdateHeaders & TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiTagDescriptionListByServiceNextResponse = + TagDescriptionCollection; + +/** Optional parameters. */ +export interface OperationListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged Operations. */ + includeNotTaggedOperations?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type OperationListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface OperationListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type OperationListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ApiWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ApiWikisListResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiWikisListNextResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiExportGetResponse = ApiExportResult; + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface ApiVersionSetGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiVersionSetGetEntityTagResponse = + ApiVersionSetGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiVersionSetGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiVersionSetCreateOrUpdateResponse = + ApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = + AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationCreateOrUpdateResponse = + AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = + AuthorizationConfirmConsentCodeHeaders; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationLoginLinksPostOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = + AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationAccessPolicyGetResponse = + AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationAccessPolicyCreateOrUpdateResponse = + AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationServerListByServiceResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationServerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type AuthorizationServerGetEntityTagResponse = + AuthorizationServerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface AuthorizationServerGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationServerCreateOrUpdateResponse = + AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AuthorizationServerUpdateResponse = + AuthorizationServerUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationServerListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type AuthorizationServerListSecretsResponse = + AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationServerListByServiceNextResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface BackendListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type BackendListByServiceResponse = BackendCollection; + +/** Optional parameters. */ +export interface BackendGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; + +/** Optional parameters. */ +export interface BackendGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BackendGetResponse = BackendGetHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & + BackendContract; + +/** Optional parameters. */ +export interface BackendUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BackendReconnectOptionalParams + extends coreClient.OperationOptions { + /** Reconnect request parameters. */ + parameters?: BackendReconnectContract; +} + +/** Optional parameters. */ +export interface BackendListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type BackendListByServiceNextResponse = BackendCollection; + +/** Optional parameters. */ +export interface CacheListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type CacheListByServiceResponse = CacheCollection; + +/** Optional parameters. */ +export interface CacheGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CacheGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CacheGetResponse = CacheGetHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & + CacheContract; + +/** Optional parameters. */ +export interface CacheUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CacheListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CacheListByServiceNextResponse = CacheCollection; + +/** Optional parameters. */ +export interface CertificateListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** When set to true, the response contains only certificates entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type CertificateListByServiceResponse = CertificateCollection; + +/** Optional parameters. */ +export interface CertificateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CertificateGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CertificateGetResponse = CertificateGetHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CertificateCreateOrUpdateResponse = + CertificateCreateOrUpdateHeaders & CertificateContract; + +/** Optional parameters. */ +export interface CertificateDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CertificateRefreshSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the refreshSecret operation. */ +export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CertificateListByServiceNextResponse = CertificateCollection; + +/** Optional parameters. */ +export interface PerformConnectivityCheckAsyncOptionalParams + 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 performConnectivityCheckAsync operation. */ +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + +/** Optional parameters. */ +export interface ContentTypeListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentTypeListByServiceResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentTypeGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentTypeGetResponse = ContentTypeGetHeaders & + ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentTypeCreateOrUpdateResponse = + ContentTypeCreateOrUpdateHeaders & ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentTypeListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentTypeListByServiceNextResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentItemListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentItemListByServiceResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface ContentItemGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ContentItemGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentItemGetResponse = ContentItemGetHeaders & + ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentItemCreateOrUpdateResponse = + ContentItemCreateOrUpdateHeaders & ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentItemListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentItemListByServiceNextResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DeletedServicesListBySubscriptionResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface DeletedServicesGetByNameOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByName operation. */ +export type DeletedServicesGetByNameResponse = DeletedServiceContract; + +/** Optional parameters. */ +export interface DeletedServicesPurgeOptionalParams + 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; +} + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DeletedServicesListBySubscriptionNextResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface ApiManagementOperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementOperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementOperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementOperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkus operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkusNext operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceRestoreOptionalParams + 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 restore operation. */ +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceBackupOptionalParams + 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 backup operation. */ +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiListByServiceOptionalParams +export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include tags in the response. */ - tags?: string; - /** Include full ApiVersionSet resource in response */ - expandApiVersionSet?: boolean; + /** 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 listByService operation. */ -export type ApiListByServiceResponse = ApiCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ApiManagementServiceCreateOrUpdateResponse = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ApiManagementServiceUpdateOptionalParams + 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 getEntityTag operation. */ -export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; +/** Contains response data for the update operation. */ +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiGetOptionalParams extends coreClient.OperationOptions {} +export interface ApiManagementServiceGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiGetResponse = ApiGetHeaders & ApiContract; +export type ApiManagementServiceGetResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiCreateOrUpdateOptionalParams +export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; /** 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 ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + extends coreClient.OperationOptions { + /** Optional parameters supplied to migrate service. */ + parameters?: MigrateToStv2Contract; + /** 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 migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} +export interface ApiManagementServiceListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementServiceListByResourceGroupResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Delete all revisions of the Api. */ - deleteRevisions?: boolean; -} +export interface ApiManagementServiceListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementServiceListResponse = ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiListByTagsOptionalParams +export interface ApiManagementServiceGetSsoTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSsoToken operation. */ +export type ApiManagementServiceGetSsoTokenResponse = + ApiManagementServiceGetSsoTokenResult; + +/** Optional parameters. */ +export interface ApiManagementServiceCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type ApiManagementServiceCheckNameAvailabilityResponse = + ApiManagementServiceNameAvailabilityResult; + +/** Optional parameters. */ +export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getDomainOwnershipIdentifier operation. */ +export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = + ApiManagementServiceGetDomainOwnershipIdentifierResult; + +/** Optional parameters. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged APIs. */ - includeNotTaggedApis?: boolean; + /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; + /** 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 listByTags operation. */ -export type ApiListByTagsResponse = TagResourceCollection; +/** Contains response data for the applyNetworkConfigurationUpdates operation. */ +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = + ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiListByServiceNextOptionalParams +export interface ApiManagementServiceListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementServiceListByResourceGroupNextResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiListByTagsNextOptionalParams +export interface ApiManagementServiceListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type ApiListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listNext operation. */ +export type ApiManagementServiceListNextResponse = + ApiManagementServiceListResult; /** Optional parameters. */ -export interface ApiRevisionListByServiceOptionalParams +export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7513,19 +10652,56 @@ export interface ApiRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiRevisionListByServiceResponse = ApiRevisionCollection; +export type DiagnosticListByServiceResponse = DiagnosticCollection; /** Optional parameters. */ -export interface ApiRevisionListByServiceNextOptionalParams +export interface DiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface DiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; /** Optional parameters. */ -export interface ApiReleaseListByServiceOptionalParams +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7534,196 +10710,211 @@ export interface ApiReleaseListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiReleaseListByServiceResponse = ApiReleaseCollection; +export type DocumentationListByServiceResponse = DocumentationCollection; /** Optional parameters. */ -export interface ApiReleaseGetEntityTagOptionalParams +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; +export type DocumentationGetEntityTagResponse = + DocumentationGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiReleaseGetOptionalParams +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseCreateOrUpdateOptionalParams +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & - ApiReleaseContract; +export type DocumentationCreateOrUpdateResponse = + DocumentationCreateOrUpdateHeaders & DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseUpdateOptionalParams +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & - ApiReleaseContract; +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; /** Optional parameters. */ -export interface ApiReleaseDeleteOptionalParams +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiReleaseListByServiceNextOptionalParams +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; +export type DocumentationListByServiceNextResponse = DocumentationCollection; /** Optional parameters. */ -export interface ApiOperationListByApiOptionalParams +export interface EmailTemplateListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include tags in the response. */ - tags?: string; } -/** Contains response data for the listByApi operation. */ -export type ApiOperationListByApiResponse = OperationCollection; +/** Contains response data for the listByService operation. */ +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface ApiOperationGetEntityTagOptionalParams +export interface EmailTemplateGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; +export type EmailTemplateGetEntityTagResponse = + EmailTemplateGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationGetOptionalParams +export interface EmailTemplateGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationGetResponse = ApiOperationGetHeaders & - OperationContract; +export type EmailTemplateGetResponse = EmailTemplateGetHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationCreateOrUpdateOptionalParams +export interface EmailTemplateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & - OperationContract; +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationUpdateOptionalParams +export interface EmailTemplateUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & - OperationContract; +export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface ApiOperationDeleteOptionalParams +export interface EmailTemplateDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiOperationListByApiNextOptionalParams +export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiOperationListByApiNextResponse = OperationCollection; +/** Contains response data for the listByServiceNext operation. */ +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface ApiOperationPolicyListByOperationOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByOperation operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type GatewayListByServiceResponse = GatewayCollection; /** Optional parameters. */ -export interface ApiOperationPolicyGetEntityTagOptionalParams +export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & - PolicyContract; +export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; /** Optional parameters. */ -export interface ApiOperationPolicyCreateOrUpdateOptionalParams +export interface GatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & - PolicyContract; +export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & + GatewayContract; /** Optional parameters. */ -export interface ApiOperationPolicyDeleteOptionalParams +export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; + /** Optional parameters. */ -export interface TagListByOperationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface GatewayDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type TagListByOperationResponse = TagCollection; +/** Optional parameters. */ +export interface GatewayListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type GatewayListKeysResponse = GatewayListKeysHeaders & + GatewayKeysContract; /** Optional parameters. */ -export interface TagGetEntityStateByOperationOptionalParams +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByOperation operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; +/** Optional parameters. */ +export interface GatewayGenerateTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateToken operation. */ +export type GatewayGenerateTokenResponse = GatewayTokenContract; /** Optional parameters. */ -export interface TagGetByOperationOptionalParams +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByOperation operation. */ -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +/** Optional parameters. */ +export interface GatewayListDebugCredentialsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listDebugCredentials operation. */ +export type GatewayListDebugCredentialsResponse = + GatewayDebugCredentialsContract; /** Optional parameters. */ -export interface TagAssignToOperationOptionalParams +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToOperation operation. */ -export type TagAssignToOperationResponse = TagContract; +/** Contains response data for the listTrace operation. */ +export type GatewayListTraceResponse = { [propertyName: string]: any }; /** Optional parameters. */ -export interface TagDetachFromOperationOptionalParams +export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type GatewayListByServiceNextResponse = GatewayCollection; + /** Optional parameters. */ -export interface TagListByApiOptionalParams +export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7731,38 +10922,54 @@ export interface TagListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type TagListByApiResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type GatewayHostnameConfigurationListByServiceResponse = + GatewayHostnameConfigurationCollection; /** Optional parameters. */ -export interface TagGetEntityStateByApiOptionalParams +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByApi operation. */ -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayHostnameConfigurationGetEntityTagResponse = + GatewayHostnameConfigurationGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByApiOptionalParams +export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByApi operation. */ -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; +/** Contains response data for the get operation. */ +export type GatewayHostnameConfigurationGetResponse = + GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface TagAssignToApiOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the assignToApi operation. */ -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +/** Contains response data for the createOrUpdate operation. */ +export type GatewayHostnameConfigurationCreateOrUpdateResponse = + GatewayHostnameConfigurationCreateOrUpdateHeaders & + GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface TagDetachFromApiOptionalParams +export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByProductOptionalParams +export interface GatewayHostnameConfigurationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GatewayHostnameConfigurationListByServiceNextResponse = + GatewayHostnameConfigurationCollection; + +/** Optional parameters. */ +export interface GatewayApiListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7770,114 +10977,96 @@ export interface TagListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type TagListByProductResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type GatewayApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface TagGetEntityStateByProductOptionalParams +export interface GatewayApiGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByProduct operation. */ -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByProductOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Association entity details. */ + parameters?: AssociationContract; +} -/** Contains response data for the getByProduct operation. */ -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +/** Contains response data for the createOrUpdate operation. */ +export type GatewayApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface TagAssignToProductOptionalParams +export interface GatewayApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToProduct operation. */ -export type TagAssignToProductResponse = TagContract; - /** Optional parameters. */ -export interface TagDetachFromProductOptionalParams +export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type GatewayApiListByServiceNextResponse = ApiCollection; + /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface GatewayCertificateAuthorityListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; } /** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +export type GatewayCertificateAuthorityListByServiceResponse = + GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GatewayCertificateAuthorityGetEntityTagResponse = + GatewayCertificateAuthorityGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface GatewayCertificateAuthorityGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type GatewayCertificateAuthorityGetResponse = + GatewayCertificateAuthorityGetHeaders & GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface TagListByOperationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; - -/** Optional parameters. */ -export interface TagListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = + GatewayCertificateAuthorityCreateOrUpdateHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; - /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +export type GatewayCertificateAuthorityListByServiceNextResponse = + GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface GraphQLApiResolverListByApiOptionalParams +export interface GroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7885,222 +11074,184 @@ export interface GraphQLApiResolverListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type GraphQLApiResolverListByApiResponse = ResolverCollection; +/** Contains response data for the listByService operation. */ +export type GroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface GraphQLApiResolverGetEntityTagOptionalParams +export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; /** Optional parameters. */ -export interface GraphQLApiResolverGetOptionalParams - extends coreClient.OperationOptions {} +export interface GroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & - ResolverContract; +export type GroupGetResponse = GroupGetHeaders & GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverCreateOrUpdateOptionalParams +export interface GroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & - ResolverContract; +export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & + GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverUpdateOptionalParams +export interface GroupUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & - ResolverContract; - -/** Optional parameters. */ -export interface GraphQLApiResolverDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface GraphQLApiResolverListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverOptionalParams +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolver operation. */ -export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; - /** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; - -/** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} - -/** Contains response data for the get operation. */ -export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & - PolicyContract; +/** Contains response data for the listByServiceNext operation. */ +export type GroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the list operation. */ +export type GroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyDeleteOptionalParams +export interface GroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the checkEntityExists operation. */ +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; + /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams +export interface GroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolverNext operation. */ -export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; +/** Contains response data for the create operation. */ +export type GroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ApiProductListByApisOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} - -/** Contains response data for the listByApis operation. */ -export type ApiProductListByApisResponse = ProductCollection; +export interface GroupUserDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiProductListByApisNextOptionalParams +export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApisNext operation. */ -export type ApiProductListByApisNextResponse = ProductCollection; +/** Contains response data for the listNext operation. */ +export type GroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ApiPolicyListByApiOptionalParams +export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApi operation. */ -export type ApiPolicyListByApiResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type IdentityProviderListByServiceResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiPolicyGetEntityTagOptionalParams +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; +export type IdentityProviderGetEntityTagResponse = + IdentityProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface IdentityProviderGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiPolicyCreateOrUpdateOptionalParams +export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & - PolicyContract; +export type IdentityProviderCreateOrUpdateResponse = + IdentityProviderCreateOrUpdateHeaders & IdentityProviderContract; /** Optional parameters. */ -export interface ApiPolicyDeleteOptionalParams +export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface ApiSchemaListByApiOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +/** Contains response data for the update operation. */ +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & + IdentityProviderContract; -/** Contains response data for the listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection; +/** Optional parameters. */ +export interface IdentityProviderDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiSchemaGetEntityTagOptionalParams +export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; +/** Contains response data for the listSecrets operation. */ +export type IdentityProviderListSecretsResponse = + IdentityProviderListSecretsHeaders & ClientSecretContract; /** Optional parameters. */ -export interface ApiSchemaGetOptionalParams +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; +/** Contains response data for the listByServiceNext operation. */ +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiSchemaCreateOrUpdateOptionalParams +export interface IssueListByServiceOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; - /** 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; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & - SchemaContract; +/** Contains response data for the listByService operation. */ +export type IssueListByServiceResponse = IssueCollection; /** Optional parameters. */ -export interface ApiSchemaDeleteOptionalParams - extends coreClient.OperationOptions { - /** If true removes all references to the schema before deleting it. */ - force?: boolean; -} +export interface IssueGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ -export interface ApiSchemaListByApiNextOptionalParams +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiSchemaListByApiNextResponse = SchemaCollection; +/** Contains response data for the listByServiceNext operation. */ +export type IssueListByServiceNextResponse = IssueCollection; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceOptionalParams +export interface LoggerListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8109,119 +11260,158 @@ export interface ApiDiagnosticListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; +export type LoggerListByServiceResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiDiagnosticGetEntityTagOptionalParams +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders; +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiDiagnosticGetOptionalParams - extends coreClient.OperationOptions {} +export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & - DiagnosticContract; +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams +export interface LoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiDiagnosticCreateOrUpdateResponse = ApiDiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & + LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticUpdateOptionalParams +export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & - DiagnosticContract; +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; /** Optional parameters. */ -export interface ApiDiagnosticDeleteOptionalParams +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiDiagnosticListByServiceNextOptionalParams +export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; +export type LoggerListByServiceNextResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiIssueListByServiceOptionalParams +export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; + /** When set to true, the response contains only named value entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } /** Contains response data for the listByService operation. */ -export type ApiIssueListByServiceResponse = IssueCollection; +export type NamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiIssueGetEntityTagOptionalParams +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; -} +export interface NamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; /** Optional parameters. */ -export interface ApiIssueCreateOrUpdateOptionalParams +export interface NamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** 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 ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & - IssueContract; +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiIssueUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface NamedValueUpdateOptionalParams + 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 update operation. */ -export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiIssueDeleteOptionalParams +export interface NamedValueDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiIssueListByServiceNextOptionalParams +export interface NamedValueListValueOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listValue operation. */ +export type NamedValueListValueResponse = NamedValueListValueHeaders & + NamedValueSecretContract; + +/** Optional parameters. */ +export interface NamedValueRefreshSecretOptionalParams + 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 refreshSecret operation. */ +export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & + NamedValueContract; + +/** Optional parameters. */ +export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueListByServiceNextResponse = IssueCollection; +export type NamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiIssueCommentListByServiceOptionalParams +export interface NetworkStatusListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type NetworkStatusListByServiceResponse = + NetworkStatusContractByLocation[]; + +/** Optional parameters. */ +export interface NetworkStatusListByLocationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByLocation operation. */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract; + +/** Optional parameters. */ +export interface NotificationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ @@ -8229,100 +11419,94 @@ export interface ApiIssueCommentListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; - -/** Optional parameters. */ -export interface ApiIssueCommentGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; +export type NotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiIssueCommentGetOptionalParams +export interface NotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & - IssueCommentContract; +export type NotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface ApiIssueCommentCreateOrUpdateOptionalParams +export interface NotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & - IssueCommentContract; +export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface ApiIssueCommentDeleteOptionalParams +export interface NotificationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type NotificationListByServiceNextResponse = NotificationCollection; + +/** Optional parameters. */ +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; + /** Optional parameters. */ -export interface ApiIssueCommentListByServiceNextOptionalParams +export interface NotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface NotificationRecipientUserCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface ApiIssueAttachmentGetEntityTagOptionalParams +export interface NotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; - /** Optional parameters. */ -export interface ApiIssueAttachmentGetOptionalParams +export interface NotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & - IssueAttachmentContract; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & - IssueAttachmentContract; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueAttachmentDeleteOptionalParams +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; + /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceNextOptionalParams +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; - /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceOptionalParams +export interface OpenIdConnectProviderListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8331,305 +11515,327 @@ export interface ApiTagDescriptionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; +export type OpenIdConnectProviderListByServiceResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface ApiTagDescriptionGetEntityTagOptionalParams +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; +export type OpenIdConnectProviderGetEntityTagResponse = + OpenIdConnectProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiTagDescriptionGetOptionalParams +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & - TagDescriptionContract; +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiTagDescriptionCreateOrUpdateOptionalParams +export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & - TagDescriptionContract; +export type OpenIdConnectProviderCreateOrUpdateResponse = + OpenIdConnectProviderCreateOrUpdateHeaders & OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiTagDescriptionDeleteOptionalParams +export interface OpenIdConnectProviderUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type OpenIdConnectProviderUpdateResponse = + OpenIdConnectProviderUpdateHeaders & OpenidConnectProviderContract; + +/** Optional parameters. */ +export interface OpenIdConnectProviderDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceNextOptionalParams +export interface OpenIdConnectProviderListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type OpenIdConnectProviderListSecretsResponse = + OpenIdConnectProviderListSecretsHeaders & ClientSecretContract; + +/** Optional parameters. */ +export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; +export type OpenIdConnectProviderListByServiceNextResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface OperationListByTagsOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; -} +export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = + OutboundEnvironmentEndpointList; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type PolicyListByServiceResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiWikiGetEntityTagOptionalParams +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} /** Contains response data for the get operation. */ -export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiWikiCreateOrUpdateOptionalParams +export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & - WikiContract; +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface ApiWikiUpdateOptionalParams +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; - /** Optional parameters. */ -export interface ApiWikiDeleteOptionalParams +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type PolicyListByServiceNextResponse = PolicyCollection; + /** Optional parameters. */ -export interface ApiWikisListOptionalParams +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Policy scope. */ + scope?: PolicyScopeContract; } -/** Contains response data for the list operation. */ -export type ApiWikisListResponse = WikiCollection; - -/** Optional parameters. */ -export interface ApiWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApiWikisListNextResponse = WikiCollection; - -/** Optional parameters. */ -export interface ApiExportGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Contains response data for the listByService operation. */ +export type PolicyDescriptionListByServiceResponse = + PolicyDescriptionCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams +export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +export type PolicyFragmentGetEntityTagResponse = + PolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** 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 ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +export type PolicyFragmentCreateOrUpdateResponse = + PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; - /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentListReferencesOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface PolicyRestrictionListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export type PolicyRestrictionListByServiceResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type PolicyRestrictionGetEntityTagResponse = + PolicyRestrictionGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface PolicyRestrictionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; +export type PolicyRestrictionCreateOrUpdateResponse = + PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & - AuthorizationServerContract; +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface AuthorizationServerDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyRestrictionDeleteOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; +/** Contains response data for the listByServiceNext operation. */ +export type PolicyRestrictionListByServiceNextResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface PolicyRestrictionValidationsByServiceOptionalParams + 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 byService operation. */ +export type PolicyRestrictionValidationsByServiceResponse = + OperationResultContract; + +/** Optional parameters. */ +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +/** Contains response data for the listByService operation. */ +export type PortalConfigListByServiceResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationProviderListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface PortalConfigGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; +/** Contains response data for the getEntityTag operation. */ +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationProviderGetOptionalParams +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & - AuthorizationProviderContract; +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationProviderCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & - AuthorizationProviderContract; +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationProviderDeleteOptionalParams +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ -export interface AuthorizationProviderListByServiceNextOptionalParams +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderOptionalParams +export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** + * | Field | Supported operators | Supported functions | + * |-------------|------------------------|-----------------------------------| + * + * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |isCurrent | eq, ne | | + * + */ filter?: string; /** Number of records to return. */ top?: number; @@ -8637,761 +11843,795 @@ export interface AuthorizationListByAuthorizationProviderOptionalParams skip?: number; } -/** Contains response data for the listByAuthorizationProvider operation. */ -export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; +/** Contains response data for the listByService operation. */ +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface AuthorizationGetOptionalParams +export interface PortalRevisionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PortalRevisionGetEntityTagResponse = + PortalRevisionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationGetResponse = AuthorizationGetHeaders & - AuthorizationContract; +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationCreateOrUpdateOptionalParams +export interface PortalRevisionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** 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 AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & - AuthorizationContract; +export type PortalRevisionCreateOrUpdateResponse = + PortalRevisionCreateOrUpdateHeaders & PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PortalRevisionUpdateOptionalParams + 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 update operation. */ +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationConfirmConsentCodeOptionalParams +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the confirmConsentCode operation. */ -export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderNextOptionalParams +export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationProviderNext operation. */ -export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; +/** Contains response data for the listByService operation. */ +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; /** Optional parameters. */ -export interface AuthorizationLoginLinksPostOptionalParams +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the post operation. */ -export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & - AuthorizationLoginResponseContract; +/** Contains response data for the getEntityTag operation. */ +export type SignInSettingsGetEntityTagResponse = + SignInSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface SignInSettingsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorization operation. */ -export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the get operation. */ +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & + PortalSigninSettings; /** Optional parameters. */ -export interface AuthorizationAccessPolicyGetOptionalParams +export interface SignInSettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & - AuthorizationAccessPolicyContract; - /** Optional parameters. */ -export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams +export interface SignInSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & - AuthorizationAccessPolicyContract; +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; /** Optional parameters. */ -export interface AuthorizationAccessPolicyDeleteOptionalParams +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type SignUpSettingsGetEntityTagResponse = + SignUpSettingsGetEntityTagHeaders; + /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationNext operation. */ -export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the get operation. */ +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & + PortalSignupSettings; /** Optional parameters. */ -export interface BackendListByServiceOptionalParams +export interface SignUpSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByService operation. */ -export type BackendListByServiceResponse = BackendCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; /** Optional parameters. */ -export interface BackendGetEntityTagOptionalParams +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export type DelegationSettingsGetEntityTagResponse = + DelegationSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendGetOptionalParams extends coreClient.OperationOptions {} +export interface DelegationSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & + PortalDelegationSettings; /** Optional parameters. */ -export interface BackendCreateOrUpdateOptionalParams +export interface DelegationSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DelegationSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & - BackendContract; +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; /** Optional parameters. */ -export interface BackendUpdateOptionalParams +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; +/** Contains response data for the listSecrets operation. */ +export type DelegationSettingsListSecretsResponse = + PortalSettingValidationKeyContract; /** Optional parameters. */ -export interface BackendDeleteOptionalParams +export interface PrivateEndpointConnectionListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type PrivateEndpointConnectionListByServiceResponse = + PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getByName operation. */ +export type PrivateEndpointConnectionGetByNameResponse = + PrivateEndpointConnection; + /** Optional parameters. */ -export interface BackendReconnectOptionalParams +export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Reconnect request parameters. */ - parameters?: BackendReconnectContract; + /** 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 PrivateEndpointConnectionCreateOrUpdateResponse = + PrivateEndpointConnection; + /** Optional parameters. */ -export interface BackendListByServiceNextOptionalParams +export interface PrivateEndpointConnectionDeleteOptionalParams + 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; +} + +/** Optional parameters. */ +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection; +/** Contains response data for the listPrivateLinkResources operation. */ +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ -export interface CacheListByServiceOptionalParams +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPrivateLinkResource operation. */ +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = + PrivateLinkResource; + +/** Optional parameters. */ +export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type CacheListByServiceResponse = CacheCollection; +export type ProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface CacheGetEntityTagOptionalParams +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; /** Optional parameters. */ -export interface CacheGetOptionalParams extends coreClient.OperationOptions {} +export interface ProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CacheGetResponse = CacheGetHeaders & CacheContract; +export type ProductGetResponse = ProductGetHeaders & ProductContract; /** Optional parameters. */ -export interface CacheCreateOrUpdateOptionalParams +export interface ProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & - CacheContract; +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface CacheUpdateOptionalParams +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; - -/** Optional parameters. */ -export interface CacheDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type CacheListByServiceNextResponse = CacheCollection; +export interface ProductDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; +} /** Optional parameters. */ -export interface CertificateListByServiceOptionalParams +export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** When set to true, the response contains only certificates entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; + /** Include not tagged Products. */ + includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByService operation. */ -export type CertificateListByServiceResponse = CertificateCollection; +/** Contains response data for the listByTags operation. */ +export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ -export interface CertificateGetEntityTagOptionalParams +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type ProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface CertificateGetOptionalParams +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateGetHeaders & - CertificateContract; +/** Contains response data for the listByTagsNext operation. */ +export type ProductListByTagsNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface CertificateCreateOrUpdateOptionalParams +export interface ProductApiListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & - CertificateContract; - -/** Optional parameters. */ -export interface CertificateDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ProductApiListByProductResponse = ApiCollection; /** Optional parameters. */ -export interface CertificateRefreshSecretOptionalParams +export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the refreshSecret operation. */ -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & - CertificateContract; +/** Contains response data for the checkEntityExists operation. */ +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface CertificateListByServiceNextOptionalParams +export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection; - -/** Optional parameters. */ -export interface PerformConnectivityCheckAsyncOptionalParams - 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 performConnectivityCheckAsync operation. */ -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface ContentTypeListByServiceOptionalParams +export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentTypeListByServiceResponse = ContentTypeCollection; - /** Optional parameters. */ -export interface ContentTypeGetOptionalParams +export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentTypeGetResponse = ContentTypeGetHeaders & - ContentTypeContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiListByProductNextResponse = ApiCollection; /** Optional parameters. */ -export interface ContentTypeCreateOrUpdateOptionalParams +export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & - ContentTypeContract; - -/** Optional parameters. */ -export interface ContentTypeDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ProductGroupListByProductResponse = GroupCollection; /** Optional parameters. */ -export interface ContentTypeListByServiceNextOptionalParams +export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +/** Contains response data for the checkEntityExists operation. */ +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ContentItemListByServiceOptionalParams +export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentItemListByServiceResponse = ContentItemCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupCreateOrUpdateResponse = GroupContract; /** Optional parameters. */ -export interface ContentItemGetEntityTagOptionalParams +export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; - /** Optional parameters. */ -export interface ContentItemGetOptionalParams +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentItemGetResponse = ContentItemGetHeaders & - ContentItemContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupListByProductNextResponse = GroupCollection; /** Optional parameters. */ -export interface ContentItemCreateOrUpdateOptionalParams +export interface ProductSubscriptionsListOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & - ContentItemContract; - -/** Optional parameters. */ -export interface ContentItemDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ContentItemListByServiceNextOptionalParams +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentItemListByServiceNextResponse = ContentItemCollection; +/** Contains response data for the listNext operation. */ +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionOptionalParams +export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface DeletedServicesGetByNameOptionalParams +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +/** Contains response data for the getEntityTag operation. */ +export type ProductPolicyGetEntityTagResponse = + ProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface DeletedServicesPurgeOptionalParams +export interface ProductPolicyGetOptionalParams 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; + /** Policy Export Format. */ + format?: PolicyExportFormat; } +/** Contains response data for the get operation. */ +export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; + /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface ProductPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductPolicyCreateOrUpdateResponse = + ProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiManagementOperationsListOptionalParams +export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementOperationsListResponse = OperationListResult; - /** Optional parameters. */ -export interface ApiManagementOperationsListNextOptionalParams +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult; +/** Contains response data for the listByProductNext operation. */ +export type ProductPolicyListByProductNextResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkus operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +/** Contains response data for the getEntityTag operation. */ +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkusNext operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; +/** Contains response data for the get operation. */ +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceRestoreOptionalParams +export interface ProductWikiCreateOrUpdateOptionalParams 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; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the restore operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; +/** Contains response data for the createOrUpdate operation. */ +export type ProductWikiCreateOrUpdateResponse = + ProductWikiCreateOrUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceBackupOptionalParams - 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; -} +export interface ProductWikiUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the backup operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; +/** Contains response data for the update operation. */ +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceCreateOrUpdateOptionalParams - 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 ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +export interface ProductWikiDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiManagementServiceUpdateOptionalParams +export interface ProductWikisListOptionalParams 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; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the update operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetOptionalParams +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiManagementServiceGetResponse = ApiManagementServiceResource; - -/** Optional parameters. */ -export interface ApiManagementServiceDeleteOptionalParams - 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 listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceMigrateToStv2OptionalParams +export interface ProductApiLinkListByProductOptionalParams 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; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the migrateToStv2 operation. */ -export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; - -/** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; +/** Contains response data for the listByProduct operation. */ +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceListOptionalParams +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementServiceListResponse = ApiManagementServiceListResult; +/** Contains response data for the get operation. */ +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceGetSsoTokenOptionalParams +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSsoToken operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceCheckNameAvailabilityOptionalParams +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; - /** Optional parameters. */ -export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getDomainOwnershipIdentifier operation. */ -export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = ApiManagementServiceGetDomainOwnershipIdentifierResult; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ - parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; - /** 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; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the applyNetworkConfigurationUpdates operation. */ -export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupNextOptionalParams +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; +/** Contains response data for the get operation. */ +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceListNextOptionalParams +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** Optional parameters. */ -export interface DiagnosticListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ProductGroupLinkDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection; +/** Optional parameters. */ +export interface ProductGroupLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface DiagnosticGetEntityTagOptionalParams +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +/** Contains response data for the listByService operation. */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface DiagnosticGetOptionalParams +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +/** Contains response data for the update operation. */ +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface DiagnosticCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface QuotaByPeriodKeysGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +/** Contains response data for the get operation. */ +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; /** Optional parameters. */ -export interface DiagnosticUpdateOptionalParams +export interface QuotaByPeriodKeysUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & - DiagnosticContract; +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; /** Optional parameters. */ -export interface DiagnosticDeleteOptionalParams +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type RegionListByServiceResponse = RegionListResult; + /** Optional parameters. */ -export interface DiagnosticListByServiceNextOptionalParams +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +export type RegionListByServiceNextResponse = RegionListResult; /** Optional parameters. */ -export interface EmailTemplateListByServiceOptionalParams +export interface ReportsListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; - -/** Optional parameters. */ -export interface EmailTemplateGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +/** Contains response data for the listByApi operation. */ +export type ReportsListByApiResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateGetOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByUserOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the get operation. */ -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & - EmailTemplateContract; +/** Contains response data for the listByUser operation. */ +export type ReportsListByUserResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateCreateOrUpdateOptionalParams +export interface ReportsListByOperationOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; +/** Contains response data for the listByOperation operation. */ +export type ReportsListByOperationResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & - EmailTemplateContract; +export interface ReportsListByProductOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Optional parameters. */ -export interface EmailTemplateDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ReportsListByProductResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByGeoOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByServiceNext operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +/** Contains response data for the listByGeo operation. */ +export type ReportsListByGeoResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayListByServiceOptionalParams +export interface ReportsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type GatewayListByServiceResponse = GatewayCollection; +/** Contains response data for the listBySubscription operation. */ +export type ReportsListBySubscriptionResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByTimeOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; +/** Contains response data for the listByTime operation. */ +export type ReportsListByTimeResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} +export interface ReportsListByRequestOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the get operation. */ -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +/** Contains response data for the listByRequest operation. */ +export type ReportsListByRequestResponse = RequestReportCollection; /** Optional parameters. */ -export interface GatewayCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ReportsListByApiNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & - GatewayContract; +/** Contains response data for the listByApiNext operation. */ +export type ReportsListByApiNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayUpdateOptionalParams +export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; +/** Contains response data for the listByUserNext operation. */ +export type ReportsListByUserNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayDeleteOptionalParams +export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByOperationNext operation. */ +export type ReportsListByOperationNextResponse = ReportCollection; + /** Optional parameters. */ -export interface GatewayListKeysOptionalParams +export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type GatewayListKeysResponse = GatewayListKeysHeaders & - GatewayKeysContract; +/** Contains response data for the listByProductNext operation. */ +export type ReportsListByProductNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayRegenerateKeyOptionalParams +export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByGeoNext operation. */ +export type ReportsListByGeoNextResponse = ReportCollection; + /** Optional parameters. */ -export interface GatewayGenerateTokenOptionalParams +export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateToken operation. */ -export type GatewayGenerateTokenResponse = GatewayTokenContract; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ReportsListBySubscriptionNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayListByServiceNextOptionalParams +export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayListByServiceNextResponse = GatewayCollection; +/** Contains response data for the listByTimeNext operation. */ +export type ReportsListByTimeNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceOptionalParams +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9400,91 +12640,92 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams +export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetOptionalParams +export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & - GatewayHostnameConfigurationContract; +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams +export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** 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 GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & - GatewayHostnameConfigurationContract; +export type GlobalSchemaCreateOrUpdateResponse = + GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationDeleteOptionalParams +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GatewayApiListByServiceOptionalParams +export interface TenantSettingsListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Not used */ filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; } /** Contains response data for the listByService operation. */ -export type GatewayApiListByServiceResponse = ApiCollection; +export type TenantSettingsListByServiceResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GatewayApiGetEntityTagOptionalParams +export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type TenantSettingsGetResponse = TenantSettingsGetHeaders & + TenantSettingsContract; /** Optional parameters. */ -export interface GatewayApiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Association entity details. */ - parameters?: AssociationContract; -} +export interface TenantSettingsListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayApiCreateOrUpdateResponse = ApiContract; +/** Contains response data for the listByServiceNext operation. */ +export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GatewayApiDeleteOptionalParams +export interface ApiManagementSkusListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type ApiManagementSkusListResponse = ApiManagementSkusResult; + /** Optional parameters. */ -export interface GatewayApiListByServiceNextOptionalParams +export interface ApiManagementSkusListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the listNext operation. */ +export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceOptionalParams +export interface SubscriptionListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9492,106 +12733,91 @@ export interface GatewayCertificateAuthorityListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; +/** Contains response data for the list operation. */ +export type SubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetEntityTagOptionalParams +export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetOptionalParams +export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & - GatewayCertificateAuthorityContract; +export type SubscriptionGetResponse = SubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams +export interface SubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & - GatewayCertificateAuthorityContract; - -/** Optional parameters. */ -export interface GatewayCertificateAuthorityDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; +export type SubscriptionCreateOrUpdateResponse = + SubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface GroupListByServiceOptionalParams +export interface SubscriptionUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } -/** Contains response data for the listByService operation. */ -export type GroupListByServiceResponse = GroupCollection; +/** Contains response data for the update operation. */ +export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface GroupGetEntityTagOptionalParams +export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; - -/** Optional parameters. */ -export interface GroupGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GroupGetResponse = GroupGetHeaders & GroupContract; - /** Optional parameters. */ -export interface GroupCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & - GroupContract; +export interface SubscriptionRegeneratePrimaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GroupUpdateOptionalParams +export interface SubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; - /** Optional parameters. */ -export interface GroupDeleteOptionalParams +export interface SubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listSecrets operation. */ +export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & + SubscriptionKeysContract; + /** Optional parameters. */ -export interface GroupListByServiceNextOptionalParams +export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GroupListByServiceNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type SubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GroupUserListOptionalParams +export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9599,100 +12825,100 @@ export interface GroupUserListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type GroupUserListResponse = UserCollection; +/** Contains response data for the listByService operation. */ +export type TagResourceListByServiceResponse = TagResourceCollection; /** Optional parameters. */ -export interface GroupUserCheckEntityExistsOptionalParams +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type GroupUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listByServiceNext operation. */ +export type TagResourceListByServiceNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface GroupUserCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type GroupUserCreateResponse = UserContract; +export interface TagApiLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Optional parameters. */ -export interface GroupUserDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type TagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface GroupUserListNextOptionalParams +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GroupUserListNextResponse = UserCollection; +/** Contains response data for the get operation. */ +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; /** Optional parameters. */ -export interface IdentityProviderListByServiceOptionalParams +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList; +/** Contains response data for the createOrUpdate operation. */ +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; /** Optional parameters. */ -export interface IdentityProviderGetEntityTagOptionalParams +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; - /** Optional parameters. */ -export interface IdentityProviderGetOptionalParams +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderGetHeaders & - IdentityProviderContract; +/** Contains response data for the listByProductNext operation. */ +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface IdentityProviderCreateOrUpdateOptionalParams +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & - IdentityProviderContract; +/** Contains response data for the listByProduct operation. */ +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface IdentityProviderUpdateOptionalParams +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & - IdentityProviderContract; +/** Contains response data for the get operation. */ +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface IdentityProviderDeleteOptionalParams +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + /** Optional parameters. */ -export interface IdentityProviderListSecretsOptionalParams +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface IdentityProviderListByServiceNextOptionalParams +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList; +/** Contains response data for the listByProductNext operation. */ +export type TagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface IssueListByServiceOptionalParams +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9700,125 +12926,121 @@ export interface IssueListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type IssueListByServiceResponse = IssueCollection; +/** Contains response data for the listByProduct operation. */ +export type TagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface IssueGetOptionalParams extends coreClient.OperationOptions {} +export interface TagProductLinkGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & + TagProductLinkContract; + +/** Optional parameters. */ +export interface TagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; -/** Contains response data for the get operation. */ -export type IssueGetResponse = IssueGetHeaders & IssueContract; +/** Optional parameters. */ +export interface TagProductLinkDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IssueListByServiceNextOptionalParams +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection; +/** Contains response data for the listByProductNext operation. */ +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface LoggerListByServiceOptionalParams +export interface TenantAccessListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Not used */ filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; } /** Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection; +export type TenantAccessListByServiceResponse = AccessInformationCollection; /** Optional parameters. */ -export interface LoggerGetEntityTagOptionalParams +export interface TenantAccessGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; /** Optional parameters. */ -export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} +export interface TenantAccessGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; +export type TenantAccessGetResponse = TenantAccessGetHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface TenantAccessCreateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & - LoggerContract; +/** Contains response data for the create operation. */ +export type TenantAccessCreateResponse = TenantAccessCreateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerUpdateOptionalParams +export interface TenantAccessUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; +export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface LoggerDeleteOptionalParams +export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LoggerListByServiceNextOptionalParams +export interface TenantAccessRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection; - /** Optional parameters. */ -export interface NamedValueListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** When set to true, the response contains only named value entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; -} +export interface TenantAccessListSecretsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type NamedValueListByServiceResponse = NamedValueCollection; +/** Contains response data for the listSecrets operation. */ +export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & + AccessInformationSecretsContract; /** Optional parameters. */ -export interface NamedValueGetEntityTagOptionalParams +export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type TenantAccessListByServiceNextResponse = AccessInformationCollection; /** Optional parameters. */ -export interface NamedValueGetOptionalParams +export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; +/** Optional parameters. */ +export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NamedValueCreateOrUpdateOptionalParams +export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; /** 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 NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & - NamedValueContract; +/** Contains response data for the deploy operation. */ +export type TenantConfigurationDeployResponse = OperationResultContract; /** Optional parameters. */ -export interface NamedValueUpdateOptionalParams +export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9826,24 +13048,11 @@ export interface NamedValueUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type NamedValueUpdateResponse = NamedValueUpdateHeaders & - NamedValueContract; - -/** Optional parameters. */ -export interface NamedValueDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface NamedValueListValueOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listValue operation. */ -export type NamedValueListValueResponse = NamedValueListValueHeaders & - NamedValueSecretContract; +/** Contains response data for the save operation. */ +export type TenantConfigurationSaveResponse = OperationResultContract; /** Optional parameters. */ -export interface NamedValueRefreshSecretOptionalParams +export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9851,125 +13060,178 @@ export interface NamedValueRefreshSecretOptionalParams resumeFrom?: string; } -/** Contains response data for the refreshSecret operation. */ -export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & - NamedValueContract; - -/** Optional parameters. */ -export interface NamedValueListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type NamedValueListByServiceNextResponse = NamedValueCollection; - -/** Optional parameters. */ -export interface NetworkStatusListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; +/** Contains response data for the validate operation. */ +export type TenantConfigurationValidateResponse = OperationResultContract; /** Optional parameters. */ -export interface NetworkStatusListByLocationOptionalParams +export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type NetworkStatusListByLocationResponse = NetworkStatusContract; +/** Contains response data for the getSyncState operation. */ +export type TenantConfigurationGetSyncStateResponse = + TenantConfigurationSyncStateContract; /** Optional parameters. */ -export interface NotificationListByServiceOptionalParams +export interface UserListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Detailed Group in response. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type NotificationListByServiceResponse = NotificationCollection; +export type UserListByServiceResponse = UserCollection; /** Optional parameters. */ -export interface NotificationGetOptionalParams +export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type UserGetEntityTagResponse = UserGetEntityTagHeaders; + +/** Optional parameters. */ +export interface UserGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type NotificationGetResponse = NotificationContract; +export type UserGetResponse = UserGetHeaders & UserContract; /** Optional parameters. */ -export interface NotificationCreateOrUpdateOptionalParams +export interface UserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Send an Email notification to the User. */ + notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type NotificationCreateOrUpdateResponse = NotificationContract; +export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & + UserContract; /** Optional parameters. */ -export interface NotificationListByServiceNextOptionalParams +export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type UserUpdateResponse = UserUpdateHeaders & UserContract; + +/** Optional parameters. */ +export interface UserDeleteOptionalParams extends coreClient.OperationOptions { + /** Whether to delete user's subscription or not. */ + deleteSubscriptions?: boolean; + /** Send an Account Closed Email notification to the User. */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; + /** 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 delete operation. */ +export type UserDeleteResponse = UserDeleteHeaders; + +/** Optional parameters. */ +export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type NotificationListByServiceNextResponse = NotificationCollection; +/** Contains response data for the generateSsoUrl operation. */ +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; /** Optional parameters. */ -export interface NotificationRecipientUserListByNotificationOptionalParams +export interface UserGetSharedAccessTokenOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; +/** Contains response data for the getSharedAccessToken operation. */ +export type UserGetSharedAccessTokenResponse = UserTokenResult; /** Optional parameters. */ -export interface NotificationRecipientUserCheckEntityExistsOptionalParams +export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listByServiceNext operation. */ +export type UserListByServiceNextResponse = UserCollection; /** Optional parameters. */ -export interface NotificationRecipientUserCreateOrUpdateOptionalParams +export interface UserGroupListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type UserGroupListResponse = GroupCollection; + +/** Optional parameters. */ +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; +/** Contains response data for the listNext operation. */ +export type UserGroupListNextResponse = GroupCollection; /** Optional parameters. */ -export interface NotificationRecipientUserDeleteOptionalParams +export interface UserSubscriptionListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type UserSubscriptionListResponse = SubscriptionCollection; + +/** Optional parameters. */ +export interface UserSubscriptionGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & + SubscriptionContract; + /** Optional parameters. */ -export interface NotificationRecipientEmailListByNotificationOptionalParams +export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; +/** Contains response data for the listNext operation. */ +export type UserSubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailCheckEntityExistsOptionalParams +export interface UserIdentitiesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientEmailCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the list operation. */ +export type UserIdentitiesListResponse = UserIdentityCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailCreateOrUpdateOptionalParams +export interface UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; +/** Contains response data for the listNext operation. */ +export type UserIdentitiesListNextResponse = UserIdentityCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface UserConfirmationPasswordSendOptionalParams + extends coreClient.OperationOptions { + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceOptionalParams +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9978,152 +13240,134 @@ export interface OpenIdConnectProviderListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; +export type WorkspaceListByServiceResponse = WorkspaceCollection; /** Optional parameters. */ -export interface OpenIdConnectProviderGetEntityTagOptionalParams +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; /** Optional parameters. */ -export interface OpenIdConnectProviderGetOptionalParams +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & - OpenidConnectProviderContract; +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & - OpenidConnectProviderContract; +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderUpdateOptionalParams +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & - OpenidConnectProviderContract; - -/** Optional parameters. */ -export interface OpenIdConnectProviderDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderListSecretsOptionalParams +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceNextOptionalParams +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; - -/** Optional parameters. */ -export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; /** Optional parameters. */ -export interface PolicyListByServiceOptionalParams +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyListByServiceResponse = PolicyCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspacePolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyGetEntityTagOptionalParams +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +export type WorkspacePolicyGetEntityTagResponse = + WorkspacePolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyGetOptionalParams + extends coreClient.OperationOptions { /** Policy Export Format. */ format?: PolicyExportFormat; } /** Contains response data for the get operation. */ -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface PolicyCreateOrUpdateOptionalParams +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspacePolicyCreateOrUpdateResponse = + WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface PolicyDeleteOptionalParams +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyDescriptionListByServiceOptionalParams - extends coreClient.OperationOptions { - /** Policy scope. */ - scope?: PolicyScopeContract; -} +export interface WorkspacePolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +/** Contains response data for the listByApiNext operation. */ +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyFragmentListByServiceOptionalParams +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Query parameter to fetch named value entities based on refresh status. */ + isKeyVaultRefreshFailed?: KeyVaultRefreshState; } /** Contains response data for the listByService operation. */ -export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface PolicyFragmentGetEntityTagOptionalParams +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; +export type WorkspaceNamedValueGetEntityTagResponse = + WorkspaceNamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyFragmentGetOptionalParams - extends coreClient.OperationOptions { - /** Policy fragment content format. */ - format?: PolicyFragmentContentFormat; -} +export interface WorkspaceNamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & - PolicyFragmentContract; +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; @@ -10134,73 +13378,58 @@ export interface PolicyFragmentCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & - PolicyFragmentContract; - -/** Optional parameters. */ -export interface PolicyFragmentDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceNamedValueCreateOrUpdateResponse = + WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentListReferencesOptionalParams +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** 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 listReferences operation. */ -export type PolicyFragmentListReferencesResponse = ResourceCollection; - -/** Optional parameters. */ -export interface PortalConfigListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type PortalConfigListByServiceResponse = PortalConfigCollection; +/** Contains response data for the update operation. */ +export type WorkspaceNamedValueUpdateResponse = + WorkspaceNamedValueUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigGetEntityTagOptionalParams +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; - /** Optional parameters. */ -export interface PortalConfigGetOptionalParams +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PortalConfigGetResponse = PortalConfigGetHeaders & - PortalConfigContract; +/** Contains response data for the listValue operation. */ +export type WorkspaceNamedValueListValueResponse = + WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; /** Optional parameters. */ -export interface PortalConfigUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNamedValueRefreshSecretOptionalParams + 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 update operation. */ -export type PortalConfigUpdateResponse = PortalConfigContract; +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceNamedValueRefreshSecretResponse = + WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface PortalRevisionListByServiceOptionalParams +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** - * | Field | Supported operators | Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |isCurrent | eq, ne | | - * - */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10209,26 +13438,29 @@ export interface PortalRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalRevisionGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = + WorkspaceGlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalRevisionGetOptionalParams +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; /** 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. */ @@ -10236,269 +13468,195 @@ export interface PortalRevisionCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = + WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionUpdateOptionalParams - 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 update operation. */ -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & - PortalRevisionContract; +export interface WorkspaceGlobalSchemaDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PortalRevisionListByServiceNextOptionalParams +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceNextResponse = + GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalSettingsListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNotificationListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} /** Contains response data for the listByService operation. */ -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; - -/** Optional parameters. */ -export interface SignInSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface SignInSettingsGetOptionalParams +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & - PortalSigninSettings; - -/** Optional parameters. */ -export interface SignInSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceNotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface SignInSettingsCreateOrUpdateOptionalParams +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; - -/** Optional parameters. */ -export interface SignUpSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; - -/** Optional parameters. */ -export interface SignUpSettingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & - PortalSignupSettings; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface SignUpSettingsUpdateOptionalParams +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SignUpSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNotificationListByServiceNextResponse = + NotificationCollection; /** Optional parameters. */ -export interface DelegationSettingsGetEntityTagOptionalParams +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; /** Optional parameters. */ -export interface DelegationSettingsGetOptionalParams +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & - PortalDelegationSettings; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface DelegationSettingsUpdateOptionalParams +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface DelegationSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - /** Contains response data for the createOrUpdate operation. */ -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface DelegationSettingsListSecretsOptionalParams +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; - /** Optional parameters. */ -export interface PrivateEndpointConnectionListByServiceOptionalParams +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetByNameOptionalParams +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams - 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 PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionDeleteOptionalParams - 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 checkEntityExists operation. */ +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPrivateLinkResources operation. */ -export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getPrivateLinkResource operation. */ -export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; - /** Optional parameters. */ -export interface ProductListByServiceOptionalParams +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Products which are part of a specific tag. */ - tags?: string; - /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ - expandGroups?: boolean; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ProductListByServiceResponse = ProductCollection; +export type WorkspacePolicyFragmentListByServiceResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductGetEntityTagOptionalParams +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; +export type WorkspacePolicyFragmentGetEntityTagResponse = + WorkspacePolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspacePolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ProductGetResponse = ProductGetHeaders & ProductContract; +export type WorkspacePolicyFragmentGetResponse = + WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductCreateOrUpdateOptionalParams +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** 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 ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & - ProductContract; +export type WorkspacePolicyFragmentCreateOrUpdateResponse = + WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductUpdateOptionalParams +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; - -/** Optional parameters. */ -export interface ProductDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delete existing subscriptions associated with the product or not. */ - deleteSubscriptions?: boolean; -} - /** Optional parameters. */ -export interface ProductListByTagsOptionalParams +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Products. */ - includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ProductListByTagsResponse = TagResourceCollection; +/** Contains response data for the listReferences operation. */ +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ProductListByServiceNextOptionalParams +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ProductListByServiceNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ProductListByTagsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByTagsNext operation. */ -export type ProductListByTagsNextResponse = TagResourceCollection; +export type WorkspacePolicyFragmentListByServiceNextResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductApiListByProductOptionalParams +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10506,40 +13664,59 @@ export interface ProductApiListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductApiListByProductResponse = ApiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceGroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ProductApiCheckEntityExistsOptionalParams +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type ProductApiCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceGroupGetEntityTagResponse = + WorkspaceGroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductApiCreateOrUpdateOptionalParams +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & + GroupContract; + +/** Optional parameters. */ +export interface WorkspaceGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ProductApiCreateOrUpdateResponse = ApiContract; +export type WorkspaceGroupCreateOrUpdateResponse = + WorkspaceGroupCreateOrUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ProductApiDeleteOptionalParams +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & + GroupContract; + /** Optional parameters. */ -export interface ProductApiListByProductNextOptionalParams +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductApiListByProductNextResponse = ApiCollection; +/** Optional parameters. */ +export interface WorkspaceGroupListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ProductGroupListByProductOptionalParams +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10547,38 +13724,38 @@ export interface ProductGroupListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductGroupListByProductResponse = GroupCollection; +/** Contains response data for the list operation. */ +export type WorkspaceGroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface ProductGroupCheckEntityExistsOptionalParams +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkEntityExists operation. */ -export type ProductGroupCheckEntityExistsResponse = { +export type WorkspaceGroupUserCheckEntityExistsResponse = { body: boolean; }; /** Optional parameters. */ -export interface ProductGroupCreateOrUpdateOptionalParams +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ProductGroupCreateOrUpdateResponse = GroupContract; +/** Contains response data for the create operation. */ +export type WorkspaceGroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ProductGroupDeleteOptionalParams +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductGroupListByProductNextOptionalParams +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductGroupListByProductNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type WorkspaceGroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ProductSubscriptionsListOptionalParams +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; @@ -10589,94 +13766,91 @@ export interface ProductSubscriptionsListOptionalParams } /** Contains response data for the list operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductSubscriptionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductPolicyListByProductOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByProduct operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ProductPolicyGetEntityTagOptionalParams +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +export type WorkspaceSubscriptionGetEntityTagResponse = + WorkspaceSubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface WorkspaceSubscriptionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyCreateOrUpdateOptionalParams +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspaceSubscriptionCreateOrUpdateResponse = + WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} + +/** Contains response data for the update operation. */ +export type WorkspaceSubscriptionUpdateResponse = + WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductWikiGetEntityTagOptionalParams +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; - /** Optional parameters. */ -export interface ProductWikiGetOptionalParams +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; - /** Optional parameters. */ -export interface ProductWikiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & - WikiContract; +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductWikiUpdateOptionalParams +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; +/** Contains response data for the listSecrets operation. */ +export type WorkspaceSubscriptionListSecretsResponse = + WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; /** Optional parameters. */ -export interface ProductWikiDeleteOptionalParams +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + /** Optional parameters. */ -export interface ProductWikisListOptionalParams +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10684,314 +13858,372 @@ export interface ProductWikisListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; - -/** Optional parameters. */ -export interface ProductWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductWikisListNextResponse = ProductWikisListNextHeaders & - WikiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiVersionSetListByServiceResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface QuotaByCounterKeysListByServiceOptionalParams +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiVersionSetGetEntityTagResponse = + WorkspaceApiVersionSetGetEntityTagHeaders; /** Optional parameters. */ -export interface QuotaByCounterKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiVersionSetGetResponse = + WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the get operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiVersionSetCreateOrUpdateResponse = + WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; +export type WorkspaceApiVersionSetUpdateResponse = + WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface RegionListByServiceOptionalParams +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type RegionListByServiceResponse = RegionListResult; - /** Optional parameters. */ -export interface RegionListByServiceNextOptionalParams +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type RegionListByServiceNextResponse = RegionListResult; +export type WorkspaceApiVersionSetListByServiceNextResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface ReportsListByApiOptionalParams +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; } -/** Contains response data for the listByApi operation. */ -export type ReportsListByApiResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByUserOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByUser operation. */ -export type ReportsListByUserResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type ReportsListByOperationResponse = ReportCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; /** Optional parameters. */ -export interface ReportsListByProductOptionalParams +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** 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 listByProduct operation. */ -export type ReportsListByProductResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiCreateOrUpdateResponse = + WorkspaceApiCreateOrUpdateHeaders & ApiContract; /** Optional parameters. */ -export interface ReportsListByGeoOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface WorkspaceApiUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByGeo operation. */ -export type ReportsListByGeoResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & + ApiContract; /** Optional parameters. */ -export interface ReportsListBySubscriptionOptionalParams +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; } -/** Contains response data for the listBySubscription operation. */ -export type ReportsListBySubscriptionResponse = ReportCollection; +/** Optional parameters. */ +export interface WorkspaceApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByTimeOptionalParams +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; } -/** Contains response data for the listByTime operation. */ -export type ReportsListByTimeResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; /** Optional parameters. */ -export interface ReportsListByRequestOptionalParams +export interface WorkspaceApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiRevisionListByServiceNextResponse = + ApiRevisionCollection; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; } -/** Contains response data for the listByRequest operation. */ -export type ReportsListByRequestResponse = RequestReportCollection; - -/** Optional parameters. */ -export interface ReportsListByApiNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApiNext operation. */ -export type ReportsListByApiNextResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; /** Optional parameters. */ -export interface ReportsListByUserNextOptionalParams +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByUserNext operation. */ -export type ReportsListByUserNextResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiReleaseGetEntityTagResponse = + WorkspaceApiReleaseGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationNextOptionalParams +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperationNext operation. */ -export type ReportsListByOperationNextResponse = ReportCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & + ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListByProductNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listByProductNext operation. */ -export type ReportsListByProductNextResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiReleaseCreateOrUpdateResponse = + WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListByGeoNextOptionalParams +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByGeoNext operation. */ -export type ReportsListByGeoNextResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiReleaseUpdateResponse = + WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListBySubscriptionNextOptionalParams +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type ReportsListBySubscriptionNextResponse = ReportCollection; - /** Optional parameters. */ -export interface ReportsListByTimeNextOptionalParams +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTimeNext operation. */ -export type ReportsListByTimeNextResponse = ReportCollection; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; /** Optional parameters. */ -export interface GlobalSchemaListByServiceOptionalParams +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Include tags in the response. */ + tags?: string; } -/** Contains response data for the listByService operation. */ -export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiOperationListByApiResponse = OperationCollection; /** Optional parameters. */ -export interface GlobalSchemaGetEntityTagOptionalParams +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; +export type WorkspaceApiOperationGetEntityTagResponse = + WorkspaceApiOperationGetEntityTagHeaders; /** Optional parameters. */ -export interface GlobalSchemaGetOptionalParams +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & - GlobalSchemaContract; +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & + OperationContract; /** Optional parameters. */ -export interface GlobalSchemaCreateOrUpdateOptionalParams +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** 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 GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & - GlobalSchemaContract; +export type WorkspaceApiOperationCreateOrUpdateResponse = + WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; /** Optional parameters. */ -export interface GlobalSchemaDeleteOptionalParams +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceApiOperationUpdateResponse = + WorkspaceApiOperationUpdateHeaders & OperationContract; + /** Optional parameters. */ -export interface GlobalSchemaListByServiceNextOptionalParams +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; +/** Optional parameters. */ +export interface WorkspaceApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; /** Optional parameters. */ -export interface TenantSettingsListByServiceOptionalParams +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type WorkspaceApiOperationPolicyListByOperationResponse = + PolicyCollection; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiOperationPolicyGetEntityTagResponse = + WorkspaceApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Not used */ - filter?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the listByService operation. */ -export type TenantSettingsListByServiceResponse = TenantSettingsCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiOperationPolicyGetResponse = + WorkspaceApiOperationPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantSettingsGetOptionalParams +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = + WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantSettingsGetResponse = TenantSettingsGetHeaders & - TenantSettingsContract; +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type WorkspaceApiOperationPolicyListByOperationNextResponse = + PolicyCollection; /** Optional parameters. */ -export interface TenantSettingsListByServiceNextOptionalParams +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementSkusListOptionalParams +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementSkusListResponse = ApiManagementSkusResult; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiPolicyGetEntityTagResponse = + WorkspaceApiPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementSkusListNextOptionalParams +export interface WorkspaceApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiPolicyCreateOrUpdateResponse = + WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; +/** Optional parameters. */ +export interface WorkspaceApiPolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface SubscriptionListOptionalParams +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10999,306 +14231,313 @@ export interface SubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type SubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; /** Optional parameters. */ -export interface SubscriptionGetEntityTagOptionalParams +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; +export type WorkspaceApiSchemaGetEntityTagResponse = + WorkspaceApiSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface SubscriptionGetOptionalParams +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SubscriptionGetResponse = SubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & + SchemaContract; /** Optional parameters. */ -export interface SubscriptionCreateOrUpdateOptionalParams +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** 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 SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaCreateOrUpdateResponse = + WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; /** Optional parameters. */ -export interface SubscriptionUpdateOptionalParams +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** If true removes all references to the schema before deleting it. */ + force?: boolean; } -/** Contains response data for the update operation. */ -export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & - SubscriptionContract; - /** Optional parameters. */ -export interface SubscriptionDeleteOptionalParams +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface WorkspaceProductListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type WorkspaceProductListByServiceResponse = ProductCollection; + /** Optional parameters. */ -export interface SubscriptionRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductGetEntityTagResponse = + WorkspaceProductGetEntityTagHeaders; + /** Optional parameters. */ -export interface SubscriptionRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & + ProductContract; + /** Optional parameters. */ -export interface SubscriptionListSecretsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listSecrets operation. */ -export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & - SubscriptionKeysContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductCreateOrUpdateResponse = + WorkspaceProductCreateOrUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface SubscriptionListNextOptionalParams +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the update operation. */ +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface TagResourceListByServiceOptionalParams +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; } -/** Contains response data for the listByService operation. */ -export type TagResourceListByServiceResponse = TagResourceCollection; - /** Optional parameters. */ -export interface TagResourceListByServiceNextOptionalParams +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagResourceListByServiceNextResponse = TagResourceCollection; +export type WorkspaceProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface TenantAccessListByServiceOptionalParams +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Not used */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the listByService operation. */ -export type TenantAccessListByServiceResponse = AccessInformationCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductApiLinkListByProductResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessGetEntityTagOptionalParams +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type WorkspaceProductApiLinkGetResponse = + WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessGetOptionalParams +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantAccessGetResponse = TenantAccessGetHeaders & - AccessInformationContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductApiLinkCreateOrUpdateResponse = + ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessCreateOptionalParams +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type TenantAccessCreateResponse = TenantAccessCreateHeaders & - AccessInformationContract; - /** Optional parameters. */ -export interface TenantAccessUpdateOptionalParams +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & - AccessInformationContract; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductApiLinkListByProductNextResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegeneratePrimaryKeyOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductGroupLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductGroupLinkListByProductResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGroupLinkGetResponse = + WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + /** Optional parameters. */ -export interface TenantAccessListSecretsOptionalParams +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & - AccessInformationSecretsContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = + ProductGroupLinkContract; /** Optional parameters. */ -export interface TenantAccessListByServiceNextOptionalParams +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantAccessListByServiceNextResponse = AccessInformationCollection; - /** Optional parameters. */ -export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; + /** Optional parameters. */ -export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + /** Optional parameters. */ -export interface TenantConfigurationDeployOptionalParams - 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; -} +export interface WorkspaceProductPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the deploy operation. */ -export type TenantConfigurationDeployResponse = OperationResultContract; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductPolicyGetEntityTagResponse = + WorkspaceProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TenantConfigurationSaveOptionalParams +export interface WorkspaceProductPolicyGetOptionalParams 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; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the save operation. */ -export type TenantConfigurationSaveResponse = OperationResultContract; +/** Contains response data for the get operation. */ +export type WorkspaceProductPolicyGetResponse = + WorkspaceProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationValidateOptionalParams +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams 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; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the validate operation. */ -export type TenantConfigurationValidateResponse = OperationResultContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductPolicyCreateOrUpdateResponse = + WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationGetSyncStateOptionalParams +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSyncState operation. */ -export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; - /** Optional parameters. */ -export interface UserListByServiceOptionalParams +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Detailed Group in response. */ - expandGroups?: boolean; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; } /** Contains response data for the listByService operation. */ -export type UserListByServiceResponse = UserCollection; +export type WorkspaceTagListByServiceResponse = TagCollection; /** Optional parameters. */ -export interface UserGetEntityTagOptionalParams +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type UserGetEntityTagResponse = UserGetEntityTagHeaders; +/** Contains response data for the getEntityState operation. */ +export type WorkspaceTagGetEntityStateResponse = + WorkspaceTagGetEntityStateHeaders; /** Optional parameters. */ -export interface UserGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceTagGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserGetResponse = UserGetHeaders & UserContract; +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; /** Optional parameters. */ -export interface UserCreateOrUpdateOptionalParams +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Send an Email notification to the User. */ - notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & - UserContract; - -/** Optional parameters. */ -export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type UserUpdateResponse = UserUpdateHeaders & UserContract; - -/** Optional parameters. */ -export interface UserDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether to delete user's subscription or not. */ - deleteSubscriptions?: boolean; - /** Send an Account Closed Email notification to the User. */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +export type WorkspaceTagCreateOrUpdateResponse = + WorkspaceTagCreateOrUpdateHeaders & TagContract; /** Optional parameters. */ -export interface UserGenerateSsoUrlOptionalParams +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUrl operation. */ -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +/** Contains response data for the update operation. */ +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserGetSharedAccessTokenOptionalParams +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSharedAccessToken operation. */ -export type UserGetSharedAccessTokenResponse = UserTokenResult; - /** Optional parameters. */ -export interface UserListByServiceNextOptionalParams +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type UserListByServiceNextResponse = UserCollection; +export type WorkspaceTagListByServiceNextResponse = TagCollection; /** Optional parameters. */ -export interface UserGroupListOptionalParams +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11306,20 +14545,39 @@ export interface UserGroupListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserGroupListResponse = GroupCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface UserGroupListNextOptionalParams +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserGroupListNextResponse = GroupCollection; +/** Contains response data for the get operation. */ +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & + TagApiLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListOptionalParams +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11327,49 +14585,42 @@ export interface UserSubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserSubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagOperationLinkListByProductResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface UserSubscriptionGetOptionalParams +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceTagOperationLinkGetResponse = + WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListNextOptionalParams +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserSubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = + TagOperationLinkContract; /** Optional parameters. */ -export interface UserIdentitiesListOptionalParams +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UserIdentitiesListResponse = UserIdentityCollection; - /** Optional parameters. */ -export interface UserIdentitiesListNextOptionalParams +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserIdentitiesListNextResponse = UserIdentityCollection; - -/** Optional parameters. */ -export interface UserConfirmationPasswordSendOptionalParams - extends coreClient.OperationOptions { - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface DocumentationListByServiceOptionalParams +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11377,53 +14628,44 @@ export interface DocumentationListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DocumentationListByServiceResponse = DocumentationCollection; - -/** Optional parameters. */ -export interface DocumentationGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagProductLinkListByProductResponse = + TagProductLinkCollection; /** Optional parameters. */ -export interface DocumentationGetOptionalParams +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DocumentationGetResponse = DocumentationGetHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkGetResponse = + WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkCreateOrUpdateResponse = + TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationUpdateOptionalParams +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DocumentationUpdateResponse = DocumentationUpdateHeaders & - DocumentationContract; - /** Optional parameters. */ -export interface DocumentationDeleteOptionalParams +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagProductLinkListByProductNextResponse = + TagProductLinkCollection; + /** Optional parameters. */ -export interface DocumentationListByServiceNextOptionalParams +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DocumentationListByServiceNextResponse = DocumentationCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiExportGetResponse = ApiExportResult; /** Optional parameters. */ export interface ApiManagementClientOptionalParams diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 8234e98b768a..e59df9472a30 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -8,971 +8,1429 @@ import * as coreClient from "@azure/core-client"; -export const ApiCollection: coreClient.CompositeMapper = { - serializedName: "ApiCollection", +export const AllPoliciesCollection: coreClient.CompositeMapper = { + serializedName: "AllPoliciesCollection", type: { name: "Composite", - className: "ApiCollection", + className: "AllPoliciesCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "ApiContract", + xmlElementName: "AllPoliciesContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "AllPoliciesContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractDetails", +export const Resource: coreClient.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "ApiVersionSetContractDetails", + className: "Resource", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", + readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "error.code", + xmlName: "error.code", type: { - name: "String" - } + name: "String", + }, }, - versionQueryName: { - serializedName: "versionQueryName", - xmlName: "versionQueryName", + message: { + serializedName: "error.message", + xmlName: "error.message", type: { - name: "String" - } + name: "String", + }, }, - versionHeaderName: { - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", + details: { + serializedName: "error.details", + xmlName: "error.details", + xmlElementName: "ErrorFieldContract", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, + }, + }, + }, }; -export const ApiEntityBaseContract: coreClient.CompositeMapper = { - serializedName: "ApiEntityBaseContract", +export const ErrorResponseBody: coreClient.CompositeMapper = { + serializedName: "ErrorResponseBody", type: { name: "Composite", - className: "ApiEntityBaseContract", + className: "ErrorResponseBody", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, - authenticationSettings: { - serializedName: "authenticationSettings", - xmlName: "authenticationSettings", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "String", + }, }, - subscriptionKeyParameterNames: { - serializedName: "subscriptionKeyParameterNames", - xmlName: "subscriptionKeyParameterNames", + details: { + serializedName: "details", + xmlName: "details", + xmlElementName: "ErrorFieldContract", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, }, - apiType: { - serializedName: "type", - xmlName: "type", + }, + }, +}; + +export const ErrorFieldContract: coreClient.CompositeMapper = { + serializedName: "ErrorFieldContract", + type: { + name: "Composite", + className: "ErrorFieldContract", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "apiRevision", - xmlName: "apiRevision", - type: { - name: "String" - } }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "apiVersion", - xmlName: "apiVersion", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "String" - } + name: "String", + }, }, - isCurrent: { - serializedName: "isCurrent", - xmlName: "isCurrent", + target: { + serializedName: "target", + xmlName: "target", type: { - name: "Boolean" - } + name: "String", + }, }, - isOnline: { - serializedName: "isOnline", + }, + }, +}; + +export const ApiManagementGatewayBaseProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayBaseProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayBaseProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", readOnly: true, - xmlName: "isOnline", - type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "apiRevisionDescription", - xmlName: "apiRevisionDescription", + xmlName: "provisioningState", type: { - name: "String" - } - }, - apiVersionDescription: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "apiVersionDescription", - xmlName: "apiVersionDescription", - type: { - name: "String" - } }, - apiVersionSetId: { - serializedName: "apiVersionSetId", - xmlName: "apiVersionSetId", + targetProvisioningState: { + serializedName: "targetProvisioningState", + readOnly: true, + xmlName: "targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "subscriptionRequired", - xmlName: "subscriptionRequired", + createdAtUtc: { + serializedName: "createdAtUtc", + readOnly: true, + xmlName: "createdAtUtc", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - termsOfServiceUrl: { - serializedName: "termsOfServiceUrl", - xmlName: "termsOfServiceUrl", + frontend: { + serializedName: "frontend", + xmlName: "frontend", type: { - name: "String" - } + name: "Composite", + className: "FrontendConfiguration", + }, }, - contact: { - serializedName: "contact", - xmlName: "contact", + backend: { + serializedName: "backend", + xmlName: "backend", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "BackendConfiguration", + }, }, - license: { - serializedName: "license", - xmlName: "license", + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", type: { name: "Composite", - className: "ApiLicenseInformation" - } - } - } - } + className: "GatewayConfigurationApi", + }, + }, + }, + }, }; -export const AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "AuthenticationSettingsContract", +export const FrontendConfiguration: coreClient.CompositeMapper = { + serializedName: "FrontendConfiguration", type: { name: "Composite", - className: "AuthenticationSettingsContract", + className: "FrontendConfiguration", modelProperties: { - oAuth2: { - serializedName: "oAuth2", - xmlName: "oAuth2", - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - }, - openid: { - serializedName: "openid", - xmlName: "openid", - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - }, - oAuth2AuthenticationSettings: { - serializedName: "oAuth2AuthenticationSettings", - xmlName: "oAuth2AuthenticationSettings", - xmlElementName: "OAuth2AuthenticationSettingsContract", + defaultHostname: { + serializedName: "defaultHostname", + readOnly: true, + xmlName: "defaultHostname", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - } - } + name: "String", + }, }, - openidAuthenticationSettings: { - serializedName: "openidAuthenticationSettings", - xmlName: "openidAuthenticationSettings", - xmlElementName: "OpenIdAuthenticationSettingsContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - } - } - } - } - } + }, + }, }; -export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OAuth2AuthenticationSettingsContract", +export const BackendConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendConfiguration", type: { name: "Composite", - className: "OAuth2AuthenticationSettingsContract", + className: "BackendConfiguration", modelProperties: { - authorizationServerId: { - serializedName: "authorizationServerId", - xmlName: "authorizationServerId", + subnet: { + serializedName: "subnet", + xmlName: "subnet", type: { - name: "String" - } + name: "Composite", + className: "BackendSubnetConfiguration", + }, }, - scope: { - serializedName: "scope", - xmlName: "scope", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OpenIdAuthenticationSettingsContract", +export const BackendSubnetConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendSubnetConfiguration", type: { name: "Composite", - className: "OpenIdAuthenticationSettingsContract", + className: "BackendSubnetConfiguration", modelProperties: { - openidProviderId: { - serializedName: "openidProviderId", - xmlName: "openidProviderId", + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionKeyParameterNamesContract", +export const GatewayConfigurationApi: coreClient.CompositeMapper = { + serializedName: "GatewayConfigurationApi", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract", + className: "GatewayConfigurationApi", modelProperties: { - header: { - serializedName: "header", - xmlName: "header", + hostname: { + serializedName: "hostname", + readOnly: true, + xmlName: "hostname", type: { - name: "String" - } + name: "String", + }, }, - query: { - serializedName: "query", - xmlName: "query", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContactInformation: coreClient.CompositeMapper = { - serializedName: "ApiContactInformation", +export const ApiManagementGatewaySkuProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewaySkuProperties", type: { name: "Composite", - className: "ApiContactInformation", + className: "ApiManagementGatewaySkuProperties", modelProperties: { name: { serializedName: "name", + required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + capacity: { + serializedName: "capacity", + required: true, + xmlName: "capacity", type: { - name: "String" - } + name: "Number", + }, }, - email: { - serializedName: "email", - xmlName: "email", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiLicenseInformation: coreClient.CompositeMapper = { - serializedName: "ApiLicenseInformation", +export const SystemData: coreClient.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "ApiLicenseInformation", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - xmlName: "name", + createdBy: { + serializedName: "createdBy", + xmlName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + createdByType: { + serializedName: "createdByType", + xmlName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + xmlName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + xmlName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + xmlName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + xmlName: "lastModifiedAt", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const Resource: coreClient.CompositeMapper = { - serializedName: "Resource", +export const ApimResource: coreClient.CompositeMapper = { + serializedName: "ApimResource", type: { name: "Composite", - className: "Resource", + className: "ApimResource", modelProperties: { id: { serializedName: "id", readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + tags: { + serializedName: "tags", + xmlName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, }; -export const ErrorResponse: coreClient.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ErrorResponseAutoGenerated", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorResponseAutoGenerated", modelProperties: { - code: { - serializedName: "error.code", - xmlName: "error.code", - type: { - name: "String" - } - }, - message: { - serializedName: "error.message", - xmlName: "error.message", + error: { + serializedName: "error", + xmlName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorDetail", + }, }, - details: { - serializedName: "error.details", - xmlName: "error.details", - xmlElementName: "ErrorFieldContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + }, + }, }; -export const ErrorResponseBody: coreClient.CompositeMapper = { - serializedName: "ErrorResponseBody", +export const ErrorDetail: coreClient.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "ErrorResponseBody", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", + readOnly: true, xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", + readOnly: true, xmlName: "message", type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + xmlName: "target", + type: { + name: "String", + }, }, details: { serializedName: "details", + readOnly: true, xmlName: "details", - xmlElementName: "ErrorFieldContract", + xmlElementName: "ErrorDetail", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + xmlName: "additionalInfo", + xmlElementName: "ErrorAdditionalInfo", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; -export const ErrorFieldContract: coreClient.CompositeMapper = { - serializedName: "ErrorFieldContract", +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "ErrorFieldContract", + className: "ErrorAdditionalInfo", modelProperties: { - code: { - serializedName: "code", - xmlName: "code", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", + info: { + serializedName: "info", + readOnly: true, + xmlName: "info", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - target: { - serializedName: "target", - xmlName: "target", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ApiManagementGatewaySkuPropertiesForPatch: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewaySkuPropertiesForPatch", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + xmlName: "capacity", + type: { + name: "Number", + }, + }, + }, + }, + }; -export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateParameter", +export const ApiManagementGatewayListResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayListResult", type: { name: "Composite", - className: "ApiCreateOrUpdateParameter", + className: "ApiManagementGatewayListResult", modelProperties: { - description: { - serializedName: "properties.description", - xmlName: "properties.description", + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementGatewayResource", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementGatewayResource", + }, + }, + }, }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "String", + }, }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + }, + }, +}; + +export const ApiCollection: coreClient.CompositeMapper = { + serializedName: "ApiCollection", + type: { + name: "Composite", + className: "ApiCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ApiContract", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiContract", + }, + }, + }, }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Number", }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", - type: { - name: "String" - } }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + }, + }, +}; + +export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractDetails", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", type: { - name: "Boolean" - } + name: "String", + }, }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + versionQueryName: { + serializedName: "versionQueryName", + xmlName: "versionQueryName", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + versionHeaderName: { + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + }, + }, +}; + +export const ApiEntityBaseContract: coreClient.CompositeMapper = { + serializedName: "ApiEntityBaseContract", + type: { + name: "Composite", + className: "ApiEntityBaseContract", + modelProperties: { + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + authenticationSettings: { + serializedName: "authenticationSettings", + xmlName: "authenticationSettings", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "AuthenticationSettingsContract", + }, }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", + subscriptionKeyParameterNames: { + serializedName: "subscriptionKeyParameterNames", + xmlName: "subscriptionKeyParameterNames", type: { name: "Composite", - className: "ApiLicenseInformation" - } + className: "SubscriptionKeyParameterNamesContract", + }, }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + apiType: { + serializedName: "type", + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + apiRevision: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "apiRevision", + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "apiVersion", + xmlName: "apiVersion", type: { - name: "String" - } + name: "String", + }, }, - serviceUrl: { + isCurrent: { + serializedName: "isCurrent", + xmlName: "isCurrent", + type: { + name: "Boolean", + }, + }, + isOnline: { + serializedName: "isOnline", + readOnly: true, + xmlName: "isOnline", + type: { + name: "Boolean", + }, + }, + apiRevisionDescription: { constraints: { - MaxLength: 2000 + MaxLength: 256, }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + serializedName: "apiRevisionDescription", + xmlName: "apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, - path: { + apiVersionDescription: { constraints: { - MaxLength: 400 + MaxLength: 256, }, - serializedName: "properties.path", - xmlName: "properties.path", + serializedName: "apiVersionDescription", + xmlName: "apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + apiVersionSetId: { + serializedName: "apiVersionSetId", + xmlName: "apiVersionSetId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", + subscriptionRequired: { + serializedName: "subscriptionRequired", + xmlName: "subscriptionRequired", + type: { + name: "Boolean", + }, + }, + termsOfServiceUrl: { + serializedName: "termsOfServiceUrl", + xmlName: "termsOfServiceUrl", + type: { + name: "String", + }, + }, + contact: { + serializedName: "contact", + xmlName: "contact", type: { name: "Composite", - className: "ApiVersionSetContractDetails" - } + className: "ApiContactInformation", + }, }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + license: { + serializedName: "license", + xmlName: "license", type: { - name: "String" - } + name: "Composite", + className: "ApiLicenseInformation", + }, }, - format: { - serializedName: "properties.format", - xmlName: "properties.format", + }, + }, +}; + +export const AuthenticationSettingsContract: coreClient.CompositeMapper = { + serializedName: "AuthenticationSettingsContract", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + modelProperties: { + oAuth2: { + serializedName: "oAuth2", + xmlName: "oAuth2", type: { - name: "String" - } + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + }, }, - wsdlSelector: { - serializedName: "properties.wsdlSelector", - xmlName: "properties.wsdlSelector", + openid: { + serializedName: "openid", + xmlName: "openid", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } + className: "OpenIdAuthenticationSettingsContract", + }, }, - soapApiType: { - serializedName: "properties.apiType", - xmlName: "properties.apiType", + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + }, + }, + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "properties.translateRequiredQueryParameters", - xmlName: "properties.translateRequiredQueryParameters", + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + }, + }, + }, + }, + }, + }, +}; + +export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + modelProperties: { + authorizationServerId: { + serializedName: "authorizationServerId", + xmlName: "authorizationServerId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "scope", + xmlName: "scope", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + modelProperties: { + openidProviderId: { + serializedName: "openidProviderId", + xmlName: "openidProviderId", + type: { + name: "String", + }, + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = + { + serializedName: "SubscriptionKeyParameterNamesContract", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + modelProperties: { + header: { + serializedName: "header", + xmlName: "header", + type: { + name: "String", + }, + }, + query: { + serializedName: "query", + xmlName: "query", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiContactInformation: coreClient.CompositeMapper = { + serializedName: "ApiContactInformation", + type: { + name: "Composite", + className: "ApiContactInformation", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + url: { + serializedName: "url", + xmlName: "url", + type: { + name: "String", + }, + }, + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", +export const ApiLicenseInformation: coreClient.CompositeMapper = { + serializedName: "ApiLicenseInformation", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector", + className: "ApiLicenseInformation", modelProperties: { - wsdlServiceName: { - serializedName: "wsdlServiceName", - xmlName: "wsdlServiceName", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - wsdlEndpointName: { - serializedName: "wsdlEndpointName", - xmlName: "wsdlEndpointName", + url: { + serializedName: "url", + xmlName: "url", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiUpdateContract: coreClient.CompositeMapper = { - serializedName: "ApiUpdateContract", +export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateParameter", type: { name: "Composite", - className: "ApiUpdateContract", + className: "ApiCreateOrUpdateParameter", modelProperties: { description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, authenticationSettings: { serializedName: "properties.authenticationSettings", xmlName: "properties.authenticationSettings", type: { name: "Composite", - className: "AuthenticationSettingsContract" - } + className: "AuthenticationSettingsContract", + }, }, subscriptionKeyParameterNames: { serializedName: "properties.subscriptionKeyParameterNames", xmlName: "properties.subscriptionKeyParameterNames", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + className: "SubscriptionKeyParameterNamesContract", + }, }, apiType: { serializedName: "properties.type", xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, apiRevision: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.apiRevision", xmlName: "properties.apiRevision", type: { - name: "String" - } + name: "String", + }, }, apiVersion: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "properties.apiVersion", xmlName: "properties.apiVersion", type: { - name: "String" - } + name: "String", + }, }, isCurrent: { serializedName: "properties.isCurrent", xmlName: "properties.isCurrent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isOnline: { serializedName: "properties.isOnline", readOnly: true, xmlName: "properties.isOnline", type: { - name: "Boolean" - } + name: "Boolean", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.apiRevisionDescription", xmlName: "properties.apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.apiVersionDescription", xmlName: "properties.apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSetId: { serializedName: "properties.apiVersionSetId", xmlName: "properties.apiVersionSetId", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "properties.subscriptionRequired", xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, termsOfServiceUrl: { serializedName: "properties.termsOfServiceUrl", xmlName: "properties.termsOfServiceUrl", type: { - name: "String" - } + name: "String", + }, }, contact: { serializedName: "properties.contact", xmlName: "properties.contact", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "ApiContactInformation", + }, + }, + license: { + serializedName: "properties.license", + xmlName: "properties.license", + type: { + name: "Composite", + className: "ApiLicenseInformation", + }, + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String", + }, + }, + format: { + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String", + }, + }, + wsdlSelector: { + serializedName: "properties.wsdlSelector", + xmlName: "properties.wsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + }, + }, + soapApiType: { + serializedName: "properties.apiType", + xmlName: "properties.apiType", + type: { + name: "String", + }, + }, + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = + { + serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + modelProperties: { + wsdlServiceName: { + serializedName: "wsdlServiceName", + xmlName: "wsdlServiceName", + type: { + name: "String", + }, + }, + wsdlEndpointName: { + serializedName: "wsdlEndpointName", + xmlName: "wsdlEndpointName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiUpdateContract: coreClient.CompositeMapper = { + serializedName: "ApiUpdateContract", + type: { + name: "Composite", + className: "ApiUpdateContract", + modelProperties: { + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + }, + }, + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, + }, + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", + type: { + name: "String", + }, + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean", + }, + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", + type: { + name: "Boolean", + }, + }, + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", + type: { + name: "String", + }, + }, + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", + type: { + name: "String", + }, + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", + type: { + name: "String", + }, + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean", + }, + }, + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", + type: { + name: "String", + }, + }, + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", + type: { + name: "Composite", + className: "ApiContactInformation", + }, }, license: { serializedName: "properties.license", xmlName: "properties.license", type: { name: "Composite", - className: "ApiLicenseInformation" - } + className: "ApiLicenseInformation", + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, serviceUrl: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.serviceUrl", xmlName: "properties.serviceUrl", type: { - name: "String" - } + name: "String", + }, }, path: { constraints: { - MaxLength: 400 + MaxLength: 400, }, serializedName: "properties.path", xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, protocols: { serializedName: "properties.protocols", @@ -982,13 +1440,13 @@ export const ApiUpdateContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ApiRevisionCollection: coreClient.CompositeMapper = { @@ -1007,28 +1465,28 @@ export const ApiRevisionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiRevisionContract" - } - } - } + className: "ApiRevisionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiRevisionContract: coreClient.CompositeMapper = { @@ -1042,74 +1500,74 @@ export const ApiRevisionContract: coreClient.CompositeMapper = { readOnly: true, xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, apiRevision: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "apiRevision", readOnly: true, xmlName: "apiRevision", type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "createdDateTime", readOnly: true, xmlName: "createdDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedDateTime: { serializedName: "updatedDateTime", readOnly: true, xmlName: "updatedDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, description: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "description", readOnly: true, xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, privateUrl: { serializedName: "privateUrl", readOnly: true, xmlName: "privateUrl", type: { - name: "String" - } + name: "String", + }, }, isOnline: { serializedName: "isOnline", readOnly: true, xmlName: "isOnline", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isCurrent: { serializedName: "isCurrent", readOnly: true, xmlName: "isCurrent", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ApiReleaseCollection: coreClient.CompositeMapper = { @@ -1128,28 +1586,28 @@ export const ApiReleaseCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiReleaseContract" - } - } - } + className: "ApiReleaseContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationCollection: coreClient.CompositeMapper = { @@ -1168,28 +1626,28 @@ export const OperationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationContract" - } - } - } + className: "OperationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationEntityBaseContract: coreClient.CompositeMapper = { @@ -1207,28 +1665,28 @@ export const OperationEntityBaseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, request: { serializedName: "request", xmlName: "request", type: { name: "Composite", - className: "RequestContract" - } + className: "RequestContract", + }, }, responses: { serializedName: "responses", @@ -1239,20 +1697,20 @@ export const OperationEntityBaseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResponseContract" - } - } - } + className: "ResponseContract", + }, + }, + }, }, policies: { serializedName: "policies", xmlName: "policies", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ParameterContract: coreClient.CompositeMapper = { @@ -1266,37 +1724,37 @@ export const ParameterContract: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", xmlName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, required: { serializedName: "required", xmlName: "required", type: { - name: "Boolean" - } + name: "Boolean", + }, }, values: { serializedName: "values", @@ -1306,24 +1764,24 @@ export const ParameterContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, schemaId: { serializedName: "schemaId", xmlName: "schemaId", type: { - name: "String" - } + name: "String", + }, }, typeName: { serializedName: "typeName", xmlName: "typeName", type: { - name: "String" - } + name: "String", + }, }, examples: { serializedName: "examples", @@ -1331,12 +1789,12 @@ export const ParameterContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; export const ParameterExampleContract: coreClient.CompositeMapper = { @@ -1349,32 +1807,32 @@ export const ParameterExampleContract: coreClient.CompositeMapper = { serializedName: "summary", xmlName: "summary", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", xmlName: "value", type: { - name: "any" - } + name: "any", + }, }, externalValue: { serializedName: "externalValue", xmlName: "externalValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RequestContract: coreClient.CompositeMapper = { @@ -1387,8 +1845,8 @@ export const RequestContract: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, queryParameters: { serializedName: "queryParameters", @@ -1399,10 +1857,10 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, headers: { serializedName: "headers", @@ -1413,10 +1871,10 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, representations: { serializedName: "representations", @@ -1427,13 +1885,13 @@ export const RequestContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RepresentationContract" - } - } - } - } - } - } + className: "RepresentationContract", + }, + }, + }, + }, + }, + }, }; export const RepresentationContract: coreClient.CompositeMapper = { @@ -1447,22 +1905,22 @@ export const RepresentationContract: coreClient.CompositeMapper = { required: true, xmlName: "contentType", type: { - name: "String" - } + name: "String", + }, }, schemaId: { serializedName: "schemaId", xmlName: "schemaId", type: { - name: "String" - } + name: "String", + }, }, typeName: { serializedName: "typeName", xmlName: "typeName", type: { - name: "String" - } + name: "String", + }, }, formParameters: { serializedName: "formParameters", @@ -1473,10 +1931,10 @@ export const RepresentationContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, examples: { serializedName: "examples", @@ -1484,12 +1942,12 @@ export const RepresentationContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; export const ResponseContract: coreClient.CompositeMapper = { @@ -1503,15 +1961,15 @@ export const ResponseContract: coreClient.CompositeMapper = { required: true, xmlName: "statusCode", type: { - name: "Number" - } + name: "Number", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, representations: { serializedName: "representations", @@ -1522,10 +1980,10 @@ export const ResponseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RepresentationContract" - } - } - } + className: "RepresentationContract", + }, + }, + }, }, headers: { serializedName: "headers", @@ -1536,13 +1994,13 @@ export const ResponseContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } - } - } - } + className: "ParameterContract", + }, + }, + }, + }, + }, + }, }; export const OperationUpdateContract: coreClient.CompositeMapper = { @@ -1560,28 +2018,28 @@ export const OperationUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "ParameterContract", + }, + }, + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, request: { serializedName: "properties.request", xmlName: "properties.request", type: { name: "Composite", - className: "RequestContract" - } + className: "RequestContract", + }, }, responses: { serializedName: "properties.responses", @@ -1592,49 +2050,49 @@ export const OperationUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResponseContract" - } - } - } + className: "ResponseContract", + }, + }, + }, }, policies: { serializedName: "properties.policies", xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, method: { serializedName: "properties.method", xmlName: "properties.method", type: { - name: "String" - } + name: "String", + }, }, urlTemplate: { constraints: { MaxLength: 1000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.urlTemplate", xmlName: "properties.urlTemplate", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PolicyCollection: coreClient.CompositeMapper = { @@ -1652,27 +2110,27 @@ export const PolicyCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyContract" - } - } - } + className: "PolicyContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagCollection: coreClient.CompositeMapper = { @@ -1690,27 +2148,27 @@ export const TagCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagContract" - } - } - } + className: "TagContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResolverCollection: coreClient.CompositeMapper = { @@ -1729,28 +2187,28 @@ export const ResolverCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResolverContract" - } - } - } + className: "ResolverContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResolverUpdateContract: coreClient.CompositeMapper = { @@ -1762,37 +2220,37 @@ export const ResolverUpdateContract: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, path: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.path", xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProductCollection: coreClient.CompositeMapper = { @@ -1810,27 +2268,27 @@ export const ProductCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProductContract" - } - } - } + className: "ProductContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProductEntityBaseParameters: coreClient.CompositeMapper = { @@ -1841,52 +2299,52 @@ export const ProductEntityBaseParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, terms: { serializedName: "terms", xmlName: "terms", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "subscriptionRequired", xmlName: "subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, approvalRequired: { serializedName: "approvalRequired", xmlName: "approvalRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, subscriptionsLimit: { serializedName: "subscriptionsLimit", xmlName: "subscriptionsLimit", type: { - name: "Number" - } + name: "Number", + }, }, state: { serializedName: "state", xmlName: "state", type: { name: "Enum", - allowedValues: ["notPublished", "published"] - } - } - } - } + allowedValues: ["notPublished", "published"], + }, + }, + }, + }, }; export const SchemaCollection: coreClient.CompositeMapper = { @@ -1905,28 +2363,28 @@ export const SchemaCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SchemaContract" - } - } - } + className: "SchemaContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiagnosticCollection: coreClient.CompositeMapper = { @@ -1944,27 +2402,27 @@ export const DiagnosticCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiagnosticContract" - } - } - } + className: "DiagnosticContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SamplingSettings: coreClient.CompositeMapper = { @@ -1977,22 +2435,22 @@ export const SamplingSettings: coreClient.CompositeMapper = { serializedName: "samplingType", xmlName: "samplingType", type: { - name: "String" - } + name: "String", + }, }, percentage: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "percentage", xmlName: "percentage", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { @@ -2006,19 +2464,19 @@ export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { xmlName: "request", type: { name: "Composite", - className: "HttpMessageDiagnostic" - } + className: "HttpMessageDiagnostic", + }, }, response: { serializedName: "response", xmlName: "response", type: { name: "Composite", - className: "HttpMessageDiagnostic" - } - } - } - } + className: "HttpMessageDiagnostic", + }, + }, + }, + }, }; export const HttpMessageDiagnostic: coreClient.CompositeMapper = { @@ -2035,29 +2493,29 @@ export const HttpMessageDiagnostic: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, body: { serializedName: "body", xmlName: "body", type: { name: "Composite", - className: "BodyDiagnosticSettings" - } + className: "BodyDiagnosticSettings", + }, }, dataMasking: { serializedName: "dataMasking", xmlName: "dataMasking", type: { name: "Composite", - className: "DataMasking" - } - } - } - } + className: "DataMasking", + }, + }, + }, + }, }; export const BodyDiagnosticSettings: coreClient.CompositeMapper = { @@ -2068,16 +2526,16 @@ export const BodyDiagnosticSettings: coreClient.CompositeMapper = { modelProperties: { bytes: { constraints: { - InclusiveMaximum: 8192 + InclusiveMaximum: 8192, }, serializedName: "bytes", xmlName: "bytes", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataMasking: coreClient.CompositeMapper = { @@ -2095,10 +2553,10 @@ export const DataMasking: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } + className: "DataMaskingEntity", + }, + }, + }, }, headers: { serializedName: "headers", @@ -2109,13 +2567,13 @@ export const DataMasking: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } - } - } - } + className: "DataMaskingEntity", + }, + }, + }, + }, + }, + }, }; export const DataMaskingEntity: coreClient.CompositeMapper = { @@ -2128,18 +2586,18 @@ export const DataMaskingEntity: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, mode: { serializedName: "mode", xmlName: "mode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueCollection: coreClient.CompositeMapper = { @@ -2158,28 +2616,28 @@ export const IssueCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueContract" - } - } - } + className: "IssueContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueContractBaseProperties: coreClient.CompositeMapper = { @@ -2192,25 +2650,25 @@ export const IssueContractBaseProperties: coreClient.CompositeMapper = { serializedName: "createdDate", xmlName: "createdDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, state: { serializedName: "state", xmlName: "state", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueUpdateContract: coreClient.CompositeMapper = { @@ -2223,46 +2681,46 @@ export const IssueUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.createdDate", xmlName: "properties.createdDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, state: { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "properties.apiId", xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "properties.userId", xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueCommentCollection: coreClient.CompositeMapper = { @@ -2281,28 +2739,28 @@ export const IssueCommentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueCommentContract" - } - } - } + className: "IssueCommentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueAttachmentCollection: coreClient.CompositeMapper = { @@ -2321,28 +2779,28 @@ export const IssueAttachmentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueAttachmentContract" - } - } - } + className: "IssueAttachmentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionCollection: coreClient.CompositeMapper = { @@ -2360,27 +2818,27 @@ export const TagDescriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagDescriptionContract" - } - } - } + className: "TagDescriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { @@ -2393,28 +2851,28 @@ export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, externalDocsUrl: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "externalDocsUrl", xmlName: "externalDocsUrl", type: { - name: "String" - } + name: "String", + }, }, externalDocsDescription: { serializedName: "externalDocsDescription", xmlName: "externalDocsDescription", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { @@ -2427,28 +2885,28 @@ export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, externalDocsUrl: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.externalDocsUrl", xmlName: "properties.externalDocsUrl", type: { - name: "String" - } + name: "String", + }, }, externalDocsDescription: { serializedName: "properties.externalDocsDescription", xmlName: "properties.externalDocsDescription", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagResourceCollection: coreClient.CompositeMapper = { @@ -2466,27 +2924,27 @@ export const TagResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TagResourceContract" - } - } - } + className: "TagResourceContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagResourceContract: coreClient.CompositeMapper = { @@ -2500,35 +2958,35 @@ export const TagResourceContract: coreClient.CompositeMapper = { xmlName: "tag", type: { name: "Composite", - className: "TagResourceContractProperties" - } + className: "TagResourceContractProperties", + }, }, api: { serializedName: "api", xmlName: "api", type: { name: "Composite", - className: "ApiTagResourceContractProperties" - } + className: "ApiTagResourceContractProperties", + }, }, operation: { serializedName: "operation", xmlName: "operation", type: { name: "Composite", - className: "OperationTagResourceContractProperties" - } + className: "OperationTagResourceContractProperties", + }, }, product: { serializedName: "product", xmlName: "product", type: { name: "Composite", - className: "ProductTagResourceContractProperties" - } - } - } - } + className: "ProductTagResourceContractProperties", + }, + }, + }, + }, }; export const TagResourceContractProperties: coreClient.CompositeMapper = { @@ -2541,96 +2999,97 @@ export const TagResourceContractProperties: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "name", xmlName: "name", type: { - name: "String" - } - } - } - } -}; - -export const OperationTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationTagResourceContractProperties", - type: { - name: "Composite", - className: "OperationTagResourceContractProperties", - modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - apiName: { - serializedName: "apiName", - readOnly: true, - xmlName: "apiName", - type: { - name: "String" - } - }, - apiRevision: { - serializedName: "apiRevision", - readOnly: true, - xmlName: "apiRevision", - type: { - name: "String" - } - }, - apiVersion: { - serializedName: "apiVersion", - readOnly: true, - xmlName: "apiVersion", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - readOnly: true, - xmlName: "description", - type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "method", - readOnly: true, - xmlName: "method", - type: { - name: "String" - } + }, + }, +}; + +export const OperationTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "OperationTagResourceContractProperties", + type: { + name: "Composite", + className: "OperationTagResourceContractProperties", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", + }, + }, + apiName: { + serializedName: "apiName", + readOnly: true, + xmlName: "apiName", + type: { + name: "String", + }, + }, + apiRevision: { + serializedName: "apiRevision", + readOnly: true, + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + serializedName: "apiVersion", + readOnly: true, + xmlName: "apiVersion", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + xmlName: "description", + type: { + name: "String", + }, + }, + method: { + serializedName: "method", + readOnly: true, + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + serializedName: "urlTemplate", + readOnly: true, + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, }, - urlTemplate: { - serializedName: "urlTemplate", - readOnly: true, - xmlName: "urlTemplate", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const WikiDocumentationContract: coreClient.CompositeMapper = { serializedName: "WikiDocumentationContract", @@ -2642,11 +3101,11 @@ export const WikiDocumentationContract: coreClient.CompositeMapper = { serializedName: "documentationId", xmlName: "documentationId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WikiUpdateContract: coreClient.CompositeMapper = { @@ -2664,13 +3123,13 @@ export const WikiUpdateContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WikiDocumentationContract" - } - } - } - } - } - } + className: "WikiDocumentationContract", + }, + }, + }, + }, + }, + }, }; export const WikiCollection: coreClient.CompositeMapper = { @@ -2689,21 +3148,21 @@ export const WikiCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WikiContract" - } - } - } + className: "WikiContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiExportResult: coreClient.CompositeMapper = { @@ -2716,26 +3175,26 @@ export const ApiExportResult: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, exportResultFormat: { serializedName: "format", xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", xmlName: "value", type: { name: "Composite", - className: "ApiExportResultValue" - } - } - } - } + className: "ApiExportResultValue", + }, + }, + }, + }, }; export const ApiExportResultValue: coreClient.CompositeMapper = { @@ -2748,11 +3207,11 @@ export const ApiExportResultValue: coreClient.CompositeMapper = { serializedName: "link", xmlName: "link", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetCollection: coreClient.CompositeMapper = { @@ -2770,27 +3229,27 @@ export const ApiVersionSetCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiVersionSetContract" - } - } - } + className: "ApiVersionSetContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { @@ -2803,33 +3262,33 @@ export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, versionQueryName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "versionQueryName", xmlName: "versionQueryName", type: { - name: "String" - } + name: "String", + }, }, versionHeaderName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "versionHeaderName", xmlName: "versionHeaderName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { @@ -2842,344 +3301,135 @@ export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, versionQueryName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.versionQueryName", xmlName: "properties.versionQueryName", type: { - name: "String" - } + name: "String", + }, }, versionHeaderName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.versionHeaderName", xmlName: "properties.versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, versioningScheme: { serializedName: "properties.versioningScheme", xmlName: "properties.versioningScheme", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerCollection", +export const AuthorizationProviderCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderCollection", type: { name: "Composite", - className: "AuthorizationServerCollection", + className: "AuthorizationProviderCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "AuthorizationServerContract", + xmlElementName: "AuthorizationProviderContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationServerContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "AuthorizationProviderContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractBaseProperties", +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", type: { name: "Composite", - className: "AuthorizationServerContractBaseProperties", + className: "AuthorizationProviderOAuth2Settings", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", type: { - name: "String" - } + name: "String", + }, }, - authorizationMethods: { - serializedName: "authorizationMethods", - xmlName: "authorizationMethods", - xmlElementName: "AuthorizationMethod", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + }, }, - clientAuthenticationMethod: { - serializedName: "clientAuthenticationMethod", - xmlName: "clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tokenBodyParameters: { - serializedName: "tokenBodyParameters", - xmlName: "tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "tokenEndpoint", - xmlName: "tokenEndpoint", - type: { - name: "String" - } - }, - supportState: { - serializedName: "supportState", - xmlName: "supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "defaultScope", - xmlName: "defaultScope", - type: { - name: "String" - } - }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - -export const TokenBodyParameterContract: coreClient.CompositeMapper = { - serializedName: "TokenBodyParameterContract", - type: { - name: "Composite", - className: "TokenBodyParameterContract", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - required: true, - xmlName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerSecretsContract", - type: { - name: "Composite", - className: "AuthorizationServerSecretsContract", - modelProperties: { - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationProviderCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderCollection", - type: { - name: "Composite", - className: "AuthorizationProviderCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "AuthorizationProviderContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AuthorizationProviderContract" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2Settings", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings", - modelProperties: { - redirectUrl: { - serializedName: "redirectUrl", - xmlName: "redirectUrl", - type: { - name: "String" - } - }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes" - } - } - } - } -}; - -export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2GrantTypes", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes", - modelProperties: { - authorizationCode: { - serializedName: "authorizationCode", - xmlName: "authorizationCode", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + }, + }, +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, }, - clientCredentials: { - serializedName: "clientCredentials", - xmlName: "clientCredentials", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; + }, + }; export const AuthorizationCollection: coreClient.CompositeMapper = { serializedName: "AuthorizationCollection", @@ -3196,27 +3446,27 @@ export const AuthorizationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AuthorizationContract" - } - } - } + className: "AuthorizationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationError: coreClient.CompositeMapper = { @@ -3229,18 +3479,18 @@ export const AuthorizationError: coreClient.CompositeMapper = { serializedName: "code", xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", xmlName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { @@ -3253,11 +3503,11 @@ export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { serializedName: "postLoginRedirectUrl", xmlName: "postLoginRedirectUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { @@ -3270,66 +3520,278 @@ export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { serializedName: "loginLink", xmlName: "loginLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = + { + serializedName: "AuthorizationConfirmConsentCodeRequestContract", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeRequestContract", + modelProperties: { + consentCode: { + serializedName: "consentCode", + xmlName: "consentCode", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationConfirmConsentCodeRequestContract", +export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyCollection", type: { name: "Composite", - className: "AuthorizationConfirmConsentCodeRequestContract", + className: "AuthorizationAccessPolicyCollection", modelProperties: { - consentCode: { - serializedName: "consentCode", - xmlName: "consentCode", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationAccessPolicyContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationAccessPolicyContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicyCollection", +export const AuthorizationServerCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerCollection", type: { name: "Composite", - className: "AuthorizationAccessPolicyCollection", + className: "AuthorizationServerCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "AuthorizationAccessPolicyContract", + xmlElementName: "AuthorizationServerContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationAccessPolicyContract" - } - } - } + className: "AuthorizationServerContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerContractBaseProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractBaseProperties", + modelProperties: { + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + authorizationMethods: { + serializedName: "authorizationMethods", + xmlName: "authorizationMethods", + xmlElementName: "AuthorizationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, + }, + clientAuthenticationMethod: { + serializedName: "clientAuthenticationMethod", + xmlName: "clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + tokenBodyParameters: { + serializedName: "tokenBodyParameters", + xmlName: "tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract", + }, + }, + }, + }, + tokenEndpoint: { + serializedName: "tokenEndpoint", + xmlName: "tokenEndpoint", + type: { + name: "String", + }, + }, + supportState: { + serializedName: "supportState", + xmlName: "supportState", + type: { + name: "Boolean", + }, + }, + defaultScope: { + serializedName: "defaultScope", + xmlName: "defaultScope", + type: { + name: "String", + }, + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const TokenBodyParameterContract: coreClient.CompositeMapper = { + serializedName: "TokenBodyParameterContract", + type: { + name: "Composite", + className: "TokenBodyParameterContract", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + xmlName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerSecretsContract", + type: { + name: "Composite", + className: "AuthorizationServerSecretsContract", + modelProperties: { + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String", + }, + }, + }, + }, }; export const BackendCollection: coreClient.CompositeMapper = { @@ -3347,27 +3809,27 @@ export const BackendCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BackendContract" - } - } - } + className: "BackendContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackendBaseParameters: coreClient.CompositeMapper = { @@ -3379,163 +3841,187 @@ export const BackendBaseParameters: coreClient.CompositeMapper = { title: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "title", xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, resourceId: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceId", xmlName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { name: "Composite", - className: "BackendProperties" - } + className: "BackendProperties", + }, }, credentials: { serializedName: "credentials", xmlName: "credentials", type: { name: "Composite", - className: "BackendCredentialsContract" - } + className: "BackendCredentialsContract", + }, }, proxy: { serializedName: "proxy", xmlName: "proxy", type: { name: "Composite", - className: "BackendProxyContract" - } + className: "BackendProxyContract", + }, }, tls: { serializedName: "tls", xmlName: "tls", type: { name: "Composite", - className: "BackendTlsProperties" - } - } - } - } -}; - -export const BackendProperties: coreClient.CompositeMapper = { - serializedName: "BackendProperties", - type: { - name: "Composite", - className: "BackendProperties", - modelProperties: { - serviceFabricCluster: { - serializedName: "serviceFabricCluster", - xmlName: "serviceFabricCluster", + className: "BackendTlsProperties", + }, + }, + circuitBreaker: { + serializedName: "circuitBreaker", + xmlName: "circuitBreaker", type: { name: "Composite", - className: "BackendServiceFabricClusterProperties" - } - } - } - } + className: "BackendCircuitBreaker", + }, + }, + pool: { + serializedName: "pool", + xmlName: "pool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + }, + }, + type: { + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + }, + }, }; -export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = { - serializedName: "BackendServiceFabricClusterProperties", +export const BackendProperties: coreClient.CompositeMapper = { + serializedName: "BackendProperties", type: { name: "Composite", - className: "BackendServiceFabricClusterProperties", + className: "BackendProperties", modelProperties: { - clientCertificateId: { - serializedName: "clientCertificateId", - xmlName: "clientCertificateId", - type: { - name: "String" - } - }, - clientCertificatethumbprint: { - serializedName: "clientCertificatethumbprint", - xmlName: "clientCertificatethumbprint", - type: { - name: "String" - } - }, - maxPartitionResolutionRetries: { - serializedName: "maxPartitionResolutionRetries", - xmlName: "maxPartitionResolutionRetries", + serviceFabricCluster: { + serializedName: "serviceFabricCluster", + xmlName: "serviceFabricCluster", type: { - name: "Number" - } + name: "Composite", + className: "BackendServiceFabricClusterProperties", + }, }, - managementEndpoints: { - serializedName: "managementEndpoints", - required: true, - xmlName: "managementEndpoints", - xmlElementName: - "BackendServiceFabricClusterPropertiesManagementEndpointsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - serverCertificateThumbprints: { - serializedName: "serverCertificateThumbprints", - xmlName: "serverCertificateThumbprints", - xmlElementName: - "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = + { + serializedName: "BackendServiceFabricClusterProperties", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties", + modelProperties: { + clientCertificateId: { + serializedName: "clientCertificateId", + xmlName: "clientCertificateId", + type: { + name: "String", + }, + }, + clientCertificatethumbprint: { + serializedName: "clientCertificatethumbprint", + xmlName: "clientCertificatethumbprint", + type: { + name: "String", + }, + }, + maxPartitionResolutionRetries: { + serializedName: "maxPartitionResolutionRetries", + xmlName: "maxPartitionResolutionRetries", + type: { + name: "Number", + }, + }, + managementEndpoints: { + serializedName: "managementEndpoints", + required: true, + xmlName: "managementEndpoints", + xmlElementName: + "BackendServiceFabricClusterPropertiesManagementEndpointsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverCertificateThumbprints: { + serializedName: "serverCertificateThumbprints", + xmlName: "serverCertificateThumbprints", + xmlElementName: + "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverX509Names: { + serializedName: "serverX509Names", + xmlName: "serverX509Names", + xmlElementName: "X509CertificateName", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "X509CertificateName", + }, + }, + }, + }, }, - serverX509Names: { - serializedName: "serverX509Names", - xmlName: "serverX509Names", - xmlElementName: "X509CertificateName", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "X509CertificateName" - } - } - } - } - } - } -}; + }, + }; export const X509CertificateName: coreClient.CompositeMapper = { serializedName: "X509CertificateName", @@ -3547,18 +4033,18 @@ export const X509CertificateName: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, issuerCertificateThumbprint: { serializedName: "issuerCertificateThumbprint", xmlName: "issuerCertificateThumbprint", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackendCredentialsContract: coreClient.CompositeMapper = { @@ -3569,7 +4055,7 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { modelProperties: { certificateIds: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "certificateIds", xmlName: "certificateIds", @@ -3578,14 +4064,14 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, certificate: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "certificate", xmlName: "certificate", @@ -3594,10 +4080,10 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, query: { serializedName: "query", @@ -3605,9 +4091,9 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, header: { serializedName: "header", @@ -3615,55 +4101,56 @@ export const BackendCredentialsContract: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, authorization: { serializedName: "authorization", xmlName: "authorization", type: { name: "Composite", - className: "BackendAuthorizationHeaderCredentials" - } - } - } - } -}; - -export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = { - serializedName: "BackendAuthorizationHeaderCredentials", - type: { - name: "Composite", - className: "BackendAuthorizationHeaderCredentials", - modelProperties: { - scheme: { - constraints: { - MaxLength: 100, - MinLength: 1 + className: "BackendAuthorizationHeaderCredentials", }, - serializedName: "scheme", - required: true, - xmlName: "scheme", - type: { - name: "String" - } }, - parameter: { - constraints: { - MaxLength: 300, - MinLength: 1 + }, + }, +}; + +export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = + { + serializedName: "BackendAuthorizationHeaderCredentials", + type: { + name: "Composite", + className: "BackendAuthorizationHeaderCredentials", + modelProperties: { + scheme: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "scheme", + required: true, + xmlName: "scheme", + type: { + name: "String", + }, }, - serializedName: "parameter", - required: true, - xmlName: "parameter", - type: { - name: "String" - } - } - } - } -}; + parameter: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "parameter", + required: true, + xmlName: "parameter", + type: { + name: "String", + }, + }, + }, + }, + }; export const BackendProxyContract: coreClient.CompositeMapper = { serializedName: "BackendProxyContract", @@ -3674,31 +4161,31 @@ export const BackendProxyContract: coreClient.CompositeMapper = { url: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "url", required: true, xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, username: { serializedName: "username", xmlName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", xmlName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BackendTlsProperties: coreClient.CompositeMapper = { @@ -3712,19 +4199,222 @@ export const BackendTlsProperties: coreClient.CompositeMapper = { serializedName: "validateCertificateChain", xmlName: "validateCertificateChain", type: { - name: "Boolean" - } + name: "Boolean", + }, }, validateCertificateName: { defaultValue: true, serializedName: "validateCertificateName", xmlName: "validateCertificateName", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, +}; + +export const BackendCircuitBreaker: coreClient.CompositeMapper = { + serializedName: "BackendCircuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker", + modelProperties: { + rules: { + constraints: { + MaxItems: 15, + }, + serializedName: "rules", + xmlName: "rules", + xmlElementName: "CircuitBreakerRule", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CircuitBreakerRule", + }, + }, + }, + }, + }, + }, +}; + +export const CircuitBreakerRule: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerRule", + type: { + name: "Composite", + className: "CircuitBreakerRule", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + failureCondition: { + serializedName: "failureCondition", + xmlName: "failureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition", + }, + }, + tripDuration: { + serializedName: "tripDuration", + xmlName: "tripDuration", + type: { + name: "TimeSpan", + }, + }, + }, + }, +}; + +export const CircuitBreakerFailureCondition: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerFailureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition", + modelProperties: { + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + percentage: { + serializedName: "percentage", + xmlName: "percentage", + type: { + name: "Number", + }, + }, + interval: { + serializedName: "interval", + xmlName: "interval", + type: { + name: "TimeSpan", + }, + }, + statusCodeRanges: { + constraints: { + MaxItems: 10, + }, + serializedName: "statusCodeRanges", + xmlName: "statusCodeRanges", + xmlElementName: "FailureStatusCodeRange", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailureStatusCodeRange", + }, + }, + }, + }, + errorReasons: { + constraints: { + MaxItems: 10, + }, + serializedName: "errorReasons", + xmlName: "errorReasons", + xmlElementName: "CircuitBreakerFailureConditionErrorReasonsItem", + type: { + name: "Sequence", + element: { + constraints: { + MaxLength: 200, + }, + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const FailureStatusCodeRange: coreClient.CompositeMapper = { + serializedName: "FailureStatusCodeRange", + type: { + name: "Composite", + className: "FailureStatusCodeRange", + modelProperties: { + min: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200, + }, + serializedName: "min", + xmlName: "min", + type: { + name: "Number", + }, + }, + max: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200, + }, + serializedName: "max", + xmlName: "max", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const BackendPool: coreClient.CompositeMapper = { + serializedName: "BackendPool", + type: { + name: "Composite", + className: "BackendPool", + modelProperties: { + services: { + constraints: { + MinItems: 1, + }, + serializedName: "services", + xmlName: "services", + xmlElementName: "BackendPoolItem", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendPoolItem", + }, + }, + }, + }, + }, + }, +}; + +export const BackendPoolItem: coreClient.CompositeMapper = { + serializedName: "BackendPoolItem", + type: { + name: "Composite", + className: "BackendPoolItem", + modelProperties: { + id: { + serializedName: "id", + required: true, + xmlName: "id", + type: { + name: "String", + }, + }, + }, + }, }; export const BackendUpdateParameters: coreClient.CompositeMapper = { @@ -3736,88 +4426,111 @@ export const BackendUpdateParameters: coreClient.CompositeMapper = { title: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.title", xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, resourceId: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.resourceId", xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties.properties", xmlName: "properties.properties", type: { name: "Composite", - className: "BackendProperties" - } + className: "BackendProperties", + }, }, credentials: { serializedName: "properties.credentials", xmlName: "properties.credentials", type: { name: "Composite", - className: "BackendCredentialsContract" - } + className: "BackendCredentialsContract", + }, }, proxy: { serializedName: "properties.proxy", xmlName: "properties.proxy", type: { name: "Composite", - className: "BackendProxyContract" - } + className: "BackendProxyContract", + }, }, tls: { serializedName: "properties.tls", xmlName: "properties.tls", type: { name: "Composite", - className: "BackendTlsProperties" - } + className: "BackendTlsProperties", + }, + }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker", + }, + }, + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + }, + }, + type: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, }, url: { constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.url", xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "properties.protocol", xmlName: "properties.protocol", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CacheCollection: coreClient.CompositeMapper = { @@ -3835,27 +4548,27 @@ export const CacheCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CacheContract" - } - } - } + className: "CacheContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CacheUpdateParameters: coreClient.CompositeMapper = { @@ -3866,46 +4579,46 @@ export const CacheUpdateParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, connectionString: { constraints: { - MaxLength: 300 + MaxLength: 300, }, serializedName: "properties.connectionString", xmlName: "properties.connectionString", type: { - name: "String" - } + name: "String", + }, }, useFromLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "properties.useFromLocation", xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, resourceId: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.resourceId", xmlName: "properties.resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCollection: coreClient.CompositeMapper = { @@ -3923,59 +4636,60 @@ export const CertificateCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateContract" - } - } - } + className: "CertificateContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultLastAccessStatusContractProperties", - type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties", - modelProperties: { - code: { - serializedName: "code", - xmlName: "code", - type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", - type: { - name: "String" - } + }, + }, +}; + +export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = + { + serializedName: "KeyVaultLastAccessStatusContractProperties", + type: { + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String", + }, + }, + timeStampUtc: { + serializedName: "timeStampUtc", + xmlName: "timeStampUtc", + type: { + name: "DateTime", + }, + }, }, - timeStampUtc: { - serializedName: "timeStampUtc", - xmlName: "timeStampUtc", - type: { - name: "DateTime" - } - } - } - } -}; + }, + }; export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { serializedName: "KeyVaultContractCreateProperties", @@ -3987,18 +4701,18 @@ export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { serializedName: "secretIdentifier", xmlName: "secretIdentifier", type: { - name: "String" - } + name: "String", + }, }, identityClientId: { serializedName: "identityClientId", xmlName: "identityClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -4011,26 +4725,26 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.data", xmlName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; export const ConnectivityCheckRequest: coreClient.CompositeMapper = { @@ -4044,41 +4758,41 @@ export const ConnectivityCheckRequest: coreClient.CompositeMapper = { xmlName: "source", type: { name: "Composite", - className: "ConnectivityCheckRequestSource" - } + className: "ConnectivityCheckRequestSource", + }, }, destination: { serializedName: "destination", xmlName: "destination", type: { name: "Composite", - className: "ConnectivityCheckRequestDestination" - } + className: "ConnectivityCheckRequestDestination", + }, }, preferredIPVersion: { serializedName: "preferredIPVersion", xmlName: "preferredIPVersion", type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "protocol", xmlName: "protocol", type: { - name: "String" - } + name: "String", + }, }, protocolConfiguration: { serializedName: "protocolConfiguration", xmlName: "protocolConfiguration", type: { name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration" - } - } - } - } + className: "ConnectivityCheckRequestProtocolConfiguration", + }, + }, + }, + }, }; export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { @@ -4092,18 +4806,18 @@ export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { required: true, xmlName: "region", type: { - name: "String" - } + name: "String", + }, }, instance: { serializedName: "instance", xmlName: "instance", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { @@ -4117,84 +4831,87 @@ export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { required: true, xmlName: "address", type: { - name: "String" - } + name: "String", + }, }, port: { serializedName: "port", required: true, xmlName: "port", type: { - name: "Number" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestProtocolConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration", - modelProperties: { - httpConfiguration: { - serializedName: "HTTPConfiguration", - xmlName: "HTTPConfiguration", - type: { - name: "Composite", - className: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration" - } - } - } - } -}; - -export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = { - serializedName: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", - modelProperties: { - method: { - serializedName: "method", - xmlName: "method", - type: { - name: "String" - } + name: "Number", + }, }, - validStatusCodes: { - serializedName: "validStatusCodes", - xmlName: "validStatusCodes", - xmlElementName: "ArrayItemschema", - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } + }, + }, +}; + +export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = + { + serializedName: "ConnectivityCheckRequestProtocolConfiguration", + type: { + name: "Composite", + className: "ConnectivityCheckRequestProtocolConfiguration", + modelProperties: { + httpConfiguration: { + serializedName: "HTTPConfiguration", + xmlName: "HTTPConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + }, + }, }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "HttpHeader", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpHeader" - } - } - } - } - } - } -}; + }, + }; + +export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = + { + serializedName: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + modelProperties: { + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + validStatusCodes: { + serializedName: "validStatusCodes", + xmlName: "validStatusCodes", + xmlElementName: "ArrayItemschema", + type: { + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, + }, + }, + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "HttpHeader", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader", + }, + }, + }, + }, + }, + }, + }; export const HttpHeader: coreClient.CompositeMapper = { serializedName: "HttpHeader", @@ -4207,19 +4924,19 @@ export const HttpHeader: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ConnectivityCheckResponse: coreClient.CompositeMapper = { @@ -4238,61 +4955,61 @@ export const ConnectivityCheckResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityHop" - } - } - } + className: "ConnectivityHop", + }, + }, + }, }, connectionStatus: { serializedName: "connectionStatus", readOnly: true, xmlName: "connectionStatus", type: { - name: "String" - } + name: "String", + }, }, avgLatencyInMs: { serializedName: "avgLatencyInMs", readOnly: true, xmlName: "avgLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, minLatencyInMs: { serializedName: "minLatencyInMs", readOnly: true, xmlName: "minLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, maxLatencyInMs: { serializedName: "maxLatencyInMs", readOnly: true, xmlName: "maxLatencyInMs", type: { - name: "Number" - } + name: "Number", + }, }, probesSent: { serializedName: "probesSent", readOnly: true, xmlName: "probesSent", type: { - name: "Number" - } + name: "Number", + }, }, probesFailed: { serializedName: "probesFailed", readOnly: true, xmlName: "probesFailed", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ConnectivityHop: coreClient.CompositeMapper = { @@ -4306,32 +5023,32 @@ export const ConnectivityHop: coreClient.CompositeMapper = { readOnly: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, address: { serializedName: "address", readOnly: true, xmlName: "address", type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", readOnly: true, xmlName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, nextHopIds: { serializedName: "nextHopIds", @@ -4342,10 +5059,10 @@ export const ConnectivityHop: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, issues: { serializedName: "issues", @@ -4357,13 +5074,13 @@ export const ConnectivityHop: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityIssue" - } - } - } - } - } - } + className: "ConnectivityIssue", + }, + }, + }, + }, + }, + }, }; export const ConnectivityIssue: coreClient.CompositeMapper = { @@ -4377,24 +5094,24 @@ export const ConnectivityIssue: coreClient.CompositeMapper = { readOnly: true, xmlName: "origin", type: { - name: "String" - } + name: "String", + }, }, severity: { serializedName: "severity", readOnly: true, xmlName: "severity", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", @@ -4406,13 +5123,13 @@ export const ConnectivityIssue: coreClient.CompositeMapper = { element: { type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, + }, + }, }; export const ContentTypeCollection: coreClient.CompositeMapper = { @@ -4431,21 +5148,21 @@ export const ContentTypeCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContentTypeContract" - } - } - } + className: "ContentTypeContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ContentItemCollection: coreClient.CompositeMapper = { @@ -4464,21 +5181,21 @@ export const ContentItemCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContentItemContract" - } - } - } + className: "ContentItemContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeletedServicesCollection: coreClient.CompositeMapper = { @@ -4497,21 +5214,21 @@ export const DeletedServicesCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeletedServiceContract" - } - } - } + className: "DeletedServiceContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -4529,20 +5246,20 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -4555,34 +5272,34 @@ export const Operation: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", xmlName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", xmlName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -4595,32 +5312,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", xmlName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", xmlName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", xmlName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuResults: coreClient.CompositeMapper = { @@ -4639,20 +5356,20 @@ export const ResourceSkuResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuResult" - } - } - } + className: "ResourceSkuResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuResult: coreClient.CompositeMapper = { @@ -4666,27 +5383,27 @@ export const ResourceSkuResult: coreClient.CompositeMapper = { readOnly: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", xmlName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, capacity: { serializedName: "capacity", xmlName: "capacity", type: { name: "Composite", - className: "ResourceSkuCapacity" - } - } - } - } + className: "ResourceSkuCapacity", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -4699,11 +5416,11 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -4717,92 +5434,93 @@ export const ResourceSkuCapacity: coreClient.CompositeMapper = { readOnly: true, xmlName: "minimum", type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, xmlName: "maximum", type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, xmlName: "default", type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, xmlName: "scaleType", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceBackupRestoreParameters", - type: { - name: "Composite", - className: "ApiManagementServiceBackupRestoreParameters", - modelProperties: { - storageAccount: { - serializedName: "storageAccount", - required: true, - xmlName: "storageAccount", - type: { - name: "String" - } - }, - containerName: { - serializedName: "containerName", - required: true, - xmlName: "containerName", - type: { - name: "String" - } - }, - backupName: { - serializedName: "backupName", - required: true, - xmlName: "backupName", - type: { - name: "String" - } - }, - accessType: { - defaultValue: "AccessKey", - serializedName: "accessType", - xmlName: "accessType", - type: { - name: "String" - } + name: "String", + }, }, - accessKey: { - serializedName: "accessKey", - xmlName: "accessKey", - type: { - name: "String" - } + }, + }, +}; + +export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceBackupRestoreParameters", + type: { + name: "Composite", + className: "ApiManagementServiceBackupRestoreParameters", + modelProperties: { + storageAccount: { + serializedName: "storageAccount", + required: true, + xmlName: "storageAccount", + type: { + name: "String", + }, + }, + containerName: { + serializedName: "containerName", + required: true, + xmlName: "containerName", + type: { + name: "String", + }, + }, + backupName: { + serializedName: "backupName", + required: true, + xmlName: "backupName", + type: { + name: "String", + }, + }, + accessType: { + defaultValue: "AccessKey", + serializedName: "accessType", + xmlName: "accessType", + type: { + name: "String", + }, + }, + accessKey: { + serializedName: "accessKey", + xmlName: "accessKey", + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { serializedName: "ApiManagementServiceBaseProperties", @@ -4812,85 +5530,85 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { modelProperties: { notificationSenderEmail: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "notificationSenderEmail", xmlName: "notificationSenderEmail", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, xmlName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, targetProvisioningState: { serializedName: "targetProvisioningState", readOnly: true, xmlName: "targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, createdAtUtc: { serializedName: "createdAtUtc", readOnly: true, xmlName: "createdAtUtc", type: { - name: "DateTime" - } + name: "DateTime", + }, }, gatewayUrl: { serializedName: "gatewayUrl", readOnly: true, xmlName: "gatewayUrl", type: { - name: "String" - } + name: "String", + }, }, gatewayRegionalUrl: { serializedName: "gatewayRegionalUrl", readOnly: true, xmlName: "gatewayRegionalUrl", type: { - name: "String" - } + name: "String", + }, }, portalUrl: { serializedName: "portalUrl", readOnly: true, xmlName: "portalUrl", type: { - name: "String" - } + name: "String", + }, }, managementApiUrl: { serializedName: "managementApiUrl", readOnly: true, xmlName: "managementApiUrl", type: { - name: "String" - } + name: "String", + }, }, scmUrl: { serializedName: "scmUrl", readOnly: true, xmlName: "scmUrl", type: { - name: "String" - } + name: "String", + }, }, developerPortalUrl: { serializedName: "developerPortalUrl", readOnly: true, xmlName: "developerPortalUrl", type: { - name: "String" - } + name: "String", + }, }, hostnameConfigurations: { serializedName: "hostnameConfigurations", @@ -4901,10 +5619,10 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "HostnameConfiguration" - } - } - } + className: "HostnameConfiguration", + }, + }, + }, }, publicIPAddresses: { serializedName: "publicIPAddresses", @@ -4916,10 +5634,10 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -4931,32 +5649,40 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIpAddressId: { serializedName: "publicIpAddressId", xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "publicNetworkAccess", xmlName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, + }, + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, }, virtualNetworkConfiguration: { serializedName: "virtualNetworkConfiguration", xmlName: "virtualNetworkConfiguration", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } + className: "VirtualNetworkConfiguration", + }, }, additionalLocations: { serializedName: "additionalLocations", @@ -4967,18 +5693,18 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdditionalLocation" - } - } - } + className: "AdditionalLocation", + }, + }, + }, }, customProperties: { serializedName: "customProperties", xmlName: "customProperties", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, certificates: { serializedName: "certificates", @@ -4989,25 +5715,25 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateConfiguration" - } - } - } + className: "CertificateConfiguration", + }, + }, + }, }, enableClientCertificate: { defaultValue: false, serializedName: "enableClientCertificate", xmlName: "enableClientCertificate", type: { - name: "Boolean" - } + name: "Boolean", + }, }, natGatewayState: { serializedName: "natGatewayState", xmlName: "natGatewayState", type: { - name: "String" - } + name: "String", + }, }, outboundPublicIPAddresses: { serializedName: "outboundPublicIPAddresses", @@ -5019,42 +5745,42 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, disableGateway: { defaultValue: false, serializedName: "disableGateway", xmlName: "disableGateway", type: { - name: "Boolean" - } + name: "Boolean", + }, }, virtualNetworkType: { defaultValue: "None", serializedName: "virtualNetworkType", xmlName: "virtualNetworkType", type: { - name: "String" - } + name: "String", + }, }, apiVersionConstraint: { serializedName: "apiVersionConstraint", xmlName: "apiVersionConstraint", type: { name: "Composite", - className: "ApiVersionConstraint" - } + className: "ApiVersionConstraint", + }, }, restore: { defaultValue: false, serializedName: "restore", xmlName: "restore", type: { - name: "Boolean" - } + name: "Boolean", + }, }, privateEndpointConnections: { serializedName: "privateEndpointConnections", @@ -5065,21 +5791,37 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, }, platformVersion: { serializedName: "platformVersion", readOnly: true, xmlName: "platformVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "legacyPortalStatus", + xmlName: "legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "developerPortalStatus", + xmlName: "developerPortalStatus", + type: { + name: "String", + }, + }, + }, + }, }; export const HostnameConfiguration: coreClient.CompositeMapper = { @@ -5093,85 +5835,85 @@ export const HostnameConfiguration: coreClient.CompositeMapper = { required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, hostName: { serializedName: "hostName", required: true, xmlName: "hostName", type: { - name: "String" - } + name: "String", + }, }, keyVaultId: { serializedName: "keyVaultId", xmlName: "keyVaultId", type: { - name: "String" - } + name: "String", + }, }, identityClientId: { serializedName: "identityClientId", xmlName: "identityClientId", type: { - name: "String" - } + name: "String", + }, }, encodedCertificate: { serializedName: "encodedCertificate", xmlName: "encodedCertificate", type: { - name: "String" - } + name: "String", + }, }, certificatePassword: { serializedName: "certificatePassword", xmlName: "certificatePassword", type: { - name: "String" - } + name: "String", + }, }, defaultSslBinding: { defaultValue: false, serializedName: "defaultSslBinding", xmlName: "defaultSslBinding", type: { - name: "Boolean" - } + name: "Boolean", + }, }, negotiateClientCertificate: { defaultValue: false, serializedName: "negotiateClientCertificate", xmlName: "negotiateClientCertificate", type: { - name: "Boolean" - } + name: "Boolean", + }, }, certificate: { serializedName: "certificate", xmlName: "certificate", type: { name: "Composite", - className: "CertificateInformation" - } + className: "CertificateInformation", + }, }, certificateSource: { serializedName: "certificateSource", xmlName: "certificateSource", type: { - name: "String" - } + name: "String", + }, }, certificateStatus: { serializedName: "certificateStatus", xmlName: "certificateStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateInformation: coreClient.CompositeMapper = { @@ -5185,27 +5927,45 @@ export const CertificateInformation: coreClient.CompositeMapper = { required: true, xmlName: "expiry", type: { - name: "DateTime" - } + name: "DateTime", + }, }, thumbprint: { serializedName: "thumbprint", required: true, xmlName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, subject: { serializedName: "subject", required: true, xmlName: "subject", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ConfigurationApi: coreClient.CompositeMapper = { + serializedName: "ConfigurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + modelProperties: { + legacyApi: { + defaultValue: "Enabled", + serializedName: "legacyApi", + xmlName: "legacyApi", + type: { + name: "String", + }, + }, + }, + }, }; export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { @@ -5219,31 +5979,31 @@ export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { readOnly: true, xmlName: "vnetid", type: { - name: "String" - } + name: "String", + }, }, subnetname: { serializedName: "subnetname", readOnly: true, xmlName: "subnetname", type: { - name: "String" - } + name: "String", + }, }, subnetResourceId: { constraints: { Pattern: new RegExp( - "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$" - ) + "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$", + ), }, serializedName: "subnetResourceId", xmlName: "subnetResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AdditionalLocation: coreClient.CompositeMapper = { @@ -5257,16 +6017,16 @@ export const AdditionalLocation: coreClient.CompositeMapper = { required: true, xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", xmlName: "sku", type: { name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + className: "ApiManagementServiceSkuProperties", + }, }, zones: { serializedName: "zones", @@ -5276,10 +6036,10 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIPAddresses: { serializedName: "publicIPAddresses", @@ -5290,10 +6050,10 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -5304,40 +6064,40 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, publicIpAddressId: { serializedName: "publicIpAddressId", xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, virtualNetworkConfiguration: { serializedName: "virtualNetworkConfiguration", xmlName: "virtualNetworkConfiguration", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } + className: "VirtualNetworkConfiguration", + }, }, gatewayRegionalUrl: { serializedName: "gatewayRegionalUrl", readOnly: true, xmlName: "gatewayRegionalUrl", type: { - name: "String" - } + name: "String", + }, }, natGatewayState: { serializedName: "natGatewayState", xmlName: "natGatewayState", type: { - name: "String" - } + name: "String", + }, }, outboundPublicIPAddresses: { serializedName: "outboundPublicIPAddresses", @@ -5348,29 +6108,29 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, disableGateway: { defaultValue: false, serializedName: "disableGateway", xmlName: "disableGateway", type: { - name: "Boolean" - } + name: "Boolean", + }, }, platformVersion: { serializedName: "platformVersion", readOnly: true, xmlName: "platformVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { @@ -5384,19 +6144,19 @@ export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", required: true, xmlName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateConfiguration: coreClient.CompositeMapper = { @@ -5409,34 +6169,34 @@ export const CertificateConfiguration: coreClient.CompositeMapper = { serializedName: "encodedCertificate", xmlName: "encodedCertificate", type: { - name: "String" - } + name: "String", + }, }, certificatePassword: { serializedName: "certificatePassword", xmlName: "certificatePassword", type: { - name: "String" - } + name: "String", + }, }, storeName: { serializedName: "storeName", required: true, xmlName: "storeName", type: { - name: "String" - } + name: "String", + }, }, certificate: { serializedName: "certificate", xmlName: "certificate", type: { name: "Composite", - className: "CertificateInformation" - } - } - } - } + className: "CertificateInformation", + }, + }, + }, + }, }; export const ApiVersionConstraint: coreClient.CompositeMapper = { @@ -5449,99 +6209,100 @@ export const ApiVersionConstraint: coreClient.CompositeMapper = { serializedName: "minApiVersion", xmlName: "minApiVersion", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = + { + serializedName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "ArmIdWrapper", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, + xmlName: "properties.groupIds", + xmlElementName: + "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; -export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = { - serializedName: "RemotePrivateEndpointConnectionWrapper", +export const ArmIdWrapper: coreClient.CompositeMapper = { + serializedName: "ArmIdWrapper", type: { name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper", + className: "ArmIdWrapper", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { - name: "String" - } - }, - name: { - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - xmlName: "type", - type: { - name: "String" - } + name: "String", + }, }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "ArmIdWrapper" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", - type: { - name: "String" - } - }, - groupIds: { - serializedName: "properties.groupIds", - readOnly: true, - xmlName: "properties.groupIds", - xmlElementName: - "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ArmIdWrapper: coreClient.CompositeMapper = { - serializedName: "ArmIdWrapper", - type: { - name: "Composite", - className: "ArmIdWrapper", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - } - } - } + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -5554,25 +6315,25 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { serializedName: "status", xmlName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", xmlName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { @@ -5586,24 +6347,24 @@ export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", readOnly: true, xmlName: "principalId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, xmlName: "tenantId", type: { - name: "Uuid" - } + name: "Uuid", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -5611,12 +6372,12 @@ export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } + type: { name: "Composite", className: "UserIdentityProperties" }, + }, + }, + }, + }, + }, }; export const UserIdentityProperties: coreClient.CompositeMapper = { @@ -5629,112 +6390,35 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", xmlName: "principalId", type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", xmlName: "clientId", type: { - name: "String" - } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - serializedName: "SystemData", - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - xmlName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - xmlName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - xmlName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - xmlName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - xmlName: "lastModifiedByType", - type: { - name: "String" - } + name: "String", + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - xmlName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const ApimResource: coreClient.CompositeMapper = { - serializedName: "ApimResource", +export const MigrateToStv2Contract: coreClient.CompositeMapper = { + serializedName: "MigrateToStv2Contract", type: { name: "Composite", - className: "ApimResource", + className: "MigrateToStv2Contract", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + mode: { + serializedName: "mode", + xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", - xmlName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; export const ApiManagementServiceListResult: coreClient.CompositeMapper = { @@ -5753,124 +6437,186 @@ export const ApiManagementServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementServiceResource" - } - } - } + className: "ApiManagementServiceResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetSsoTokenResult", - type: { - name: "Composite", - className: "ApiManagementServiceGetSsoTokenResult", - modelProperties: { - redirectUri: { - serializedName: "redirectUri", - xmlName: "redirectUri", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", - type: { - name: "Composite", - className: "ApiManagementServiceCheckNameAvailabilityParameters", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetSsoTokenResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetSsoTokenResult", + modelProperties: { + redirectUri: { + serializedName: "redirectUri", + xmlName: "redirectUri", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "ApiManagementServiceCheckNameAvailabilityParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceNameAvailabilityResult", + type: { + name: "Composite", + className: "ApiManagementServiceNameAvailabilityResult", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + readOnly: true, + xmlName: "nameAvailable", + type: { + name: "Boolean", + }, + }, + message: { + serializedName: "message", + readOnly: true, + xmlName: "message", + type: { + name: "String", + }, + }, + reason: { + serializedName: "reason", + xmlName: "reason", + type: { + name: "Enum", + allowedValues: ["Valid", "Invalid", "AlreadyExists"], + }, + }, + }, + }, + }; + +export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + modelProperties: { + domainOwnershipIdentifier: { + serializedName: "domainOwnershipIdentifier", + readOnly: true, + xmlName: "domainOwnershipIdentifier", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationParameters", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceNameAvailabilityResult", +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", type: { name: "Composite", - className: "ApiManagementServiceNameAvailabilityResult", + className: "DocumentationCollection", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + value: { + serializedName: "value", readOnly: true, - xmlName: "nameAvailable", + xmlName: "value", + xmlElementName: "DocumentationContract", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract", + }, + }, + }, }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, - xmlName: "message", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - reason: { - serializedName: "reason", - xmlName: "reason", - type: { - name: "Enum", - allowedValues: ["Valid", "Invalid", "AlreadyExists"] - } - } - } - } + }, + }, }; -export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", type: { name: "Composite", - className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + className: "DocumentationUpdateContract", modelProperties: { - domainOwnershipIdentifier: { - serializedName: "domainOwnershipIdentifier", - readOnly: true, - xmlName: "domainOwnershipIdentifier", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", - type: { - name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationParameters", - modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + name: "String", + }, + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EmailTemplateCollection: coreClient.CompositeMapper = { @@ -5888,73 +6634,74 @@ export const EmailTemplateCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmailTemplateContract" - } - } - } + className: "EmailTemplateContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = { - serializedName: "EmailTemplateParametersContractProperties", - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties", - modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } }, - title: { - constraints: { - MaxLength: 4096, - MinLength: 1 + }, + }, +}; + +export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = + { + serializedName: "EmailTemplateParametersContractProperties", + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, }, - serializedName: "title", - xmlName: "title", - type: { - name: "String" - } - }, - description: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + title: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String", + }, }, - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } - } - } - } -}; + description: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + }, + }, + }; export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { serializedName: "EmailTemplateUpdateParameters", @@ -5965,37 +6712,37 @@ export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { subject: { constraints: { MaxLength: 1000, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.subject", xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, }, title: { serializedName: "properties.title", xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, body: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.body", xmlName: "properties.body", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "properties.parameters", @@ -6006,13 +6753,13 @@ export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } - } - } - } + className: "EmailTemplateParametersContractProperties", + }, + }, + }, + }, + }, + }, }; export const GatewayCollection: coreClient.CompositeMapper = { @@ -6031,28 +6778,28 @@ export const GatewayCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GatewayContract" - } - } - } + className: "GatewayContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceLocationDataContract: coreClient.CompositeMapper = { @@ -6063,47 +6810,47 @@ export const ResourceLocationDataContract: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "name", required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, city: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "city", xmlName: "city", type: { - name: "String" - } + name: "String", + }, }, district: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "district", xmlName: "district", type: { - name: "String" - } + name: "String", + }, }, countryOrRegion: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "countryOrRegion", xmlName: "countryOrRegion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GatewayKeysContract: coreClient.CompositeMapper = { @@ -6116,38 +6863,39 @@ export const GatewayKeysContract: coreClient.CompositeMapper = { serializedName: "primary", xmlName: "primary", type: { - name: "String" - } + name: "String", + }, }, secondary: { serializedName: "secondary", xmlName: "secondary", type: { - name: "String" - } - } - } - } -}; - -export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = { - serializedName: "GatewayKeyRegenerationRequestContract", - type: { - name: "Composite", - className: "GatewayKeyRegenerationRequestContract", - modelProperties: { - keyType: { - serializedName: "keyType", - required: true, - xmlName: "keyType", - type: { - name: "Enum", - allowedValues: ["primary", "secondary"] - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = + { + serializedName: "GatewayKeyRegenerationRequestContract", + type: { + name: "Composite", + className: "GatewayKeyRegenerationRequestContract", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + xmlName: "keyType", + type: { + name: "Enum", + allowedValues: ["primary", "secondary"], + }, + }, + }, + }, + }; export const GatewayTokenRequestContract: coreClient.CompositeMapper = { serializedName: "GatewayTokenRequestContract", @@ -6161,19 +6909,19 @@ export const GatewayTokenRequestContract: coreClient.CompositeMapper = { xmlName: "keyType", type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } + allowedValues: ["primary", "secondary"], + }, }, expiry: { serializedName: "expiry", required: true, xmlName: "expiry", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const GatewayTokenContract: coreClient.CompositeMapper = { @@ -6186,77 +6934,152 @@ export const GatewayTokenContract: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } -}; - -export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationCollection", + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationCollection", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayHostnameConfigurationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthorityCollection", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayCertificateAuthorityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayListDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayListDebugCredentialsContract", type: { name: "Composite", - className: "GatewayHostnameConfigurationCollection", + className: "GatewayListDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GatewayHostnameConfigurationContract", + credentialsExpireAfter: { + serializedName: "credentialsExpireAfter", + xmlName: "credentialsExpireAfter", + type: { + name: "TimeSpan", + }, + }, + purposes: { + serializedName: "purposes", + required: true, + xmlName: "purposes", + xmlElementName: "GatewayListDebugCredentialsContractPurpose", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GatewayHostnameConfigurationContract" - } - } - } + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + apiId: { + serializedName: "apiId", + required: true, + xmlName: "apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityCollection", +export const GatewayDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayDebugCredentialsContract", type: { name: "Composite", - className: "GatewayCertificateAuthorityCollection", + className: "GatewayDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GatewayCertificateAuthorityContract", + token: { + serializedName: "token", + xmlName: "token", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + }, + }, +}; + +export const GatewayListTraceContract: coreClient.CompositeMapper = { + serializedName: "GatewayListTraceContract", + type: { + name: "Composite", + className: "GatewayListTraceContract", + modelProperties: { + traceId: { + serializedName: "traceId", + xmlName: "traceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupCollection: coreClient.CompositeMapper = { @@ -6274,27 +7097,27 @@ export const GroupCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GroupContract" - } - } - } + className: "GroupContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupContractProperties: coreClient.CompositeMapper = { @@ -6306,50 +7129,50 @@ export const GroupContractProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, builtIn: { serializedName: "builtIn", readOnly: true, xmlName: "builtIn", type: { - name: "Boolean" - } + name: "Boolean", + }, }, type: { serializedName: "type", xmlName: "type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "externalId", xmlName: "externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupCreateParameters: coreClient.CompositeMapper = { @@ -6361,38 +7184,38 @@ export const GroupCreateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", xmlName: "properties.type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "properties.externalId", xmlName: "properties.externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GroupUpdateParameters: coreClient.CompositeMapper = { @@ -6404,38 +7227,38 @@ export const GroupUpdateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", xmlName: "properties.type", type: { name: "Enum", - allowedValues: ["custom", "system", "external"] - } + allowedValues: ["custom", "system", "external"], + }, }, externalId: { serializedName: "properties.externalId", xmlName: "properties.externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserCollection: coreClient.CompositeMapper = { @@ -6453,27 +7276,27 @@ export const UserCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserContract" - } - } - } + className: "UserContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserEntityBaseParameters: coreClient.CompositeMapper = { @@ -6487,15 +7310,15 @@ export const UserEntityBaseParameters: coreClient.CompositeMapper = { serializedName: "state", xmlName: "state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "note", xmlName: "note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "identities", @@ -6506,13 +7329,13 @@ export const UserEntityBaseParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } - } - } - } + className: "UserIdentityContract", + }, + }, + }, + }, + }, + }, }; export const UserIdentityContract: coreClient.CompositeMapper = { @@ -6525,18 +7348,18 @@ export const UserIdentityContract: coreClient.CompositeMapper = { serializedName: "provider", xmlName: "provider", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", xmlName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderList: coreClient.CompositeMapper = { @@ -6554,27 +7377,27 @@ export const IdentityProviderList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IdentityProviderContract" - } - } - } + className: "IdentityProviderContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { @@ -6587,19 +7410,19 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { serializedName: "type", xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, signinTenant: { serializedName: "signinTenant", xmlName: "signinTenant", type: { - name: "String" - } + name: "String", + }, }, allowedTenants: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "allowedTenants", xmlName: "allowedTenants", @@ -6608,70 +7431,70 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, authority: { serializedName: "authority", xmlName: "authority", type: { - name: "String" - } + name: "String", + }, }, signupPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "signupPolicyName", xmlName: "signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, signinPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "signinPolicyName", xmlName: "signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, profileEditingPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "profileEditingPolicyName", xmlName: "profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, passwordResetPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "passwordResetPolicyName", xmlName: "passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, clientLibrary: { constraints: { - MaxLength: 16 + MaxLength: 16, }, serializedName: "clientLibrary", xmlName: "clientLibrary", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { @@ -6684,19 +7507,19 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.type", xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, signinTenant: { serializedName: "properties.signinTenant", xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, allowedTenants: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "properties.allowedTenants", xmlName: "properties.allowedTenants", @@ -6705,90 +7528,90 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, authority: { serializedName: "properties.authority", xmlName: "properties.authority", type: { - name: "String" - } + name: "String", + }, }, signupPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.signupPolicyName", xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, signinPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.signinPolicyName", xmlName: "properties.signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, profileEditingPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.profileEditingPolicyName", xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, passwordResetPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.passwordResetPolicyName", xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, clientLibrary: { constraints: { - MaxLength: 16 + MaxLength: 16, }, serializedName: "properties.clientLibrary", xmlName: "properties.clientLibrary", type: { - name: "String" - } + name: "String", + }, }, clientId: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClientSecretContract: coreClient.CompositeMapper = { @@ -6801,11 +7624,11 @@ export const ClientSecretContract: coreClient.CompositeMapper = { serializedName: "clientSecret", xmlName: "clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LoggerCollection: coreClient.CompositeMapper = { @@ -6823,27 +7646,27 @@ export const LoggerCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoggerContract" - } - } - } + className: "LoggerContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LoggerUpdateContract: coreClient.CompositeMapper = { @@ -6856,33 +7679,33 @@ export const LoggerUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.loggerType", xmlName: "properties.loggerType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, credentials: { serializedName: "properties.credentials", xmlName: "properties.credentials", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, isBuffered: { serializedName: "properties.isBuffered", xmlName: "properties.isBuffered", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NamedValueCollection: coreClient.CompositeMapper = { @@ -6900,27 +7723,27 @@ export const NamedValueCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NamedValueContract" - } - } - } + className: "NamedValueContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { @@ -6931,7 +7754,7 @@ export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { modelProperties: { tags: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "tags", xmlName: "tags", @@ -6940,20 +7763,20 @@ export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, secret: { serializedName: "secret", xmlName: "secret", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NamedValueUpdateParameters: coreClient.CompositeMapper = { @@ -6964,7 +7787,7 @@ export const NamedValueUpdateParameters: coreClient.CompositeMapper = { modelProperties: { tags: { constraints: { - MaxItems: 32 + MaxItems: 32, }, serializedName: "properties.tags", xmlName: "properties.tags", @@ -6973,51 +7796,51 @@ export const NamedValueUpdateParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, secret: { serializedName: "properties.secret", xmlName: "properties.secret", type: { - name: "Boolean" - } + name: "Boolean", + }, }, displayName: { constraints: { Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, value: { constraints: { MaxLength: 4096, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.value", xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; export const NamedValueSecretContract: coreClient.CompositeMapper = { @@ -7030,11 +7853,11 @@ export const NamedValueSecretContract: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { @@ -7045,24 +7868,24 @@ export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { modelProperties: { location: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "location", xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, networkStatus: { serializedName: "networkStatus", xmlName: "networkStatus", type: { name: "Composite", - className: "NetworkStatusContract" - } - } - } - } + className: "NetworkStatusContract", + }, + }, + }, + }, }; export const NetworkStatusContract: coreClient.CompositeMapper = { @@ -7080,10 +7903,10 @@ export const NetworkStatusContract: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, connectivityStatus: { serializedName: "connectivityStatus", @@ -7095,13 +7918,13 @@ export const NetworkStatusContract: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ConnectivityStatusContract" - } - } - } - } - } - } + className: "ConnectivityStatusContract", + }, + }, + }, + }, + }, + }, }; export const ConnectivityStatusContract: coreClient.CompositeMapper = { @@ -7112,64 +7935,64 @@ export const ConnectivityStatusContract: coreClient.CompositeMapper = { modelProperties: { name: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "name", required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", required: true, xmlName: "status", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", xmlName: "error", type: { - name: "String" - } + name: "String", + }, }, lastUpdated: { serializedName: "lastUpdated", required: true, xmlName: "lastUpdated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastStatusChange: { serializedName: "lastStatusChange", required: true, xmlName: "lastStatusChange", type: { - name: "DateTime" - } + name: "DateTime", + }, }, resourceType: { serializedName: "resourceType", required: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, isOptional: { serializedName: "isOptional", required: true, xmlName: "isOptional", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NotificationCollection: coreClient.CompositeMapper = { @@ -7187,27 +8010,27 @@ export const NotificationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NotificationContract" - } - } - } + className: "NotificationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecipientsContractProperties: coreClient.CompositeMapper = { @@ -7224,10 +8047,10 @@ export const RecipientsContractProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, users: { serializedName: "users", @@ -7237,13 +8060,13 @@ export const RecipientsContractProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RecipientUserCollection: coreClient.CompositeMapper = { @@ -7261,27 +8084,27 @@ export const RecipientUserCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecipientUserContract" - } - } - } + className: "RecipientUserContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecipientEmailCollection: coreClient.CompositeMapper = { @@ -7299,27 +8122,27 @@ export const RecipientEmailCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RecipientEmailContract" - } - } - } + className: "RecipientEmailContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { @@ -7337,27 +8160,27 @@ export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OpenidConnectProviderContract" - } - } - } + className: "OpenidConnectProviderContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { @@ -7368,58 +8191,58 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { modelProperties: { displayName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, metadataEndpoint: { serializedName: "properties.metadataEndpoint", xmlName: "properties.metadataEndpoint", type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } + name: "String", + }, }, useInTestConsole: { serializedName: "properties.useInTestConsole", xmlName: "properties.useInTestConsole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useInApiDocumentation: { serializedName: "properties.useInApiDocumentation", xmlName: "properties.useInApiDocumentation", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { @@ -7438,21 +8261,21 @@ export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + className: "OutboundEnvironmentEndpoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { @@ -7465,8 +8288,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { serializedName: "category", xmlName: "category", type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -7477,13 +8300,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -7496,8 +8319,8 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", xmlName: "domainName", type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -7508,13 +8331,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -7527,18 +8350,18 @@ export const EndpointDetail: coreClient.CompositeMapper = { serializedName: "port", xmlName: "port", type: { - name: "Number" - } + name: "Number", + }, }, region: { serializedName: "region", xmlName: "region", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PolicyDescriptionCollection: coreClient.CompositeMapper = { @@ -7556,20 +8379,20 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyDescriptionContract" - } - } - } + className: "PolicyDescriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PolicyFragmentCollection: coreClient.CompositeMapper = { @@ -7587,27 +8410,27 @@ export const PolicyFragmentCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyFragmentContract" - } - } - } + className: "PolicyFragmentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceCollection: coreClient.CompositeMapper = { @@ -7625,124 +8448,212 @@ export const ResourceCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceCollectionValueItem" - } - } - } + className: "ResourceCollectionValueItem", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigCollection: coreClient.CompositeMapper = { - serializedName: "PortalConfigCollection", +export const PolicyRestrictionCollection: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionCollection", type: { name: "Composite", - className: "PortalConfigCollection", + className: "PolicyRestrictionCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "PortalConfigContract", + xmlElementName: "PolicyRestrictionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalConfigContract" - } - } - } + className: "PolicyRestrictionContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { - serializedName: "PortalConfigPropertiesSignin", +export const PolicyRestrictionUpdateContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionUpdateContract", type: { name: "Composite", - className: "PortalConfigPropertiesSignin", + className: "PolicyRestrictionUpdateContract", modelProperties: { - require: { - defaultValue: false, - serializedName: "require", - xmlName: "require", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "Boolean" - } - } - } - } -}; - -export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { - serializedName: "PortalConfigPropertiesSignup", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignup", - modelProperties: { - termsOfService: { - serializedName: "termsOfService", - xmlName: "termsOfService", + name: "String", + }, + }, + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", type: { - name: "Composite", - className: "PortalConfigTermsOfServiceProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigTermsOfServiceProperties", +export const OperationResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "OperationResultLogItemContract", type: { name: "Composite", - className: "PortalConfigTermsOfServiceProperties", + className: "OperationResultLogItemContract", modelProperties: { - text: { - serializedName: "text", - xmlName: "text", + objectType: { + serializedName: "objectType", + xmlName: "objectType", type: { - name: "String" - } + name: "String", + }, }, - requireConsent: { - defaultValue: false, - serializedName: "requireConsent", - xmlName: "requireConsent", + action: { + serializedName: "action", + xmlName: "action", + type: { + name: "String", + }, + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigDelegationProperties", +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", + type: { + name: "Composite", + className: "PortalConfigCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalConfigContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalConfigContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin", + modelProperties: { + require: { + defaultValue: false, + serializedName: "require", + xmlName: "require", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignup", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignup", + modelProperties: { + termsOfService: { + serializedName: "termsOfService", + xmlName: "termsOfService", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + }, + }, + }, + }, +}; + +export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = + { + serializedName: "PortalConfigTermsOfServiceProperties", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", + type: { + name: "String", + }, + }, + requireConsent: { + defaultValue: false, + serializedName: "requireConsent", + xmlName: "requireConsent", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigDelegationProperties", type: { name: "Composite", className: "PortalConfigDelegationProperties", @@ -7752,33 +8663,33 @@ export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { serializedName: "delegateRegistration", xmlName: "delegateRegistration", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delegateSubscription: { defaultValue: false, serializedName: "delegateSubscription", xmlName: "delegateSubscription", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delegationUrl: { serializedName: "delegationUrl", xmlName: "delegationUrl", type: { - name: "String" - } + name: "String", + }, }, validationKey: { serializedName: "validationKey", xmlName: "validationKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortalConfigCorsProperties: coreClient.CompositeMapper = { @@ -7795,13 +8706,13 @@ export const PortalConfigCorsProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PortalConfigCspProperties: coreClient.CompositeMapper = { @@ -7815,8 +8726,8 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { serializedName: "mode", xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, reportUri: { serializedName: "reportUri", @@ -7826,10 +8737,10 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, allowedSources: { serializedName: "allowedSources", @@ -7839,13 +8750,13 @@ export const PortalConfigCspProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PortalRevisionCollection: coreClient.CompositeMapper = { @@ -7864,21 +8775,21 @@ export const PortalRevisionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortalRevisionContract" - } - } - } + className: "PortalRevisionContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PortalSettingsCollection: coreClient.CompositeMapper = { @@ -7896,55 +8807,57 @@ export const PortalSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PortalSettingsContract" - } - } - } + className: "PortalSettingsContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } -}; - -export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "SubscriptionsDelegationSettingsProperties", - type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "RegistrationDelegationSettingsProperties", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "SubscriptionsDelegationSettingsProperties", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "RegistrationDelegationSettingsProperties", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const TermsOfServiceProperties: coreClient.CompositeMapper = { serializedName: "TermsOfServiceProperties", @@ -7956,25 +8869,25 @@ export const TermsOfServiceProperties: coreClient.CompositeMapper = { serializedName: "text", xmlName: "text", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", xmlName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, consentRequired: { serializedName: "consentRequired", xmlName: "consentRequired", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { @@ -7987,11 +8900,11 @@ export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { serializedName: "validationKey", xmlName: "validationKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8009,13 +8922,13 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -8029,11 +8942,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { readOnly: true, xmlName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { @@ -8046,38 +8959,39 @@ export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { name: "Composite", - className: "PrivateEndpointConnectionRequestProperties" - } - } - } - } -}; - -export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequestProperties", - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestProperties", - modelProperties: { - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - xmlName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } -}; + className: "PrivateEndpointConnectionRequestProperties", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnectionRequestProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties", + modelProperties: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + xmlName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, + }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { serializedName: "PrivateLinkResourceListResult", @@ -8094,13 +9008,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const ProductUpdateParameters: coreClient.CompositeMapper = { @@ -8111,63 +9025,63 @@ export const ProductUpdateParameters: coreClient.CompositeMapper = { modelProperties: { description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, terms: { serializedName: "properties.terms", xmlName: "properties.terms", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { serializedName: "properties.subscriptionRequired", xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, approvalRequired: { serializedName: "properties.approvalRequired", xmlName: "properties.approvalRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, subscriptionsLimit: { serializedName: "properties.subscriptionsLimit", xmlName: "properties.subscriptionsLimit", type: { - name: "Number" - } + name: "Number", + }, }, state: { serializedName: "properties.state", xmlName: "properties.state", type: { name: "Enum", - allowedValues: ["notPublished", "published"] - } + allowedValues: ["notPublished", "published"], + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SubscriptionCollection: coreClient.CompositeMapper = { @@ -8185,27 +9099,103 @@ export const SubscriptionCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionContract" - } - } - } + className: "SubscriptionContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProductApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkCollection", + type: { + name: "Composite", + className: "ProductApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductApiLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ProductGroupLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkCollection", + type: { + name: "Composite", + className: "ProductGroupLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductGroupLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductGroupLinkContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaCounterCollection: coreClient.CompositeMapper = { @@ -8223,27 +9213,27 @@ export const QuotaCounterCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaCounterContract" - } - } - } + className: "QuotaCounterContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuotaCounterContract: coreClient.CompositeMapper = { @@ -8254,52 +9244,52 @@ export const QuotaCounterContract: coreClient.CompositeMapper = { modelProperties: { counterKey: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "counterKey", required: true, xmlName: "counterKey", type: { - name: "String" - } + name: "String", + }, }, periodKey: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "periodKey", required: true, xmlName: "periodKey", type: { - name: "String" - } + name: "String", + }, }, periodStartTime: { serializedName: "periodStartTime", required: true, xmlName: "periodStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, periodEndTime: { serializedName: "periodEndTime", required: true, xmlName: "periodEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, value: { serializedName: "value", xmlName: "value", type: { name: "Composite", - className: "QuotaCounterValueContractProperties" - } - } - } - } + className: "QuotaCounterValueContractProperties", + }, + }, + }, + }, }; export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { @@ -8312,18 +9302,18 @@ export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { serializedName: "callsCount", xmlName: "callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "kbTransferred", xmlName: "kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { @@ -8336,18 +9326,18 @@ export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { serializedName: "properties.callsCount", xmlName: "properties.callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "properties.kbTransferred", xmlName: "properties.kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RegionListResult: coreClient.CompositeMapper = { @@ -8365,27 +9355,27 @@ export const RegionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionContract" - } - } - } + className: "RegionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RegionContract: coreClient.CompositeMapper = { @@ -8399,25 +9389,25 @@ export const RegionContract: coreClient.CompositeMapper = { readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, isMasterRegion: { serializedName: "isMasterRegion", xmlName: "isMasterRegion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isDeleted: { serializedName: "isDeleted", xmlName: "isDeleted", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReportCollection: coreClient.CompositeMapper = { @@ -8435,27 +9425,27 @@ export const ReportCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ReportRecordContract" - } - } - } + className: "ReportRecordContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ReportRecordContract: coreClient.CompositeMapper = { @@ -8468,188 +9458,188 @@ export const ReportRecordContract: coreClient.CompositeMapper = { serializedName: "name", xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, timestamp: { serializedName: "timestamp", xmlName: "timestamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, interval: { serializedName: "interval", xmlName: "interval", type: { - name: "String" - } + name: "String", + }, }, country: { serializedName: "country", xmlName: "country", type: { - name: "String" - } + name: "String", + }, }, region: { serializedName: "region", xmlName: "region", type: { - name: "String" - } + name: "String", + }, }, zip: { serializedName: "zip", xmlName: "zip", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", readOnly: true, xmlName: "userId", type: { - name: "String" - } + name: "String", + }, }, productId: { serializedName: "productId", readOnly: true, xmlName: "productId", type: { - name: "String" - } + name: "String", + }, }, apiId: { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, operationId: { serializedName: "operationId", xmlName: "operationId", type: { - name: "String" - } + name: "String", + }, }, apiRegion: { serializedName: "apiRegion", xmlName: "apiRegion", type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", xmlName: "subscriptionId", type: { - name: "String" - } + name: "String", + }, }, callCountSuccess: { serializedName: "callCountSuccess", xmlName: "callCountSuccess", type: { - name: "Number" - } + name: "Number", + }, }, callCountBlocked: { serializedName: "callCountBlocked", xmlName: "callCountBlocked", type: { - name: "Number" - } + name: "Number", + }, }, callCountFailed: { serializedName: "callCountFailed", xmlName: "callCountFailed", type: { - name: "Number" - } + name: "Number", + }, }, callCountOther: { serializedName: "callCountOther", xmlName: "callCountOther", type: { - name: "Number" - } + name: "Number", + }, }, callCountTotal: { serializedName: "callCountTotal", xmlName: "callCountTotal", type: { - name: "Number" - } + name: "Number", + }, }, bandwidth: { serializedName: "bandwidth", xmlName: "bandwidth", type: { - name: "Number" - } + name: "Number", + }, }, cacheHitCount: { serializedName: "cacheHitCount", xmlName: "cacheHitCount", type: { - name: "Number" - } + name: "Number", + }, }, cacheMissCount: { serializedName: "cacheMissCount", xmlName: "cacheMissCount", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeAvg: { serializedName: "apiTimeAvg", xmlName: "apiTimeAvg", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeMin: { serializedName: "apiTimeMin", xmlName: "apiTimeMin", type: { - name: "Number" - } + name: "Number", + }, }, apiTimeMax: { serializedName: "apiTimeMax", xmlName: "apiTimeMax", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeAvg: { serializedName: "serviceTimeAvg", xmlName: "serviceTimeAvg", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeMin: { serializedName: "serviceTimeMin", xmlName: "serviceTimeMin", type: { - name: "Number" - } + name: "Number", + }, }, serviceTimeMax: { serializedName: "serviceTimeMax", xmlName: "serviceTimeMax", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RequestReportCollection: coreClient.CompositeMapper = { @@ -8667,20 +9657,20 @@ export const RequestReportCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RequestReportRecordContract" - } - } - } + className: "RequestReportRecordContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RequestReportRecordContract: coreClient.CompositeMapper = { @@ -8693,132 +9683,132 @@ export const RequestReportRecordContract: coreClient.CompositeMapper = { serializedName: "apiId", xmlName: "apiId", type: { - name: "String" - } + name: "String", + }, }, operationId: { serializedName: "operationId", xmlName: "operationId", type: { - name: "String" - } + name: "String", + }, }, productId: { serializedName: "productId", readOnly: true, xmlName: "productId", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", readOnly: true, xmlName: "userId", type: { - name: "String" - } + name: "String", + }, }, method: { serializedName: "method", xmlName: "method", type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, ipAddress: { serializedName: "ipAddress", xmlName: "ipAddress", type: { - name: "String" - } + name: "String", + }, }, backendResponseCode: { serializedName: "backendResponseCode", xmlName: "backendResponseCode", type: { - name: "String" - } + name: "String", + }, }, responseCode: { serializedName: "responseCode", xmlName: "responseCode", type: { - name: "Number" - } + name: "Number", + }, }, responseSize: { serializedName: "responseSize", xmlName: "responseSize", type: { - name: "Number" - } + name: "Number", + }, }, timestamp: { serializedName: "timestamp", xmlName: "timestamp", type: { - name: "DateTime" - } + name: "DateTime", + }, }, cache: { serializedName: "cache", xmlName: "cache", type: { - name: "String" - } + name: "String", + }, }, apiTime: { serializedName: "apiTime", xmlName: "apiTime", type: { - name: "Number" - } + name: "Number", + }, }, serviceTime: { serializedName: "serviceTime", xmlName: "serviceTime", type: { - name: "Number" - } + name: "Number", + }, }, apiRegion: { serializedName: "apiRegion", xmlName: "apiRegion", type: { - name: "String" - } + name: "String", + }, }, subscriptionId: { serializedName: "subscriptionId", xmlName: "subscriptionId", type: { - name: "String" - } + name: "String", + }, }, requestId: { serializedName: "requestId", xmlName: "requestId", type: { - name: "String" - } + name: "String", + }, }, requestSize: { serializedName: "requestSize", xmlName: "requestSize", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GlobalSchemaCollection: coreClient.CompositeMapper = { @@ -8837,28 +9827,28 @@ export const GlobalSchemaCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GlobalSchemaContract" - } - } - } + className: "GlobalSchemaContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TenantSettingsCollection: coreClient.CompositeMapper = { @@ -8877,21 +9867,21 @@ export const TenantSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TenantSettingsContract" - } - } - } + className: "TenantSettingsContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkusResult: coreClient.CompositeMapper = { @@ -8910,21 +9900,21 @@ export const ApiManagementSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSku" - } - } - } + className: "ApiManagementSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSku: coreClient.CompositeMapper = { @@ -8938,56 +9928,56 @@ export const ApiManagementSku: coreClient.CompositeMapper = { readOnly: true, xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, xmlName: "tier", type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, xmlName: "size", type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, xmlName: "family", type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, xmlName: "kind", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", xmlName: "capacity", type: { name: "Composite", - className: "ApiManagementSkuCapacity" - } + className: "ApiManagementSkuCapacity", + }, }, locations: { serializedName: "locations", @@ -8998,10 +9988,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -9013,10 +10003,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuLocationInfo" - } - } - } + className: "ApiManagementSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -9027,10 +10017,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -9042,10 +10032,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCosts" - } - } - } + className: "ApiManagementSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9057,10 +10047,10 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } + className: "ApiManagementSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -9072,13 +10062,13 @@ export const ApiManagementSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuRestrictions" - } - } - } - } - } - } + className: "ApiManagementSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { @@ -9092,24 +10082,24 @@ export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { readOnly: true, xmlName: "minimum", type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, xmlName: "maximum", type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, xmlName: "default", type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", @@ -9117,11 +10107,11 @@ export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { xmlName: "scaleType", type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, }; export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { @@ -9135,8 +10125,8 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { readOnly: true, xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -9147,10 +10137,10 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -9162,13 +10152,13 @@ export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuZoneDetails" - } - } - } - } - } - } + className: "ApiManagementSkuZoneDetails", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { @@ -9186,10 +10176,10 @@ export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9201,13 +10191,13 @@ export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } - } - } - } + className: "ApiManagementSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { @@ -9221,19 +10211,19 @@ export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkuCosts: coreClient.CompositeMapper = { @@ -9247,27 +10237,27 @@ export const ApiManagementSkuCosts: coreClient.CompositeMapper = { readOnly: true, xmlName: "meterID", type: { - name: "String" - } + name: "String", + }, }, quantity: { serializedName: "quantity", readOnly: true, xmlName: "quantity", type: { - name: "Number" - } + name: "Number", + }, }, extendedUnit: { serializedName: "extendedUnit", readOnly: true, xmlName: "extendedUnit", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { @@ -9282,8 +10272,8 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { xmlName: "type", type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9294,18 +10284,18 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", xmlName: "restrictionInfo", type: { name: "Composite", - className: "ApiManagementSkuRestrictionInfo" - } + className: "ApiManagementSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", @@ -9313,11 +10303,11 @@ export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { xmlName: "reasonCode", type: { name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, }; export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -9335,10 +10325,10 @@ export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9349,13 +10339,13 @@ export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SubscriptionCreateParameters: coreClient.CompositeMapper = { @@ -9368,48 +10358,48 @@ export const SubscriptionCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.ownerId", xmlName: "properties.ownerId", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.primaryKey", xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", @@ -9422,19 +10412,19 @@ export const SubscriptionCreateParameters: coreClient.CompositeMapper = { "expired", "submitted", "rejected", - "cancelled" - ] - } + "cancelled", + ], + }, }, allowTracing: { serializedName: "properties.allowTracing", xmlName: "properties.allowTracing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { @@ -9447,51 +10437,51 @@ export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.ownerId", xmlName: "properties.ownerId", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, expirationDate: { serializedName: "properties.expirationDate", xmlName: "properties.expirationDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, displayName: { serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.primaryKey", xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "properties.state", @@ -9504,26 +10494,26 @@ export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { "expired", "submitted", "rejected", - "cancelled" - ] - } + "cancelled", + ], + }, }, stateComment: { serializedName: "properties.stateComment", xmlName: "properties.stateComment", type: { - name: "String" - } + name: "String", + }, }, allowTracing: { serializedName: "properties.allowTracing", xmlName: "properties.allowTracing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SubscriptionKeysContract: coreClient.CompositeMapper = { @@ -9535,27 +10525,27 @@ export const SubscriptionKeysContract: coreClient.CompositeMapper = { primaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "primaryKey", xmlName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "secondaryKey", xmlName: "secondaryKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagCreateUpdateParameters: coreClient.CompositeMapper = { @@ -9567,16 +10557,130 @@ export const TagCreateUpdateParameters: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const TagApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagApiLinkCollection", + type: { + name: "Composite", + className: "TagApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagApiLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagOperationLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkCollection", + type: { + name: "Composite", + className: "TagOperationLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagOperationLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagOperationLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagProductLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagProductLinkCollection", + type: { + name: "Composite", + className: "TagProductLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagProductLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagProductLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; export const AccessInformationCollection: coreClient.CompositeMapper = { @@ -9595,28 +10699,28 @@ export const AccessInformationCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessInformationContract" - } - } - } + className: "AccessInformationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessInformationCreateParameters: coreClient.CompositeMapper = { @@ -9629,32 +10733,32 @@ export const AccessInformationCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.principalId", xmlName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { serializedName: "properties.primaryKey", xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "properties.secondaryKey", xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "properties.enabled", xmlName: "properties.enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { @@ -9667,11 +10771,11 @@ export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.enabled", xmlName: "properties.enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AccessInformationSecretsContract: coreClient.CompositeMapper = { @@ -9684,39 +10788,39 @@ export const AccessInformationSecretsContract: coreClient.CompositeMapper = { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", xmlName: "principalId", type: { - name: "String" - } + name: "String", + }, }, primaryKey: { serializedName: "primaryKey", xmlName: "primaryKey", type: { - name: "String" - } + name: "String", + }, }, secondaryKey: { serializedName: "secondaryKey", xmlName: "secondaryKey", type: { - name: "String" - } + name: "String", + }, }, enabled: { serializedName: "enabled", xmlName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DeployConfigurationParameters: coreClient.CompositeMapper = { @@ -9729,49 +10833,18 @@ export const DeployConfigurationParameters: coreClient.CompositeMapper = { serializedName: "properties.branch", xmlName: "properties.branch", type: { - name: "String" - } + name: "String", + }, }, force: { serializedName: "properties.force", xmlName: "properties.force", type: { - name: "Boolean" - } - } - } - } -}; - -export const OperationResultLogItemContract: coreClient.CompositeMapper = { - serializedName: "OperationResultLogItemContract", - type: { - name: "Composite", - className: "OperationResultLogItemContract", - modelProperties: { - objectType: { - serializedName: "objectType", - xmlName: "objectType", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - xmlName: "action", - type: { - name: "String" - } + name: "Boolean", + }, }, - objectKey: { - serializedName: "objectKey", - xmlName: "objectKey", - type: { - name: "String" - } - } - } - } + }, + }, }; export const SaveConfigurationParameter: coreClient.CompositeMapper = { @@ -9784,18 +10857,18 @@ export const SaveConfigurationParameter: coreClient.CompositeMapper = { serializedName: "properties.branch", xmlName: "properties.branch", type: { - name: "String" - } + name: "String", + }, }, force: { serializedName: "properties.force", xmlName: "properties.force", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const UserCreateParameters: coreClient.CompositeMapper = { @@ -9809,15 +10882,15 @@ export const UserCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "properties.note", xmlName: "properties.note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "properties.identities", @@ -9828,67 +10901,67 @@ export const UserCreateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, email: { constraints: { MaxLength: 254, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.email", xmlName: "properties.email", type: { - name: "String" - } + name: "String", + }, }, firstName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.firstName", xmlName: "properties.firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.lastName", xmlName: "properties.lastName", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, appType: { serializedName: "properties.appType", xmlName: "properties.appType", type: { - name: "String" - } + name: "String", + }, }, confirmation: { serializedName: "properties.confirmation", xmlName: "properties.confirmation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserUpdateParameters: coreClient.CompositeMapper = { @@ -9902,15 +10975,15 @@ export const UserUpdateParameters: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, note: { serializedName: "properties.note", xmlName: "properties.note", type: { - name: "String" - } + name: "String", + }, }, identities: { serializedName: "properties.identities", @@ -9921,53 +10994,53 @@ export const UserUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, email: { constraints: { MaxLength: 254, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.email", xmlName: "properties.email", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, firstName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.firstName", xmlName: "properties.firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.lastName", xmlName: "properties.lastName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GenerateSsoUrlResult: coreClient.CompositeMapper = { @@ -9980,11 +11053,11 @@ export const GenerateSsoUrlResult: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentityCollection: coreClient.CompositeMapper = { @@ -10002,27 +11075,27 @@ export const UserIdentityCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "UserIdentityContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserTokenParameters: coreClient.CompositeMapper = { @@ -10036,18 +11109,18 @@ export const UserTokenParameters: coreClient.CompositeMapper = { xmlName: "properties.keyType", type: { name: "Enum", - allowedValues: ["primary", "secondary"] - } + allowedValues: ["primary", "secondary"], + }, }, expiry: { serializedName: "properties.expiry", xmlName: "properties.expiry", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const UserTokenResult: coreClient.CompositeMapper = { @@ -10060,68 +11133,83 @@ export const UserTokenResult: coreClient.CompositeMapper = { serializedName: "value", xmlName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCollection: coreClient.CompositeMapper = { - serializedName: "DocumentationCollection", +export const WorkspaceCollection: coreClient.CompositeMapper = { + serializedName: "WorkspaceCollection", type: { name: "Composite", - className: "DocumentationCollection", + className: "WorkspaceCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "DocumentationContract", + xmlElementName: "WorkspaceContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DocumentationContract" - } - } - } + className: "WorkspaceContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationUpdateContract: coreClient.CompositeMapper = { - serializedName: "DocumentationUpdateContract", +export const GatewaySku: coreClient.CompositeMapper = { + serializedName: "GatewaySku", type: { name: "Composite", - className: "DocumentationUpdateContract", + className: "GatewaySku", modelProperties: { - title: { - serializedName: "properties.title", - xmlName: "properties.title", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + }, + }, +}; + +export const ApiVersionConstraintAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ApiVersionConstraintAutoGenerated", + type: { + name: "Composite", + className: "ApiVersionConstraintAutoGenerated", + modelProperties: { + minApiVersion: { + serializedName: "minApiVersion", + xmlName: "minApiVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiRevisionInfoContract: coreClient.CompositeMapper = { @@ -10134,39 +11222,70 @@ export const ApiRevisionInfoContract: coreClient.CompositeMapper = { serializedName: "sourceApiId", xmlName: "sourceApiId", type: { - name: "String" - } + name: "String", + }, }, apiVersionName: { constraints: { - MaxLength: 100 + MaxLength: 100, }, serializedName: "apiVersionName", xmlName: "apiVersionName", type: { - name: "String" - } + name: "String", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, serializedName: "apiRevisionDescription", xmlName: "apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSet: { serializedName: "apiVersionSet", xmlName: "apiVersionSet", type: { name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + className: "ApiVersionSetContractDetails", + }, + }, + }, + }, +}; + +export const PolicyWithComplianceCollection: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceCollection", + type: { + name: "Composite", + className: "PolicyWithComplianceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyWithComplianceContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyWithComplianceContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; export const QuotaCounterValueContract: coreClient.CompositeMapper = { @@ -10179,18 +11298,18 @@ export const QuotaCounterValueContract: coreClient.CompositeMapper = { serializedName: "value.callsCount", xmlName: "value.callsCount", type: { - name: "Number" - } + name: "Number", + }, }, kbTransferred: { serializedName: "value.kbTransferred", xmlName: "value.kbTransferred", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ResolverResultLogItemContract: coreClient.CompositeMapper = { @@ -10203,215 +11322,25 @@ export const ResolverResultLogItemContract: coreClient.CompositeMapper = { serializedName: "objectType", xmlName: "objectType", type: { - name: "String" - } + name: "String", + }, }, action: { serializedName: "action", xmlName: "action", type: { - name: "String" - } + name: "String", + }, }, objectKey: { serializedName: "objectKey", xmlName: "objectKey", type: { - name: "String" - } - } - } - } -}; - -export const ApiContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractProperties", - type: { - name: "Composite", - className: "ApiContractProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", - type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - required: true, - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } -}; - -export const ApiContractUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractUpdateProperties", - type: { - name: "Composite", - className: "ApiContractUpdateProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "path", - xmlName: "path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiTagResourceContractProperties", - type: { - name: "Composite", - className: "ApiTagResourceContractProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 + name: "String", }, - serializedName: "path", - xmlName: "path", - type: { - name: "String" - } }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -10420,9 +11349,9 @@ export const ProxyResource: coreClient.CompositeMapper = { name: "Composite", className: "ProxyResource", modelProperties: { - ...Resource.type.modelProperties - } - } + ...Resource.type.modelProperties, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -10437,27 +11366,27 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { xmlName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -10472,8 +11401,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { readOnly: true, xmlName: "properties.groupId", type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -10484,10 +11413,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -10497,150 +11426,1278 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", +export const ApiManagementGatewayProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayProperties", type: { name: "Composite", - className: "OperationContractProperties", + className: "ApiManagementGatewayProperties", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", - type: { - name: "String" - } - }, - method: { - serializedName: "method", - required: true, - xmlName: "method", - type: { - name: "String" - } - }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", - type: { - name: "String" - } - } - } - } + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const ApiManagementGatewayUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateProperties", + modelProperties: { + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, + }; + +export const ApiManagementGatewayResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayResource", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "ApiManagementGatewayResource", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" - } + name: "Composite", + className: "ApiManagementGatewaySkuProperties", + }, }, - method: { - serializedName: "method", - xmlName: "method", + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "String" - } - }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + name: "Composite", + className: "SystemData", }, - serializedName: "urlTemplate", + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", + }, + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + }, + }, +}; + +export const ApiManagementGatewayUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", + }, + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + }, + }, + }; + +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", + type: { + name: "Composite", + className: "ApiManagementServiceResource", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractProperties", + type: { + name: "Composite", + className: "ApiContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + required: true, + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiContractUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractUpdateProperties", + type: { + name: "Composite", + className: "ApiContractUpdateProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", + type: { + name: "Composite", + className: "ApiTagResourceContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String", + }, + }, + method: { + serializedName: "method", + required: true, + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "urlTemplate", + required: true, xmlName: "urlTemplate", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", type: { name: "Composite", - className: "ProductContractProperties", + className: "OperationUpdateContractProperties", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...OperationEntityBaseContract.type.modelProperties, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", - required: true, xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "urlTemplate", + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, + }, + }, }; -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", type: { name: "Composite", - className: "ProductTagResourceContractProperties", + className: "ProductContractProperties", modelProperties: { ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { + displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, - serializedName: "name", + serializedName: "displayName", required: true, - xmlName: "name", + xmlName: "displayName", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; export const ProductUpdateProperties: coreClient.CompositeMapper = { serializedName: "ProductUpdateProperties", @@ -10652,16 +12709,16 @@ export const ProductUpdateProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueContractProperties: coreClient.CompositeMapper = { @@ -10676,27 +12733,27 @@ export const IssueContractProperties: coreClient.CompositeMapper = { required: true, xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", required: true, xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", required: true, xmlName: "userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IssueUpdateContractProperties: coreClient.CompositeMapper = { @@ -10710,25 +12767,25 @@ export const IssueUpdateContractProperties: coreClient.CompositeMapper = { serializedName: "title", xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, userId: { serializedName: "userId", xmlName: "userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TagDescriptionContractProperties: coreClient.CompositeMapper = { @@ -10742,22 +12799,22 @@ export const TagDescriptionContractProperties: coreClient.CompositeMapper = { serializedName: "tagId", xmlName: "tagId", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { MaxLength: 160, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { @@ -10770,8139 +12827,9528 @@ export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { displayName: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, versioningScheme: { serializedName: "versioningScheme", required: true, xmlName: "versioningScheme", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = + { + serializedName: "ApiVersionSetUpdateParametersProperties", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParametersProperties", + modelProperties: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerUpdateContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerUpdateContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", + className: "BackendContractProperties", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + ...BackendBaseParameters.type.modelProperties, + url: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", type: { name: "Composite", - className: "AuthorizationServerContractProperties", + className: "BackendUpdateParameterProperties", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { + ...BackendBaseParameters.type.modelProperties, + url: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "url", + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + }, + }, +}; + +export const BackendBaseParametersPool: coreClient.CompositeMapper = { + serializedName: "BackendBaseParametersPool", + type: { + name: "Composite", + className: "BackendBaseParametersPool", + modelProperties: { + ...BackendPool.type.modelProperties, + }, + }, +}; + +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", + type: { + name: "Composite", + className: "KeyVaultContractProperties", + modelProperties: { + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "Boolean" - } + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", + }, + }, +}; + +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", + type: { + name: "Composite", + className: "ApiManagementServiceProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherEmail", required: true, - xmlName: "clientRegistrationEndpoint", + xmlName: "publisherEmail", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherName", required: true, - xmlName: "authorizationEndpoint", + xmlName: "publisherName", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + }, + }, +}; + +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherName", + xmlName: "publisherName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", + type: { + name: "Composite", + className: "UserContractProperties", + modelProperties: { + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", + type: { + name: "String", + }, + }, + lastName: { + serializedName: "lastName", + xmlName: "lastName", + type: { + name: "String", + }, + }, + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String", + }, + }, + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", + type: { + name: "DateTime", + }, + }, + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "UserCreateParameterProperties", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { + ...UserEntityBaseParameters.type.modelProperties, + email: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 254, + MinLength: 1, }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + serializedName: "email", + required: true, + xmlName: "email", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", + appType: { + serializedName: "appType", + xmlName: "appType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "BackendContractProperties", + className: "UserUpdateParametersProperties", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + ...UserEntityBaseParameters.type.modelProperties, + email: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 254, + MinLength: 1, }, - serializedName: "url", - required: true, - xmlName: "url", + serializedName: "email", + xmlName: "email", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "String" - } - } - } - } -}; - -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", - type: { - name: "Composite", - className: "BackendUpdateParameterProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + name: "String", + }, + }, + firstName: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "url", - xmlName: "url", + serializedName: "firstName", + xmlName: "firstName", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", - type: { - name: "Composite", - className: "KeyVaultContractProperties", - modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "lastName", + xmlName: "lastName", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "IdentityProviderContractProperties", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherEmail", + serializedName: "clientId", required: true, - xmlName: "publisherEmail", + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = + { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "IdentityProviderUpdateProperties", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + serializedName: "clientId", + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1, }, - serializedName: "publisherName", - xmlName: "publisherName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "NamedValueContractProperties", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + name: "String", + }, }, - identity: { - serializedName: "identity", - xmlName: "identity", + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "value", + xmlName: "value", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } + name: "String", + }, }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { name: "Composite", - className: "SystemData" - } - }, - location: { - serializedName: "location", - required: true, - xmlName: "location", - type: { - name: "String" - } + className: "KeyVaultContractProperties", + }, }, - etag: { - serializedName: "etag", + provisioningState: { + serializedName: "provisioningState", readOnly: true, - xmlName: "etag", + xmlName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + }, + }, +}; + +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", + type: { + name: "Composite", + className: "NamedValueCreateContractProperties", + modelProperties: { + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - notificationSenderEmail: { + value: { constraints: { - MaxLength: 100 + MaxLength: 4096, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + }, + }, +}; + +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", + type: { + name: "Composite", + className: "NamedValueUpdateParameterProperties", + modelProperties: { + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + value: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "value", + xmlName: "value", type: { - name: "DateTime" - } + name: "String", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + }, + }, +}; + +export const AllPoliciesContract: coreClient.CompositeMapper = { + serializedName: "AllPoliciesContract", + type: { + name: "Composite", + className: "AllPoliciesContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", + type: { + name: "Composite", + className: "ApiContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" - } + name: "Composite", + className: "AuthenticationSettingsContract", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "String" - } + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "String", + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" - } + name: "Boolean", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" - } + name: "Boolean", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "String", + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "String", + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } + name: "Boolean", + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "String" - } + name: "Composite", + className: "ApiContactInformation", + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "ApiLicenseInformation", + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { - name: "Composite", - className: "ApiVersionConstraint" - } + name: "String", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "Boolean" - } + name: "String", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "String", + }, + }, + }, }, - platformVersion: { - serializedName: "properties.platformVersion", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - xmlName: "properties.platformVersion", + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - publisherEmail: { - constraints: { - MaxLength: 100 + }, + }, +}; + +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", + type: { + name: "Composite", + className: "ApiReleaseContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String", }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" - } + name: "DateTime", + }, }, - publisherName: { - constraints: { - MaxLength: 100 + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime", }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + }, + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "OperationContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, + }, }, - identity: { - serializedName: "identity", - xmlName: "identity", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } + name: "String", + }, }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" - } + name: "Composite", + className: "RequestContract", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - notificationSenderEmail: { - constraints: { - MaxLength: 100 + name: "Composite", + className: "ResponseContract", + }, + }, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + }, + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { - name: "String" - } + name: "String", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { - name: "DateTime" - } + name: "String", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + }, + }, +}; + +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", + type: { + name: "Composite", + className: "PolicyContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + }, + }, +}; + +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", + type: { + name: "Composite", + className: "TagContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", + type: { + name: "Composite", + className: "ResolverContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + path: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + }, + }, +}; + +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", + type: { + name: "Composite", + className: "ProductContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "String", + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "String" - } + name: "Number", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "Enum", + allowedValues: ["notPublished", "published"], + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "String", + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + }, + }, +}; + +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { + name: "Composite", + className: "SchemaContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } + name: "String", + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + }, + }, +}; + +export const DiagnosticContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticContract", + type: { + name: "Composite", + className: "DiagnosticContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { name: "Composite", - className: "ApiVersionConstraint" - } + className: "SamplingSettings", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { - name: "Boolean" - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", type: { - name: "String" - } - }, - publisherEmail: { - constraints: { - MaxLength: 100 + name: "Boolean", }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", - type: { - name: "String" - } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", - type: { - name: "String" - } - } - } - } -}; - -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", - type: { - name: "Composite", - className: "UserContractProperties", - modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "String" - } + name: "String", + }, }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", type: { - name: "String" - } + name: "String", + }, }, - email: { - serializedName: "email", - xmlName: "email", + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", type: { - name: "String" - } + name: "String", + }, }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", type: { - name: "DateTime" - } + name: "Boolean", + }, }, - groups: { - serializedName: "groups", - readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } - } - } - } - } + }, + }, }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "IssueContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - required: true, - xmlName: "email", + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "DateTime", }, - serializedName: "firstName", - required: true, - xmlName: "firstName", - type: { - name: "String" - } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "String", }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + }, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "password", - xmlName: "password", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - appType: { - serializedName: "appType", - xmlName: "appType", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "UserUpdateParametersProperties", + className: "IssueCommentContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "password", - xmlName: "password", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "DateTime", }, - serializedName: "firstName", - xmlName: "firstName", - type: { - name: "String" - } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - xmlName: "lastName", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "IssueAttachmentContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", + type: { + name: "String", }, - serializedName: "clientSecret", - xmlName: "clientSecret", + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + className: "TagDescriptionContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + externalDocsUrl: { constraints: { - MinLength: 1 + MaxLength: 2000, }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", + type: { + name: "String", + }, + }, + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", + type: { + name: "String", + }, + }, + displayName: { constraints: { - MinLength: 1 + MaxLength: 160, + MinLength: 1, }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "WikiContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract", + }, + }, }, - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "ApiVersionSetContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", + type: { + name: "String", + }, + }, + versionHeaderName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, - value: { + displayName: { constraints: { - MaxLength: 4096 + MaxLength: 100, + MinLength: 1, }, - serializedName: "value", - xmlName: "value", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + className: "AuthorizationProviderContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - }, - value: { - constraints: { - MaxLength: 4096 + name: "String", }, - serializedName: "value", - xmlName: "value", + }, + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "AuthorizationProviderOAuth2Settings", + }, + }, + }, + }, }; -export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameterProperties", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "NamedValueUpdateParameterProperties", + className: "AuthorizationContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", + type: { + name: "String", }, - serializedName: "value", - xmlName: "value", + }, + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "AuthorizationError", + }, + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "ApiCreateOrUpdateProperties", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "String" - } - }, - format: { - serializedName: "format", - xmlName: "format", + ...ProxyResource.type.modelProperties, + appIds: { + serializedName: "properties.appIds", + xmlName: "properties.appIds", + xmlElementName: "AuthorizationAccessPolicyContractPropertiesAppIdsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } + name: "String", + }, }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { - name: "String" - } + name: "String", + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "translateRequiredQueryParameters", - xmlName: "translateRequiredQueryParameters", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "ApiContract", + className: "AuthorizationServerContract", modelProperties: { ...ProxyResource.type.modelProperties, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", - type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } - }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", - type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", - type: { - name: "String" - } - }, - apiVersion: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", - type: { - name: "String" - } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract", + }, + }, + }, }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { - name: "String" - } + name: "String", + }, }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { - name: "Composite", - className: "ApiContactInformation" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { - name: "Composite", - className: "ApiLicenseInformation" - } + name: "String", + }, }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 50, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - serviceUrl: { - constraints: { - MaxLength: 2000 + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean", }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "String" - } + name: "Boolean", + }, }, - path: { - constraints: { - MaxLength: 400 + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", + type: { + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + name: "String", + }, + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "ApiReleaseContract", + className: "AuthorizationServerUpdateContract", modelProperties: { ...ProxyResource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", - type: { - name: "String" - } - } - } - } -}; - -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", - type: { - name: "Composite", - className: "OperationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ParameterContract" - } - } - } + className: "TokenBodyParameterContract", + }, + }, + }, }, - description: { - constraints: { - MaxLength: 1000 + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", + type: { + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "String" - } + name: "Boolean", + }, }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { - name: "Composite", - className: "RequestContract" - } + name: "String", + }, }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ResponseContract" - } - } - } + name: "String", + }, + }, + }, }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 50, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "String" - } + name: "Boolean", + }, }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean", }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + }, + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "String" - } - } - } - } -}; - -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", - type: { - name: "Composite", - className: "PolicyContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" - } - } - } - } -}; - -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", - type: { - name: "Composite", - className: "TagContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResolverContract: coreClient.CompositeMapper = { - serializedName: "ResolverContract", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "ResolverContract", + className: "BackendContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { + title: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } }, description: { constraints: { - MaxLength: 1000 + MaxLength: 2000, + MinLength: 1, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - } - } - } -}; - -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", - type: { - name: "Composite", - className: "ProductContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { + name: "String", + }, + }, + resourceId: { constraints: { - MaxLength: 1000 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", + type: { + name: "Composite", + className: "BackendProperties", + }, + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" - } + name: "Composite", + className: "BackendCredentialsContract", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendProxyContract", + }, }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendTlsProperties", + }, }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", type: { - name: "Number" - } + name: "Composite", + className: "BackendCircuitBreaker", + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] - } + name: "Composite", + className: "BackendBaseParametersPool", + }, }, - displayName: { + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + url: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", + type: { + name: "String", + }, + }, + }, + }, }; -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "SchemaContract", + className: "BackendReconnectContract", modelProperties: { ...ProxyResource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", - type: { - name: "String" - } - }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "TimeSpan", + }, }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", type: { name: "Composite", - className: "DiagnosticContract", + className: "CacheContract", modelProperties: { ...ProxyResource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", - type: { - name: "String" - } - }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + description: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + connectionString: { + constraints: { + MaxLength: 300, + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { - name: "String" - } + name: "String", + }, }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + useFromLocation: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + resourceId: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "IssueContract", + className: "CertificateContract", modelProperties: { ...ProxyResource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractProperties", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "IssueCommentContract", + className: "ContentTypeContract", modelProperties: { ...ProxyResource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } + name: "String", + }, }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { - name: "DateTime" - } + name: "String", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "ContentItemContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "TagDescriptionContract", + className: "DeletedServiceContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { - name: "String" - } - }, - externalDocsUrl: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", - type: { - name: "String" - } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { - name: "String" - } + name: "String", + }, }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 + name: "DateTime", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const WikiContract: coreClient.CompositeMapper = { - serializedName: "WikiContract", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "WikiContract", + className: "DocumentationContract", modelProperties: { ...ProxyResource.type.modelProperties, - documents: { - serializedName: "properties.documents", - xmlName: "properties.documents", - xmlElementName: "WikiDocumentationContract", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WikiDocumentationContract" - } - } - } - } - } - } + name: "String", + }, + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ApiVersionSetContract", + className: "EmailTemplateContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - versionQueryName: { + subject: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 1000, + MinLength: 1, }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } - }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", - type: { - name: "String" - } }, - displayName: { + body: { constraints: { - MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...ProxyResource.type.modelProperties, + name: "String", + }, + }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + isDefault: { + serializedName: "properties.isDefault", + readOnly: true, + xmlName: "properties.isDefault", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", - type: { - name: "String" - } + className: "EmailTemplateParametersContractProperties", + }, + }, + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + }, + }, +}; + +export const GatewayContract: coreClient.CompositeMapper = { + serializedName: "GatewayContract", + type: { + name: "Composite", + className: "GatewayContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + xmlName: "properties.locationData", type: { - name: "Boolean" - } + name: "Composite", + className: "ResourceLocationDataContract", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationContract", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", + type: { + name: "String", + }, + }, + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", + type: { + name: "String", + }, + }, + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", + type: { + name: "Boolean", + }, + }, + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", + type: { + name: "Boolean", + }, + }, + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", + type: { + name: "Boolean", + }, + }, + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", + type: { + name: "Boolean", + }, + }, }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + }, + }; + +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", + type: { + name: "Composite", + className: "AssociationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + defaultValue: "created", + isConstant: true, + serializedName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + }, + }, +}; + +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", type: { - name: "String" - } + name: "Boolean", + }, }, + }, + }, +}; + +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", + type: { + name: "Composite", + className: "GroupContract", + modelProperties: { + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", - type: { - name: "Boolean" - } - }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + builtIn: { + serializedName: "properties.builtIn", + readOnly: true, + xmlName: "properties.builtIn", type: { - name: "String" - } + name: "Boolean", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Enum", + allowedValues: ["custom", "system", "external"], + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContract", + className: "UserContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } + name: "String", + }, }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { - name: "String" - } + name: "String", + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "Boolean" - } + name: "String", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + }, + }, +}; + +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", + type: { + name: "Composite", + className: "IdentityProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + allowedTenants: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxItems: 32, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", + type: { + name: "String", + }, + }, + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, clientId: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { + constraints: { + MinLength: 1, + }, serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderContract", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "AuthorizationProviderContract", + className: "IdentityProviderCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "String" - } + name: "String", + }, }, - identityProvider: { - serializedName: "properties.identityProvider", - xmlName: "properties.identityProvider", + allowedTenants: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - oauth2: { - serializedName: "properties.oauth2", - xmlName: "properties.oauth2", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings" - } - } - } - } -}; - -export const AuthorizationContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationContract", - type: { - name: "Composite", - className: "AuthorizationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - authorizationType: { - serializedName: "properties.authorizationType", - xmlName: "properties.authorizationType", + name: "String", + }, + }, + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, - oAuth2GrantType: { - serializedName: "properties.oauth2grantType", - xmlName: "properties.oauth2grantType", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "Composite", - className: "AuthorizationError" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicyContract", - type: { - name: "Composite", - className: "AuthorizationAccessPolicyContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tenantId: { - serializedName: "properties.tenantId", - xmlName: "properties.tenantId", + name: "String", + }, + }, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, - objectId: { - serializedName: "properties.objectId", - xmlName: "properties.objectId", + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", +export const LoggerContract: coreClient.CompositeMapper = { + serializedName: "LoggerContract", type: { name: "Composite", - className: "BackendContract", + className: "LoggerContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { - name: "String" - } + name: "String", + }, }, description: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 256, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", - type: { - name: "Composite", - className: "BackendProperties" - } }, credentials: { serializedName: "properties.credentials", xmlName: "properties.credentials", type: { - name: "Composite", - className: "BackendCredentialsContract" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Composite", - className: "BackendProxyContract" - } + name: "Boolean", + }, }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", - type: { - name: "Composite", - className: "BackendReconnectContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", +export const NamedValueContract: coreClient.CompositeMapper = { + serializedName: "NamedValueContract", type: { name: "Composite", - className: "CacheContract", + className: "NamedValueContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { + tags: { constraints: { - MaxLength: 2000 + MaxItems: 32, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - connectionString: { + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", + type: { + name: "Boolean", + }, + }, + displayName: { constraints: { - MaxLength: 300 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - useFromLocation: { + value: { constraints: { - MaxLength: 256 + MaxLength: 4096, }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - resourceId: { - constraints: { - MaxLength: 2000 + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", + type: { + name: "Composite", + className: "KeyVaultContractProperties", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", type: { name: "Composite", - className: "CertificateContract", + className: "NamedValueCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + tags: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "String" - } + name: "Boolean", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "DateTime" - } + name: "String", + }, }, keyVault: { serializedName: "properties.keyVault", xmlName: "properties.keyVault", type: { name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", +export const NotificationContract: coreClient.CompositeMapper = { + serializedName: "NotificationContract", type: { name: "Composite", - className: "ContentTypeContract", + className: "NotificationContract", modelProperties: { ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", - type: { - name: "String" - } - }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + title: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "Composite", + className: "RecipientsContractProperties", + }, }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", +export const RecipientUserContract: coreClient.CompositeMapper = { + serializedName: "RecipientUserContract", type: { name: "Composite", - className: "ContentItemContract", + className: "RecipientUserContract", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", +export const RecipientEmailContract: coreClient.CompositeMapper = { + serializedName: "RecipientEmailContract", type: { name: "Composite", - className: "DeletedServiceContract", + className: "RecipientEmailContract", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", - type: { - name: "String" - } - }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", - type: { - name: "String" - } - }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "DateTime" - } + name: "String", + }, }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", type: { name: "Composite", - className: "EmailTemplateContract", + className: "OpenidConnectProviderContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { + displayName: { constraints: { - MaxLength: 1000, - MinLength: 1 + MaxLength: 50, }, - serializedName: "properties.subject", - xmlName: "properties.subject", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - body: { - constraints: { - MinLength: 1 + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", }, - serializedName: "properties.body", - xmlName: "properties.body", + }, + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } + name: "String", + }, }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - xmlName: "properties.isDefault", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const GatewayContract: coreClient.CompositeMapper = { - serializedName: "GatewayContract", +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", type: { name: "Composite", - className: "GatewayContract", + className: "PolicyDescriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", - type: { - name: "Composite", - className: "ResourceLocationDataContract" - } - }, description: { - constraints: { - MaxLength: 1000 - }, serializedName: "properties.description", + readOnly: true, xmlName: "properties.description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", + type: { + name: "Number", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", type: { name: "Composite", - className: "GatewayHostnameConfigurationContract", + className: "PolicyFragmentContract", modelProperties: { ...ProxyResource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", - type: { - name: "String" - } - }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", - type: { - name: "String" - } - }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "Boolean" - } + name: "String", + }, }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", + format: { + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "Boolean" - } + name: "String", + }, }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", - type: { - name: "Composite", - className: "AssociationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, provisioningState: { - defaultValue: "created", - isConstant: true, serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", type: { name: "Composite", - className: "GatewayCertificateAuthorityContract", + className: "ResourceCollectionValueItem", modelProperties: { ...ProxyResource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", +export const PolicyRestrictionContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionContract", type: { name: "Composite", - className: "GroupContract", + className: "PolicyRestrictionContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 1000 + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", - type: { - name: "Boolean" - } }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "String", + }, }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "UserContract", + className: "OperationResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } + name: "String", + }, }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], + }, }, - firstName: { - serializedName: "properties.firstName", - xmlName: "properties.firstName", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "String" - } + name: "DateTime", + }, }, - lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "String" - } + name: "DateTime", + }, }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { - name: "String" - } + name: "String", + }, }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { - name: "DateTime" - } + name: "Composite", + className: "ErrorResponseBody", + }, }, - groups: { - serializedName: "properties.groups", + actionLog: { + serializedName: "properties.actionLog", readOnly: true, - xmlName: "properties.groups", - xmlElementName: "GroupContractProperties", + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GroupContractProperties" - } - } - } - } - } - } + className: "OperationResultLogItemContract", + }, + }, + }, + }, + }, + }, }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const PortalConfigContract: coreClient.CompositeMapper = { + serializedName: "PortalConfigContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "PortalConfigContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + enableBasicAuth: { + defaultValue: true, + serializedName: "properties.enableBasicAuth", + xmlName: "properties.enableBasicAuth", type: { - name: "String" - } + name: "Boolean", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "Composite", + className: "PortalConfigPropertiesSignin", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "PortalConfigPropertiesSignup", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", type: { - name: "String" - } + name: "Composite", + className: "PortalConfigDelegationProperties", + }, }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", + type: { + name: "Composite", + className: "PortalConfigCorsProperties", }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + }, + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", type: { - name: "String" - } + name: "Composite", + className: "PortalConfigCspProperties", + }, }, - passwordResetPolicyName: { + }, + }, +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { constraints: { - MinLength: 1 + MaxLength: 2000, }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - clientLibrary: { + statusDetails: { constraints: { - MaxLength: 16 + MaxLength: 2000, + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", + type: { + name: "String", }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", + }, + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, - clientId: { - constraints: { - MinLength: 1 + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean", }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" - } + name: "DateTime", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime", }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", type: { name: "Composite", - className: "IdentityProviderCreateContract", + className: "PortalSettingsContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "String" - } - }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "RegistrationDelegationSettingsProperties", }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", - type: { - name: "String" - } }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - }, - clientLibrary: { - constraints: { - MaxLength: 16 + name: "Boolean", }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", - type: { - name: "String" - } }, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 + name: "Composite", + className: "TermsOfServiceProperties", }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + }, + }, +}; + +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", type: { name: "Composite", - className: "LoggerContract", + className: "PortalSignupSettings", modelProperties: { ...ProxyResource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } + name: "Boolean", + }, }, - description: { - constraints: { - MaxLength: 256 + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + }, + }, +}; + +export const PortalDelegationSettings: coreClient.CompositeMapper = { + serializedName: "PortalDelegationSettings", + type: { + name: "Composite", + className: "PortalDelegationSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "Boolean" - } + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + }, }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + }, + }, + }, + }, }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", type: { name: "Composite", - className: "NamedValueContract", + className: "SubscriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "Boolean" - } + name: "String", + }, }, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 100, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096 + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled", + ], }, - serializedName: "properties.value", - xmlName: "properties.value", + }, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, + xmlName: "properties.createdDate", + type: { + name: "DateTime", + }, + }, + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", type: { - name: "String" - } + name: "DateTime", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 + name: "DateTime", }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "DateTime", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - displayName: { + primaryKey: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { - name: "String" - } + name: "String", + }, }, - value: { + secondaryKey: { constraints: { - MaxLength: 4096 + MaxLength: 256, + MinLength: 1, }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } -}; - -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", - type: { - name: "Composite", - className: "NotificationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 1000, - MinLength: 1 + name: "String", }, - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", type: { - name: "String" - } + name: "Boolean", + }, }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", - type: { - name: "Composite", - className: "RecipientsContractProperties" - } - } - } - } + }, + }, }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const ProductApiLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkContract", type: { name: "Composite", - className: "RecipientUserContract", + className: "ProductApiLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const ProductGroupLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkContract", type: { name: "Composite", - className: "RecipientEmailContract", + className: "ProductGroupLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + groupId: { + serializedName: "properties.groupId", + xmlName: "properties.groupId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "GlobalSchemaContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "any", + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + document: { + serializedName: "properties.document", + xmlName: "properties.document", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + }, + }, +}; + +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", + type: { + name: "Composite", + className: "TenantSettingsContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "Boolean" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", +export const TagApiLinkContract: coreClient.CompositeMapper = { + serializedName: "TagApiLinkContract", type: { name: "Composite", - className: "PolicyDescriptionContract", + className: "TagApiLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - readOnly: true, - xmlName: "properties.description", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", + }, + }, +}; + +export const TagOperationLinkContract: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkContract", + type: { + name: "Composite", + className: "TagOperationLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + operationId: { + serializedName: "properties.operationId", + xmlName: "properties.operationId", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentContract: coreClient.CompositeMapper = { - serializedName: "PolicyFragmentContract", +export const TagProductLinkContract: coreClient.CompositeMapper = { + serializedName: "TagProductLinkContract", type: { name: "Composite", - className: "PolicyFragmentContract", + className: "TagProductLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + productId: { + serializedName: "properties.productId", + xmlName: "properties.productId", type: { - name: "String" - } + name: "String", + }, }, - description: { - constraints: { - MaxLength: 1000 + }, + }, +}; + +export const AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", + type: { + name: "Composite", + className: "AccessInformationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", + type: { + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, - format: { - serializedName: "properties.format", - xmlName: "properties.format", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = + { + serializedName: "TenantConfigurationSyncStateContract", + type: { + name: "Composite", + className: "TenantConfigurationSyncStateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", + type: { + name: "String", + }, + }, + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", + type: { + name: "String", + }, + }, + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", + type: { + name: "Boolean", + }, + }, + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", + type: { + name: "Boolean", + }, + }, + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", + type: { + name: "Boolean", + }, + }, + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", + type: { + name: "DateTime", + }, + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime", + }, + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ResourceCollectionValueItem: coreClient.CompositeMapper = { - serializedName: "ResourceCollectionValueItem", +export const WorkspaceContract: coreClient.CompositeMapper = { + serializedName: "WorkspaceContract", type: { name: "Composite", - className: "ResourceCollectionValueItem", + className: "WorkspaceContract", modelProperties: { - ...ProxyResource.type.modelProperties - } - } + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + }, + }, }; -export const PortalConfigContract: coreClient.CompositeMapper = { - serializedName: "PortalConfigContract", +export const PolicyWithComplianceContract: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceContract", type: { name: "Composite", - className: "PortalConfigContract", + className: "PolicyWithComplianceContract", modelProperties: { ...ProxyResource.type.modelProperties, - enableBasicAuth: { - defaultValue: true, - serializedName: "properties.enableBasicAuth", - xmlName: "properties.enableBasicAuth", - type: { - name: "Boolean" - } - }, - signin: { - serializedName: "properties.signin", - xmlName: "properties.signin", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignin" - } - }, - signup: { - serializedName: "properties.signup", - xmlName: "properties.signup", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignup" - } - }, - delegation: { - serializedName: "properties.delegation", - xmlName: "properties.delegation", + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "Composite", - className: "PortalConfigDelegationProperties" - } + name: "String", + }, }, - cors: { - serializedName: "properties.cors", - xmlName: "properties.cors", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "Composite", - className: "PortalConfigCorsProperties" - } + name: "String", + }, }, - csp: { - serializedName: "properties.csp", - xmlName: "properties.csp", - type: { - name: "Composite", - className: "PortalConfigCspProperties" - } - } - } - } + }, + }, }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ResolverResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } - }, - statusDetails: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", - type: { - name: "String" - } }, status: { serializedName: "properties.status", - readOnly: true, xmlName: "properties.status", type: { - name: "String" - } + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", + type: { + name: "String", + }, + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponseBody", + }, + }, + actionLog: { + serializedName: "properties.actionLog", readOnly: true, - xmlName: "properties.updatedDateTime", + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", type: { - name: "DateTime" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract", + }, + }, + }, + }, + }, + }, }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "PortalSettingsContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + format: { + serializedName: "format", + xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const ApiManagementGatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_updateHeaders", type: { name: "Composite", - className: "PortalSigninSettings", + className: "ApiManagementGatewayUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const ApiManagementGatewayDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_deleteHeaders", type: { name: "Composite", - className: "PortalSignupSettings", + className: "ApiManagementGatewayDeleteHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", +export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getEntityTagHeaders", type: { name: "Composite", - className: "PortalDelegationSettings", + className: "ApiGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } - }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", - type: { - name: "String" - } - }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + name: "String", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } - } - } - } + }, + }, }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const ApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getHeaders", type: { name: "Composite", - className: "SubscriptionContract", + className: "ApiGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", + }, + }, +}; + +export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "DateTime" - } + name: "String", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "DateTime" - } + name: "String", + }, }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", + }, + }, +}; + +export const ApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_updateHeaders", + type: { + name: "Composite", + className: "ApiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + }, + }, +}; + +export const ApiDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "Api_deleteHeaders", + type: { + name: "Composite", + className: "ApiDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { - name: "DateTime" - } - }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", - type: { - name: "String" - } }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + }, + }, +}; + +export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getHeaders", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "ApiReleaseGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + }, +}; + +export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + }, + }, +}; + +export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_updateHeaders", + type: { + name: "Composite", + className: "ApiReleaseUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "any" - } + name: "String", + }, }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getEntityTagHeaders", type: { name: "Composite", - className: "TenantSettingsContract", + className: "ApiOperationGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", +export const ApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getHeaders", type: { name: "Composite", - className: "AccessInformationContract", + className: "ApiOperationGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + }, + }, +}; + +export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_updateHeaders", type: { name: "Composite", - className: "OperationResultContract", + className: "ApiOperationUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", - type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } + }, + }, +}; + +export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + }, + }; + +export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", - type: { - name: "DateTime" - } + }, + }, +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + }, + }; + +export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByOperationHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + }, + }, +}; + +export const TagGetByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByOperationHeaders", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "ErrorResponseBody" - } + name: "String", + }, }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + }, + }, +}; + +export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByApiHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResultLogItemContract" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", +export const TagGetByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByApiHeaders", type: { name: "Composite", - className: "TenantConfigurationSyncStateContract", + className: "TagGetByApiHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", - type: { - name: "String" - } - }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", - type: { - name: "String" - } - }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", - type: { - name: "Boolean" - } - }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", + }, + }, +}; + +export const TagAssignToApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_assignToApiHeaders", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", + }, + }, +}; + +export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByProductHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + }, + }, +}; + +export const TagGetByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByProductHeaders", + type: { + name: "Composite", + className: "TagGetByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DocumentationContract: coreClient.CompositeMapper = { - serializedName: "DocumentationContract", +export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateHeaders", type: { name: "Composite", - className: "DocumentationContract", + className: "TagGetEntityStateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ResolverResultContract: coreClient.CompositeMapper = { - serializedName: "ResolverResultContract", +export const TagGetHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getHeaders", type: { name: "Composite", - className: "ResolverResultContract", + className: "TagGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + }, + }, +}; + +export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_createOrUpdateHeaders", + type: { + name: "Composite", + className: "TagCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } + name: "String", + }, }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + }, + }, +}; + +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", - type: { - name: "DateTime" - } + }, + }, +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + }, + }; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } + }, + }, +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "ResolverResultLogItemContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResolverResultLogItemContract" - } - } - } - } - } - } -}; + }, + }; -export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getEntityTagHeaders", +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", type: { name: "Composite", - className: "ApiGetEntityTagHeaders", + className: "GraphQLApiResolverUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiGetHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getHeaders", +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", type: { name: "Composite", - className: "ApiGetHeaders", + className: "GraphQLApiResolverPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_createOrUpdateHeaders", +export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ApiCreateOrUpdateHeaders", + className: "ApiPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_updateHeaders", +export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getHeaders", type: { name: "Composite", - className: "ApiUpdateHeaders", + className: "ApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getEntityTagHeaders", +export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "ApiPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getHeaders", +export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getEntityTagHeaders", type: { name: "Composite", - className: "ApiReleaseGetHeaders", + className: "ApiSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_createOrUpdateHeaders", +export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getHeaders", type: { name: "Composite", - className: "ApiReleaseCreateOrUpdateHeaders", + className: "ApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_updateHeaders", +export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseUpdateHeaders", + className: "ApiSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getEntityTagHeaders", +export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "ApiDiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getHeaders", +export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getHeaders", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "ApiDiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_createOrUpdateHeaders", +export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationCreateOrUpdateHeaders", + className: "ApiDiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_updateHeaders", +export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_updateHeaders", type: { name: "Composite", - className: "ApiOperationUpdateHeaders", + className: "ApiDiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getEntityTagHeaders", +export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "ApiIssueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getHeaders", +export const ApiIssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "ApiIssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_createOrUpdateHeaders", +export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationPolicyCreateOrUpdateHeaders", + className: "ApiIssueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByOperationHeaders", +export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_updateHeaders", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "ApiIssueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByOperationHeaders", +export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "ApiIssueCommentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByApiHeaders", +export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getHeaders", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "ApiIssueCommentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueComment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByApiHeaders", +export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getHeaders", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "ApiIssueAttachmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagAssignToApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_assignToApiHeaders", +export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getHeaders", type: { name: "Composite", - className: "TagAssignToApiHeaders", + className: "ApiTagDescriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByProductHeaders", +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "ApiWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByProductHeaders", +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "ApiWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateHeaders", +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "ApiWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getHeaders", +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", type: { name: "Composite", - className: "TagGetHeaders", + className: "ApiWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_createOrUpdateHeaders", +export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getEntityTagHeaders", type: { name: "Composite", - className: "TagCreateOrUpdateHeaders", + className: "ApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "ApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getEntityTagHeaders", +export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetEntityTagHeaders", + className: "ApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getHeaders", +export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_updateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetHeaders", + className: "ApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_createOrUpdateHeaders", +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverCreateOrUpdateHeaders", + className: "AuthorizationProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_updateHeaders", +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverUpdateHeaders", + className: "AuthorizationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + className: "AuthorizationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = + { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getHeaders", +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetHeaders", + className: "AuthorizationLoginLinksPostHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + className: "AuthorizationAccessPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_getEntityTagHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getEntityTagHeaders", +export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getHeaders", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "AuthorizationServerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getHeaders", +export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_updateHeaders", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "AuthorizationServerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_listSecretsHeaders", + type: { + name: "Composite", + className: "AuthorizationServerListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_createOrUpdateHeaders", +export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getEntityTagHeaders", type: { name: "Composite", - className: "ApiPolicyCreateOrUpdateHeaders", + className: "BackendGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getEntityTagHeaders", +export const BackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getHeaders", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "BackendGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getHeaders", +export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "BackendCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_createOrUpdateHeaders", +export const BackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_updateHeaders", type: { name: "Composite", - className: "ApiSchemaCreateOrUpdateHeaders", + className: "BackendUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getEntityTagHeaders", +export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "CacheGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getHeaders", +export const CacheGetHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "CacheGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_createOrUpdateHeaders", +export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiDiagnosticCreateOrUpdateHeaders", + className: "CacheCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_updateHeaders", +export const CacheUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_updateHeaders", type: { name: "Composite", - className: "ApiDiagnosticUpdateHeaders", + className: "CacheUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getEntityTagHeaders", +export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "CertificateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getHeaders", +export const CertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getHeaders", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_createOrUpdateHeaders", +export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCreateOrUpdateHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_updateHeaders", +export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_refreshSecretHeaders", type: { name: "Composite", - className: "ApiIssueUpdateHeaders", + className: "CertificateRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementClientPerformConnectivityCheckAsyncHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiManagementClient_performConnectivityCheckAsyncHeaders", + type: { + name: "Composite", + className: "ApiManagementClientPerformConnectivityCheckAsyncHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getEntityTagHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "ContentTypeGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getHeaders", +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "ContentTypeCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_createOrUpdateHeaders", +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueCommentCreateOrUpdateHeaders", + className: "ContentItemGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getEntityTagHeaders", +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "ContentItemGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getHeaders", +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "ContentItemCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_createOrUpdateHeaders", +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentCreateOrUpdateHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getEntityTagHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetEntityTagHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_createOrUpdateHeaders", +export const ApiManagementServiceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_updateHeaders", type: { name: "Composite", - className: "ApiTagDescriptionCreateOrUpdateHeaders", + className: "ApiManagementServiceUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getEntityTagHeaders", +export const ApiManagementServiceDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_deleteHeaders", type: { name: "Composite", - className: "ApiWikiGetEntityTagHeaders", + className: "ApiManagementServiceDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = + { + serializedName: "ApiManagementService_migrateToStv2Headers", + type: { + name: "Composite", + className: "ApiManagementServiceMigrateToStv2Headers", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = + { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getHeaders", +export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "ApiWikiGetHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_createOrUpdateHeaders", +export const DiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getHeaders", type: { name: "Composite", - className: "ApiWikiCreateOrUpdateHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_updateHeaders", +export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiWikiUpdateHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getEntityTagHeaders", +export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_updateHeaders", type: { name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", + className: "DiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getHeaders", +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "DocumentationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_createOrUpdateHeaders", +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", type: { name: "Composite", - className: "ApiVersionSetCreateOrUpdateHeaders", + className: "DocumentationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_updateHeaders", +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiVersionSetUpdateHeaders", + className: "DocumentationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getEntityTagHeaders", +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "DocumentationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getHeaders", +export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_createOrUpdateHeaders", +export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getHeaders", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_updateHeaders", +export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "EmailTemplateUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "GatewayGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_getHeaders", +export const GatewayGetHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getHeaders", type: { name: "Composite", - className: "AuthorizationProviderGetHeaders", + className: "GatewayGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_createOrUpdateHeaders", +export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationProviderCreateOrUpdateHeaders", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_getHeaders", +export const GatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_updateHeaders", type: { name: "Composite", - className: "AuthorizationGetHeaders", + className: "GatewayUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_createOrUpdateHeaders", +export const GatewayListKeysHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_listKeysHeaders", type: { name: "Composite", - className: "AuthorizationCreateOrUpdateHeaders", + className: "GatewayListKeysHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_confirmConsentCodeHeaders", +export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayApi_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationConfirmConsentCodeHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationLoginLinks_postHeaders", +export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationLoginLinksPostHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_getHeaders", +export const GroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyGetHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", +export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getEntityTagHeaders", +export const GroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_updateHeaders", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "GroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendGetHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getHeaders", +export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getEntityTagHeaders", type: { name: "Composite", - className: "BackendGetHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_createOrUpdateHeaders", +export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getHeaders", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "IdentityProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "IdentityProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const BackendUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_updateHeaders", +export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_updateHeaders", type: { name: "Composite", - className: "BackendUpdateHeaders", + className: "IdentityProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getEntityTagHeaders", +export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_listSecretsHeaders", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "IdentityProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheGetHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getHeaders", +export const IssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "Issue_getHeaders", type: { name: "Composite", - className: "CacheGetHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_createOrUpdateHeaders", +export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getEntityTagHeaders", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_updateHeaders", +export const LoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getHeaders", type: { name: "Composite", - className: "CacheUpdateHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getEntityTagHeaders", +export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_createOrUpdateHeaders", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getHeaders", +export const LoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_updateHeaders", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "LoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_createOrUpdateHeaders", +export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_refreshSecretHeaders", +export const NamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getHeaders", type: { name: "Composite", - className: "CertificateRefreshSecretHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "NamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_updateHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const NamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_listValueHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "NamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "NamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_getEntityTagHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { - serializedName: "DeletedServices_purgeHeaders", +export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_updateHeaders", type: { name: "Composite", - className: "DeletedServicesPurgeHeaders", + className: "OpenIdConnectProviderUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_listSecretsHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_restoreHeaders", +export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceRestoreHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_backupHeaders", +export const PolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getHeaders", type: { name: "Composite", - className: "ApiManagementServiceBackupHeaders", + className: "PolicyGetHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_migrateToStv2Headers", +export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiManagementServiceMigrateToStv2Headers", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { - serializedName: - "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + className: "PolicyFragmentGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getEntityTagHeaders", +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "PolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getHeaders", +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "PolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_getEntityTagHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_createOrUpdateHeaders", +export const PolicyRestrictionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_getHeaders", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "PolicyRestrictionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_updateHeaders", +export const PolicyRestrictionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_updateHeaders", type: { name: "Composite", - className: "DiagnosticUpdateHeaders", + className: "PolicyRestrictionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionValidationsByServiceHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestrictionValidations_byServiceHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionValidationsByServiceHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getEntityTagHeaders", +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "PortalConfigGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getHeaders", +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "PortalConfigGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_updateHeaders", +export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getEntityTagHeaders", type: { name: "Composite", - className: "EmailTemplateUpdateHeaders", + className: "PortalRevisionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getEntityTagHeaders", +export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getHeaders", type: { name: "Composite", - className: "GatewayGetEntityTagHeaders", + className: "PortalRevisionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getHeaders", +export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayGetHeaders", + className: "PortalRevisionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_createOrUpdateHeaders", +export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_updateHeaders", type: { name: "Composite", - className: "GatewayCreateOrUpdateHeaders", + className: "PortalRevisionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_updateHeaders", +export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayUpdateHeaders", + className: "SignInSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayListKeysHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_listKeysHeaders", +export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getHeaders", type: { name: "Composite", - className: "GatewayListKeysHeaders", + className: "SignInSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", +export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetEntityTagHeaders", + className: "SignUpSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getHeaders", +export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetHeaders", + className: "SignUpSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "DelegationSettings_getEntityTagHeaders", + type: { + name: "Composite", + className: "DelegationSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", +export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + className: "DelegationSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_deleteHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayApi_getEntityTagHeaders", +export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayApiGetEntityTagHeaders", + className: "ProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", +export const ProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetEntityTagHeaders", + className: "ProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getHeaders", +export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", +export const ProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_updateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + className: "ProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getEntityTagHeaders", +export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "ProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getHeaders", +export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getHeaders", type: { name: "Composite", - className: "GroupGetHeaders", + className: "ProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_createOrUpdateHeaders", +export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "GroupCreateOrUpdateHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_updateHeaders", +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", type: { name: "Composite", - className: "GroupUpdateHeaders", + className: "ProductWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getEntityTagHeaders", +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "ProductWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getHeaders", +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "ProductWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_createOrUpdateHeaders", +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", type: { name: "Composite", - className: "IdentityProviderCreateOrUpdateHeaders", + className: "ProductWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_updateHeaders", +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateHeaders", + className: "ProductWikisListHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_listSecretsHeaders", +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", type: { name: "Composite", - className: "IdentityProviderListSecretsHeaders", + className: "ProductWikisListNextHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "Issue_getHeaders", +export const ProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductApiLink_getHeaders", type: { name: "Composite", - className: "IssueGetHeaders", + className: "ProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getEntityTagHeaders", +export const ProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductGroupLink_getHeaders", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "ProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getHeaders", +export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "GlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_createOrUpdateHeaders", +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", type: { name: "Composite", - className: "LoggerCreateOrUpdateHeaders", + className: "GlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_updateHeaders", +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "LoggerUpdateHeaders", + className: "GlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getEntityTagHeaders", +export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantSettings_getHeaders", type: { name: "Composite", - className: "NamedValueGetEntityTagHeaders", + className: "TenantSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getHeaders", +export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueGetHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_createOrUpdateHeaders", +export const SubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getHeaders", type: { name: "Composite", - className: "NamedValueCreateOrUpdateHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_updateHeaders", +export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueUpdateHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueListValueHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_listValueHeaders", +export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_updateHeaders", type: { name: "Composite", - className: "NamedValueListValueHeaders", + className: "SubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_refreshSecretHeaders", +export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_listSecretsHeaders", type: { name: "Composite", - className: "NamedValueRefreshSecretHeaders", + className: "SubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getEntityTagHeaders", +export const TagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagApiLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "TagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getHeaders", +export const TagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagOperationLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "TagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", +export const TagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagProductLink_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderCreateOrUpdateHeaders", + className: "TagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_updateHeaders", +export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getEntityTagHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderUpdateHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_listSecretsHeaders", +export const TenantAccessGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderListSecretsHeaders", + className: "TenantAccessGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getEntityTagHeaders", +export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_createHeaders", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "TenantAccessCreateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getHeaders", +export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_updateHeaders", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "TenantAccessUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_createOrUpdateHeaders", +export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_listSecretsHeaders", type: { name: "Composite", - className: "PolicyCreateOrUpdateHeaders", + className: "TenantAccessListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getEntityTagHeaders", +export const TenantConfigurationDeployHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_deployHeaders", type: { name: "Composite", - className: "PolicyFragmentGetEntityTagHeaders", + className: "TenantConfigurationDeployHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getHeaders", +export const TenantConfigurationSaveHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_saveHeaders", type: { name: "Composite", - className: "PolicyFragmentGetHeaders", + className: "TenantConfigurationSaveHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_createOrUpdateHeaders", +export const TenantConfigurationValidateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_validateHeaders", type: { name: "Composite", - className: "PolicyFragmentCreateOrUpdateHeaders", + className: "TenantConfigurationValidateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getEntityTagHeaders", +export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "User_getEntityTagHeaders", type: { name: "Composite", - className: "PortalConfigGetEntityTagHeaders", + className: "UserGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getHeaders", +export const UserGetHeaders: coreClient.CompositeMapper = { + serializedName: "User_getHeaders", type: { name: "Composite", - className: "PortalConfigGetHeaders", + className: "UserGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getEntityTagHeaders", +export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_createOrUpdateHeaders", type: { name: "Composite", - className: "PortalRevisionGetEntityTagHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getHeaders", +export const UserUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_updateHeaders", type: { name: "Composite", - className: "PortalRevisionGetHeaders", + className: "UserUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_createOrUpdateHeaders", +export const UserDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "User_deleteHeaders", type: { name: "Composite", - className: "PortalRevisionCreateOrUpdateHeaders", + className: "UserDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_updateHeaders", +export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "UserSubscription_getHeaders", type: { name: "Composite", - className: "PortalRevisionUpdateHeaders", + className: "UserSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getEntityTagHeaders", +export const WorkspaceGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getEntityTagHeaders", type: { name: "Composite", - className: "SignInSettingsGetEntityTagHeaders", + className: "WorkspaceGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getHeaders", +export const WorkspaceGetHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getHeaders", type: { name: "Composite", - className: "SignInSettingsGetHeaders", + className: "WorkspaceGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getEntityTagHeaders", +export const WorkspaceCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_createOrUpdateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetEntityTagHeaders", + className: "WorkspaceCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getHeaders", +export const WorkspaceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_updateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetHeaders", + className: "WorkspaceUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getEntityTagHeaders", +export const WorkspacePolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getEntityTagHeaders", type: { name: "Composite", - className: "DelegationSettingsGetEntityTagHeaders", + className: "WorkspacePolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getHeaders", +export const WorkspacePolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getHeaders", type: { name: "Composite", - className: "DelegationSettingsGetHeaders", + className: "WorkspacePolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceNamedValueGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getEntityTagHeaders", +export const WorkspaceNamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getHeaders", type: { name: "Composite", - className: "ProductGetEntityTagHeaders", + className: "WorkspaceNamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductGetHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getHeaders", +export const WorkspaceNamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_updateHeaders", type: { name: "Composite", - className: "ProductGetHeaders", + className: "WorkspaceNamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_createOrUpdateHeaders", +export const WorkspaceNamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_listValueHeaders", type: { name: "Composite", - className: "ProductCreateOrUpdateHeaders", + className: "WorkspaceNamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueRefreshSecretHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_refreshSecretHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueRefreshSecretHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceGlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_updateHeaders", +export const WorkspaceGlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getHeaders", type: { name: "Composite", - className: "ProductUpdateHeaders", + className: "WorkspaceGlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceGlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspacePolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getEntityTagHeaders", +export const WorkspacePolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getHeaders", type: { name: "Composite", - className: "ProductPolicyGetEntityTagHeaders", + className: "WorkspacePolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getHeaders", +export const WorkspaceGroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getEntityTagHeaders", type: { name: "Composite", - className: "ProductPolicyGetHeaders", + className: "WorkspaceGroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_createOrUpdateHeaders", +export const WorkspaceGroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getHeaders", type: { name: "Composite", - className: "ProductPolicyCreateOrUpdateHeaders", + className: "WorkspaceGroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getEntityTagHeaders", +export const WorkspaceGroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductWikiGetEntityTagHeaders", + className: "WorkspaceGroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getHeaders", +export const WorkspaceGroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_updateHeaders", type: { name: "Composite", - className: "ProductWikiGetHeaders", + className: "WorkspaceGroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_createOrUpdateHeaders", +export const WorkspaceSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getHeaders", type: { name: "Composite", - className: "ProductWikiCreateOrUpdateHeaders", + className: "WorkspaceSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_updateHeaders", +export const WorkspaceSubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_updateHeaders", type: { name: "Composite", - className: "ProductWikiUpdateHeaders", + className: "WorkspaceSubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_listSecretsHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikisListHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listHeaders", +export const WorkspaceApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getHeaders", type: { name: "Composite", - className: "ProductWikisListHeaders", + className: "WorkspaceApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listNextHeaders", +export const WorkspaceApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_updateHeaders", type: { name: "Composite", - className: "ProductWikisListNextHeaders", + className: "WorkspaceApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getEntityTagHeaders", +export const WorkspaceApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getEntityTagHeaders", type: { name: "Composite", - className: "GlobalSchemaGetEntityTagHeaders", + className: "WorkspaceApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getHeaders", +export const WorkspaceApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getHeaders", type: { name: "Composite", - className: "GlobalSchemaGetHeaders", + className: "WorkspaceApiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_createOrUpdateHeaders", +export const WorkspaceApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_createOrUpdateHeaders", type: { name: "Composite", - className: "GlobalSchemaCreateOrUpdateHeaders", + className: "WorkspaceApiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantSettings_getHeaders", +export const WorkspaceApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_updateHeaders", type: { name: "Composite", - className: "TenantSettingsGetHeaders", + className: "WorkspaceApiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getEntityTagHeaders", +export const WorkspaceApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getHeaders", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "WorkspaceApiReleaseGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getHeaders", +export const WorkspaceApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_updateHeaders", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "WorkspaceApiReleaseUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_createOrUpdateHeaders", +export const WorkspaceApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getHeaders", type: { name: "Composite", - className: "SubscriptionCreateOrUpdateHeaders", + className: "WorkspaceApiOperationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_updateHeaders", +export const WorkspaceApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_updateHeaders", type: { name: "Composite", - className: "SubscriptionUpdateHeaders", + className: "WorkspaceApiOperationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyGetHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_listSecretsHeaders", +export const WorkspaceApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getHeaders", type: { name: "Composite", - className: "SubscriptionListSecretsHeaders", + className: "WorkspaceApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getEntityTagHeaders", +export const WorkspaceApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getHeaders", type: { name: "Composite", - className: "TenantAccessGetEntityTagHeaders", + className: "WorkspaceApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getHeaders", +export const WorkspaceProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getEntityTagHeaders", type: { name: "Composite", - className: "TenantAccessGetHeaders", + className: "WorkspaceProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_createHeaders", +export const WorkspaceProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getHeaders", type: { name: "Composite", - className: "TenantAccessCreateHeaders", + className: "WorkspaceProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProduct_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_updateHeaders", +export const WorkspaceProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_updateHeaders", type: { name: "Composite", - className: "TenantAccessUpdateHeaders", + className: "WorkspaceProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_listSecretsHeaders", +export const WorkspaceProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductApiLink_getHeaders", type: { name: "Composite", - className: "TenantAccessListSecretsHeaders", + className: "WorkspaceProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "User_getEntityTagHeaders", +export const WorkspaceProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductGroupLink_getHeaders", type: { name: "Composite", - className: "UserGetEntityTagHeaders", + className: "WorkspaceProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserGetHeaders: coreClient.CompositeMapper = { - serializedName: "User_getHeaders", +export const WorkspaceProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getHeaders", type: { name: "Composite", - className: "UserGetHeaders", + className: "WorkspaceProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_createOrUpdateHeaders", +export const WorkspaceTagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getEntityStateHeaders", type: { name: "Composite", - className: "UserCreateOrUpdateHeaders", + className: "WorkspaceTagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_updateHeaders", +export const WorkspaceTagGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getHeaders", type: { name: "Composite", - className: "UserUpdateHeaders", + className: "WorkspaceTagGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "UserSubscription_getHeaders", +export const WorkspaceTagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_createOrUpdateHeaders", type: { name: "Composite", - className: "UserSubscriptionGetHeaders", + className: "WorkspaceTagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getEntityTagHeaders", +export const WorkspaceTagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_updateHeaders", type: { name: "Composite", - className: "DocumentationGetEntityTagHeaders", + className: "WorkspaceTagUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getHeaders", +export const WorkspaceTagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagApiLink_getHeaders", type: { name: "Composite", - className: "DocumentationGetHeaders", + className: "WorkspaceTagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_createOrUpdateHeaders", +export const WorkspaceTagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagOperationLink_getHeaders", type: { name: "Composite", - className: "DocumentationCreateOrUpdateHeaders", + className: "WorkspaceTagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_updateHeaders", +export const WorkspaceTagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagProductLink_getHeaders", type: { name: "Composite", - className: "DocumentationUpdateHeaders", + className: "WorkspaceTagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 5fbad6e2b16b..833baca72cdd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -9,9 +9,11 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { + ApiManagementGatewayResource as ApiManagementGatewayResourceMapper, + ApiManagementGatewayUpdateParameters as ApiManagementGatewayUpdateParametersMapper, ApiCreateOrUpdateParameter as ApiCreateOrUpdateParameterMapper, ApiUpdateContract as ApiUpdateContractMapper, ApiReleaseContract as ApiReleaseContractMapper, @@ -32,13 +34,13 @@ import { WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, - AuthorizationServerContract as AuthorizationServerContractMapper, - AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, AuthorizationProviderContract as AuthorizationProviderContractMapper, AuthorizationContract as AuthorizationContractMapper, AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, + AuthorizationServerContract as AuthorizationServerContractMapper, + AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -51,12 +53,17 @@ import { ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, + MigrateToStv2Contract as MigrateToStv2ContractMapper, ApiManagementServiceCheckNameAvailabilityParameters as ApiManagementServiceCheckNameAvailabilityParametersMapper, ApiManagementServiceApplyNetworkConfigurationParameters as ApiManagementServiceApplyNetworkConfigurationParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper, EmailTemplateUpdateParameters as EmailTemplateUpdateParametersMapper, GatewayContract as GatewayContractMapper, GatewayKeyRegenerationRequestContract as GatewayKeyRegenerationRequestContractMapper, GatewayTokenRequestContract as GatewayTokenRequestContractMapper, + GatewayListDebugCredentialsContract as GatewayListDebugCredentialsContractMapper, + GatewayListTraceContract as GatewayListTraceContractMapper, GatewayHostnameConfigurationContract as GatewayHostnameConfigurationContractMapper, AssociationContract as AssociationContractMapper, GatewayCertificateAuthorityContract as GatewayCertificateAuthorityContractMapper, @@ -71,6 +78,8 @@ import { OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, PolicyFragmentContract as PolicyFragmentContractMapper, + PolicyRestrictionContract as PolicyRestrictionContractMapper, + PolicyRestrictionUpdateContract as PolicyRestrictionUpdateContractMapper, PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, @@ -79,10 +88,15 @@ import { PrivateEndpointConnectionRequest as PrivateEndpointConnectionRequestMapper, ProductContract as ProductContractMapper, ProductUpdateParameters as ProductUpdateParametersMapper, + ProductApiLinkContract as ProductApiLinkContractMapper, + ProductGroupLinkContract as ProductGroupLinkContractMapper, QuotaCounterValueUpdateContract as QuotaCounterValueUpdateContractMapper, GlobalSchemaContract as GlobalSchemaContractMapper, SubscriptionCreateParameters as SubscriptionCreateParametersMapper, SubscriptionUpdateParameters as SubscriptionUpdateParametersMapper, + TagApiLinkContract as TagApiLinkContractMapper, + TagOperationLinkContract as TagOperationLinkContractMapper, + TagProductLinkContract as TagProductLinkContractMapper, AccessInformationCreateParameters as AccessInformationCreateParametersMapper, AccessInformationUpdateParameters as AccessInformationUpdateParametersMapper, DeployConfigurationParameters as DeployConfigurationParametersMapper, @@ -90,8 +104,7 @@ import { UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, UserTokenParameters as UserTokenParametersMapper, - DocumentationContract as DocumentationContractMapper, - DocumentationUpdateContract as DocumentationUpdateContractMapper + WorkspaceContract as WorkspaceContractMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -101,9 +114,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -113,10 +126,10 @@ export const $host: OperationURLParameter = { required: true, xmlName: "$host", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -124,15 +137,15 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const serviceName: OperationURLParameter = { @@ -141,15 +154,91 @@ export const serviceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), MaxLength: 50, - MinLength: 1 + MinLength: 1, }, serializedName: "serviceName", required: true, xmlName: "serviceName", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-09-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + xmlName: "subscriptionId", + type: { + name: "Uuid", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayResourceMapper, +}; + +export const gatewayName: OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), + MaxLength: 50, + MinLength: 1, + }, + serializedName: "gatewayName", + required: true, + xmlName: "gatewayName", + type: { + name: "String", + }, + }, +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayUpdateParametersMapper, }; export const filter: OperationQueryParameter = { @@ -158,37 +247,37 @@ export const filter: OperationQueryParameter = { serializedName: "$filter", xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { parameterPath: ["options", "top"], mapper: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "$top", xmlName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const skip: OperationQueryParameter = { parameterPath: ["options", "skip"], mapper: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "$skip", xmlName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const tags: OperationQueryParameter = { @@ -197,9 +286,9 @@ export const tags: OperationQueryParameter = { serializedName: "tags", xmlName: "tags", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandApiVersionSet: OperationQueryParameter = { @@ -208,36 +297,9 @@ export const expandApiVersionSet: OperationQueryParameter = { serializedName: "expandApiVersionSet", xmlName: "expandApiVersionSet", type: { - name: "Boolean" - } - } -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-08-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 + name: "Boolean", }, - serializedName: "subscriptionId", - required: true, - xmlName: "subscriptionId", - type: { - name: "String" - } - } + }, }; export const apiId: OperationURLParameter = { @@ -246,32 +308,20 @@ export const apiId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ApiCreateOrUpdateParameterMapper + mapper: ApiCreateOrUpdateParameterMapper, }; export const ifMatch: OperationParameter = { @@ -280,14 +330,14 @@ export const ifMatch: OperationParameter = { serializedName: "If-Match", xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters1: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ApiUpdateContractMapper + mapper: ApiUpdateContractMapper, }; export const ifMatch1: OperationParameter = { @@ -297,9 +347,9 @@ export const ifMatch1: OperationParameter = { required: true, xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deleteRevisions: OperationQueryParameter = { @@ -308,9 +358,9 @@ export const deleteRevisions: OperationQueryParameter = { serializedName: "deleteRevisions", xmlName: "deleteRevisions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedApis: OperationQueryParameter = { @@ -319,22 +369,9 @@ export const includeNotTaggedApis: OperationQueryParameter = { serializedName: "includeNotTaggedApis", xmlName: "includeNotTaggedApis", type: { - name: "Boolean" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - xmlName: "nextLink", - type: { - name: "String" - } + name: "Boolean", + }, }, - skipEncoding: true }; export const apiId1: OperationURLParameter = { @@ -342,15 +379,15 @@ export const apiId1: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const releaseId: OperationURLParameter = { @@ -359,20 +396,20 @@ export const releaseId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "releaseId", required: true, xmlName: "releaseId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ApiReleaseContractMapper + mapper: ApiReleaseContractMapper, }; export const operationId: OperationURLParameter = { @@ -380,25 +417,25 @@ export const operationId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "operationId", required: true, xmlName: "operationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters3: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: OperationContractMapper + mapper: OperationContractMapper, }; -export const parameters4: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: OperationUpdateContractMapper + mapper: OperationUpdateContractMapper, }; export const policyId: OperationURLParameter = { @@ -408,9 +445,9 @@ export const policyId: OperationURLParameter = { required: true, xmlName: "policyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format: OperationQueryParameter = { @@ -420,14 +457,14 @@ export const format: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters5: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: PolicyContractMapper + mapper: PolicyContractMapper, }; export const tagId: OperationURLParameter = { @@ -436,15 +473,15 @@ export const tagId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagId", required: true, xmlName: "tagId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const productId: OperationURLParameter = { @@ -452,15 +489,15 @@ export const productId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "productId", required: true, xmlName: "productId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationQueryParameter = { @@ -469,14 +506,14 @@ export const scope: OperationQueryParameter = { serializedName: "scope", xmlName: "scope", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters6: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: TagCreateUpdateParametersMapper + mapper: TagCreateUpdateParametersMapper, }; export const resolverId: OperationURLParameter = { @@ -484,25 +521,25 @@ export const resolverId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "resolverId", required: true, xmlName: "resolverId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ResolverContractMapper + mapper: ResolverContractMapper, }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: ResolverUpdateContractMapper + mapper: ResolverUpdateContractMapper, }; export const accept1: OperationParameter = { @@ -513,9 +550,9 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const schemaId: OperationURLParameter = { @@ -523,20 +560,20 @@ export const schemaId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "schemaId", required: true, xmlName: "schemaId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: SchemaContractMapper + mapper: SchemaContractMapper, }; export const force: OperationQueryParameter = { @@ -545,9 +582,9 @@ export const force: OperationQueryParameter = { serializedName: "force", xmlName: "force", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const diagnosticId: OperationURLParameter = { @@ -556,20 +593,20 @@ export const diagnosticId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "diagnosticId", required: true, xmlName: "diagnosticId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: DiagnosticContractMapper + mapper: DiagnosticContractMapper, }; export const expandCommentsAttachments: OperationQueryParameter = { @@ -578,9 +615,9 @@ export const expandCommentsAttachments: OperationQueryParameter = { serializedName: "expandCommentsAttachments", xmlName: "expandCommentsAttachments", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const issueId: OperationURLParameter = { @@ -589,25 +626,25 @@ export const issueId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "issueId", required: true, xmlName: "issueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: IssueContractMapper + mapper: IssueContractMapper, }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: IssueUpdateContractMapper + mapper: IssueUpdateContractMapper, }; export const commentId: OperationURLParameter = { @@ -616,20 +653,20 @@ export const commentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "commentId", required: true, xmlName: "commentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: IssueCommentContractMapper + mapper: IssueCommentContractMapper, }; export const attachmentId: OperationURLParameter = { @@ -638,20 +675,20 @@ export const attachmentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "attachmentId", required: true, xmlName: "attachmentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters14: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: IssueAttachmentContractMapper + mapper: IssueAttachmentContractMapper, }; export const tagDescriptionId: OperationURLParameter = { @@ -660,20 +697,20 @@ export const tagDescriptionId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagDescriptionId", required: true, xmlName: "tagDescriptionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: TagDescriptionCreateParametersMapper + mapper: TagDescriptionCreateParametersMapper, }; export const includeNotTaggedOperations: OperationQueryParameter = { @@ -682,19 +719,19 @@ export const includeNotTaggedOperations: OperationQueryParameter = { serializedName: "includeNotTaggedOperations", xmlName: "includeNotTaggedOperations", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters16: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: WikiContractMapper + mapper: WikiContractMapper, }; -export const parameters17: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: WikiUpdateContractMapper + mapper: WikiUpdateContractMapper, }; export const format1: OperationQueryParameter = { @@ -704,9 +741,9 @@ export const format1: OperationQueryParameter = { required: true, xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const exportParam: OperationQueryParameter = { @@ -716,9 +753,9 @@ export const exportParam: OperationQueryParameter = { required: true, xmlName: "export", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionSetId: OperationURLParameter = { @@ -727,52 +764,25 @@ export const versionSetId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "versionSetId", required: true, xmlName: "versionSetId", type: { - name: "String" - } - } -}; - -export const parameters18: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetContractMapper -}; - -export const parameters19: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetUpdateParametersMapper -}; - -export const authsid: OperationURLParameter = { - parameterPath: "authsid", - mapper: { - constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 80, - MinLength: 1 + name: "String", }, - serializedName: "authsid", - required: true, - xmlName: "authsid", - type: { - name: "String" - } - } + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerContractMapper + mapper: ApiVersionSetContractMapper, }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerUpdateContractMapper + mapper: ApiVersionSetUpdateParametersMapper, }; export const authorizationProviderId: OperationURLParameter = { @@ -781,20 +791,20 @@ export const authorizationProviderId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationProviderId", required: true, xmlName: "authorizationProviderId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationProviderContractMapper + mapper: AuthorizationProviderContractMapper, }; export const authorizationId: OperationURLParameter = { @@ -803,30 +813,30 @@ export const authorizationId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationId", required: true, xmlName: "authorizationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationContractMapper + mapper: AuthorizationContractMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationConfirmConsentCodeRequestContractMapper + mapper: AuthorizationConfirmConsentCodeRequestContractMapper, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationLoginRequestContractMapper + mapper: AuthorizationLoginRequestContractMapper, }; export const authorizationAccessPolicyId: OperationURLParameter = { @@ -835,78 +845,105 @@ export const authorizationAccessPolicyId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationAccessPolicyId", required: true, xmlName: "authorizationAccessPolicyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationAccessPolicyContractMapper + mapper: AuthorizationAccessPolicyContractMapper, }; -export const backendId: OperationURLParameter = { - parameterPath: "backendId", +export const authsid: OperationURLParameter = { + parameterPath: "authsid", mapper: { constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "backendId", + serializedName: "authsid", required: true, - xmlName: "backendId", + xmlName: "authsid", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: BackendContractMapper + mapper: AuthorizationServerContractMapper, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: BackendUpdateParametersMapper -}; - -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: BackendReconnectContractMapper + mapper: AuthorizationServerUpdateContractMapper, }; -export const cacheId: OperationURLParameter = { - parameterPath: "cacheId", +export const backendId: OperationURLParameter = { + parameterPath: "backendId", mapper: { constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "cacheId", + serializedName: "backendId", required: true, - xmlName: "cacheId", + xmlName: "backendId", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: BackendContractMapper, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CacheContractMapper + mapper: BackendUpdateParametersMapper, }; export const parameters31: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: BackendReconnectContractMapper, +}; + +export const cacheId: OperationURLParameter = { + parameterPath: "cacheId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "cacheId", + required: true, + xmlName: "cacheId", + type: { + name: "String", + }, + }, +}; + +export const parameters32: OperationParameter = { + parameterPath: "parameters", + mapper: CacheContractMapper, +}; + +export const parameters33: OperationParameter = { parameterPath: "parameters", - mapper: CacheUpdateParametersMapper + mapper: CacheUpdateParametersMapper, }; export const isKeyVaultRefreshFailed: OperationQueryParameter = { @@ -915,9 +952,9 @@ export const isKeyVaultRefreshFailed: OperationQueryParameter = { serializedName: "isKeyVaultRefreshFailed", xmlName: "isKeyVaultRefreshFailed", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const certificateId: OperationURLParameter = { @@ -926,25 +963,25 @@ export const certificateId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "certificateId", required: true, xmlName: "certificateId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters32: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const connectivityCheckRequestParams: OperationParameter = { parameterPath: "connectivityCheckRequestParams", - mapper: ConnectivityCheckRequestMapper + mapper: ConnectivityCheckRequestMapper, }; export const contentTypeId: OperationURLParameter = { @@ -952,20 +989,20 @@ export const contentTypeId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentTypeId", required: true, xmlName: "contentTypeId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters33: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", - mapper: ContentTypeContractMapper + mapper: ContentTypeContractMapper, }; export const contentItemId: OperationURLParameter = { @@ -973,20 +1010,20 @@ export const contentItemId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentItemId", required: true, xmlName: "contentItemId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters34: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", - mapper: ContentItemContractMapper + mapper: ContentItemContractMapper, }; export const location: OperationURLParameter = { @@ -996,34 +1033,66 @@ export const location: OperationURLParameter = { required: true, xmlName: "location", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters35: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceBackupRestoreParametersMapper + mapper: ApiManagementServiceBackupRestoreParametersMapper, }; -export const parameters36: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceResourceMapper + mapper: ApiManagementServiceResourceMapper, }; -export const parameters37: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceUpdateParametersMapper + mapper: ApiManagementServiceUpdateParametersMapper, }; -export const parameters38: OperationParameter = { +export const parameters40: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: MigrateToStv2ContractMapper, +}; + +export const parameters41: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper + mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper, }; -export const parameters39: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper + mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper, +}; + +export const documentationId: OperationURLParameter = { + parameterPath: "documentationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "documentationId", + required: true, + xmlName: "documentationId", + type: { + name: "String", + }, + }, +}; + +export const parameters43: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper, +}; + +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper, }; export const templateName: OperationURLParameter = { @@ -1033,14 +1102,14 @@ export const templateName: OperationURLParameter = { required: true, xmlName: "templateName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters40: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", - mapper: EmailTemplateUpdateParametersMapper + mapper: EmailTemplateUpdateParametersMapper, }; export const gatewayId: OperationURLParameter = { @@ -1048,30 +1117,40 @@ export const gatewayId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "gatewayId", required: true, xmlName: "gatewayId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters41: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", - mapper: GatewayContractMapper + mapper: GatewayContractMapper, }; -export const parameters42: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", - mapper: GatewayKeyRegenerationRequestContractMapper + mapper: GatewayKeyRegenerationRequestContractMapper, }; -export const parameters43: OperationParameter = { +export const parameters48: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayTokenRequestContractMapper, +}; + +export const parameters49: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayListDebugCredentialsContractMapper, +}; + +export const parameters50: OperationParameter = { parameterPath: "parameters", - mapper: GatewayTokenRequestContractMapper + mapper: GatewayListTraceContractMapper, }; export const hcId: OperationURLParameter = { @@ -1079,30 +1158,30 @@ export const hcId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "hcId", required: true, xmlName: "hcId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters44: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", - mapper: GatewayHostnameConfigurationContractMapper + mapper: GatewayHostnameConfigurationContractMapper, }; -export const parameters45: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: AssociationContractMapper + mapper: AssociationContractMapper, }; -export const parameters46: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", - mapper: GatewayCertificateAuthorityContractMapper + mapper: GatewayCertificateAuthorityContractMapper, }; export const groupId: OperationURLParameter = { @@ -1110,25 +1189,25 @@ export const groupId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "groupId", required: true, xmlName: "groupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters47: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", - mapper: GroupCreateParametersMapper + mapper: GroupCreateParametersMapper, }; -export const parameters48: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", - mapper: GroupUpdateParametersMapper + mapper: GroupUpdateParametersMapper, }; export const userId: OperationURLParameter = { @@ -1136,15 +1215,15 @@ export const userId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "userId", required: true, xmlName: "userId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const identityProviderName: OperationURLParameter = { @@ -1154,19 +1233,19 @@ export const identityProviderName: OperationURLParameter = { required: true, xmlName: "identityProviderName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters49: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderCreateContractMapper + mapper: IdentityProviderCreateContractMapper, }; -export const parameters50: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderUpdateParametersMapper + mapper: IdentityProviderUpdateParametersMapper, }; export const loggerId: OperationURLParameter = { @@ -1174,25 +1253,25 @@ export const loggerId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "loggerId", required: true, xmlName: "loggerId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters51: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", - mapper: LoggerContractMapper + mapper: LoggerContractMapper, }; -export const parameters52: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", - mapper: LoggerUpdateContractMapper + mapper: LoggerUpdateContractMapper, }; export const namedValueId: OperationURLParameter = { @@ -1200,40 +1279,40 @@ export const namedValueId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "namedValueId", required: true, xmlName: "namedValueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters53: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueCreateContractMapper + mapper: NamedValueCreateContractMapper, }; -export const parameters54: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueUpdateParametersMapper + mapper: NamedValueUpdateParametersMapper, }; export const locationName: OperationURLParameter = { parameterPath: "locationName", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "locationName", required: true, xmlName: "locationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const notificationName: OperationURLParameter = { @@ -1243,9 +1322,9 @@ export const notificationName: OperationURLParameter = { required: true, xmlName: "notificationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const email: OperationURLParameter = { @@ -1255,9 +1334,9 @@ export const email: OperationURLParameter = { required: true, xmlName: "email", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const opid: OperationURLParameter = { @@ -1265,25 +1344,25 @@ export const opid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "opid", required: true, xmlName: "opid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters55: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderContractMapper + mapper: OpenidConnectProviderContractMapper, }; -export const parameters56: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderUpdateContractMapper + mapper: OpenidConnectProviderUpdateContractMapper, }; export const scope1: OperationQueryParameter = { @@ -1293,9 +1372,9 @@ export const scope1: OperationQueryParameter = { xmlName: "scope", type: { name: "Enum", - allowedValues: ["Tenant", "Product", "Api", "Operation", "All"] - } - } + allowedValues: ["Tenant", "Product", "Api", "Operation", "All"], + }, + }, }; export const orderby: OperationQueryParameter = { @@ -1304,9 +1383,9 @@ export const orderby: OperationQueryParameter = { serializedName: "$orderby", xmlName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const id: OperationURLParameter = { @@ -1315,15 +1394,15 @@ export const id: OperationURLParameter = { constraints: { Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "id", required: true, xmlName: "id", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format2: OperationQueryParameter = { @@ -1332,14 +1411,40 @@ export const format2: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters64: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyFragmentContractMapper, +}; + +export const policyRestrictionId: OperationURLParameter = { + parameterPath: "policyRestrictionId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1, + }, + serializedName: "policyRestrictionId", + required: true, + xmlName: "policyRestrictionId", + type: { + name: "String", + }, + }, }; -export const parameters57: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", - mapper: PolicyFragmentContractMapper + mapper: PolicyRestrictionContractMapper, +}; + +export const parameters66: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyRestrictionUpdateContractMapper, }; export const portalConfigId: OperationURLParameter = { @@ -1347,20 +1452,20 @@ export const portalConfigId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "portalConfigId", required: true, xmlName: "portalConfigId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters58: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", - mapper: PortalConfigContractMapper + mapper: PortalConfigContractMapper, }; export const portalRevisionId: OperationURLParameter = { @@ -1368,35 +1473,35 @@ export const portalRevisionId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "portalRevisionId", required: true, xmlName: "portalRevisionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters59: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", - mapper: PortalRevisionContractMapper + mapper: PortalRevisionContractMapper, }; -export const parameters60: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", - mapper: PortalSigninSettingsMapper + mapper: PortalSigninSettingsMapper, }; -export const parameters61: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", - mapper: PortalSignupSettingsMapper + mapper: PortalSignupSettingsMapper, }; -export const parameters62: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", - mapper: PortalDelegationSettingsMapper + mapper: PortalDelegationSettingsMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1406,14 +1511,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { required: true, xmlName: "privateEndpointConnectionName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionRequest: OperationParameter = { parameterPath: "privateEndpointConnectionRequest", - mapper: PrivateEndpointConnectionRequestMapper + mapper: PrivateEndpointConnectionRequestMapper, }; export const privateLinkSubResourceName: OperationURLParameter = { @@ -1423,9 +1528,9 @@ export const privateLinkSubResourceName: OperationURLParameter = { required: true, xmlName: "privateLinkSubResourceName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandGroups: OperationQueryParameter = { @@ -1434,19 +1539,19 @@ export const expandGroups: OperationQueryParameter = { serializedName: "expandGroups", xmlName: "expandGroups", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters63: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: ProductContractMapper + mapper: ProductContractMapper, }; -export const parameters64: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: ProductUpdateParametersMapper + mapper: ProductUpdateParametersMapper, }; export const deleteSubscriptions: OperationQueryParameter = { @@ -1455,9 +1560,9 @@ export const deleteSubscriptions: OperationQueryParameter = { serializedName: "deleteSubscriptions", xmlName: "deleteSubscriptions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedProducts: OperationQueryParameter = { @@ -1466,9 +1571,53 @@ export const includeNotTaggedProducts: OperationQueryParameter = { serializedName: "includeNotTaggedProducts", xmlName: "includeNotTaggedProducts", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, +}; + +export const apiLinkId: OperationURLParameter = { + parameterPath: "apiLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "apiLinkId", + required: true, + xmlName: "apiLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters74: OperationParameter = { + parameterPath: "parameters", + mapper: ProductApiLinkContractMapper, +}; + +export const groupLinkId: OperationURLParameter = { + parameterPath: "groupLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "groupLinkId", + required: true, + xmlName: "groupLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters75: OperationParameter = { + parameterPath: "parameters", + mapper: ProductGroupLinkContractMapper, }; export const quotaCounterKey: OperationURLParameter = { @@ -1478,14 +1627,14 @@ export const quotaCounterKey: OperationURLParameter = { required: true, xmlName: "quotaCounterKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters65: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", - mapper: QuotaCounterValueUpdateContractMapper + mapper: QuotaCounterValueUpdateContractMapper, }; export const quotaPeriodKey: OperationURLParameter = { @@ -1495,9 +1644,9 @@ export const quotaPeriodKey: OperationURLParameter = { required: true, xmlName: "quotaPeriodKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -1507,9 +1656,9 @@ export const filter1: OperationQueryParameter = { required: true, xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const interval: OperationQueryParameter = { @@ -1519,14 +1668,14 @@ export const interval: OperationQueryParameter = { required: true, xmlName: "interval", type: { - name: "TimeSpan" - } - } + name: "TimeSpan", + }, + }, }; -export const parameters66: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: GlobalSchemaContractMapper + mapper: GlobalSchemaContractMapper, }; export const settingsType: OperationURLParameter = { @@ -1536,9 +1685,9 @@ export const settingsType: OperationURLParameter = { required: true, xmlName: "settingsType", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sid: OperationURLParameter = { @@ -1546,20 +1695,20 @@ export const sid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "sid", required: true, xmlName: "sid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters67: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionCreateParametersMapper + mapper: SubscriptionCreateParametersMapper, }; export const notify: OperationQueryParameter = { @@ -1568,9 +1717,9 @@ export const notify: OperationQueryParameter = { serializedName: "notify", xmlName: "notify", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const appType: OperationQueryParameter = { @@ -1579,14 +1728,63 @@ export const appType: OperationQueryParameter = { serializedName: "appType", xmlName: "appType", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters68: OperationParameter = { +export const parameters79: OperationParameter = { + parameterPath: "parameters", + mapper: SubscriptionUpdateParametersMapper, +}; + +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: TagApiLinkContractMapper, +}; + +export const operationLinkId: OperationURLParameter = { + parameterPath: "operationLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "operationLinkId", + required: true, + xmlName: "operationLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters81: OperationParameter = { + parameterPath: "parameters", + mapper: TagOperationLinkContractMapper, +}; + +export const productLinkId: OperationURLParameter = { + parameterPath: "productLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "productLinkId", + required: true, + xmlName: "productLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters82: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionUpdateParametersMapper + mapper: TagProductLinkContractMapper, }; export const accessName: OperationURLParameter = { @@ -1596,24 +1794,24 @@ export const accessName: OperationURLParameter = { required: true, xmlName: "accessName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters69: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationCreateParametersMapper + mapper: AccessInformationCreateParametersMapper, }; -export const parameters70: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationUpdateParametersMapper + mapper: AccessInformationUpdateParametersMapper, }; -export const parameters71: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", - mapper: DeployConfigurationParametersMapper + mapper: DeployConfigurationParametersMapper, }; export const configurationName: OperationURLParameter = { @@ -1623,54 +1821,60 @@ export const configurationName: OperationURLParameter = { required: true, xmlName: "configurationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters72: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: SaveConfigurationParameterMapper + mapper: SaveConfigurationParameterMapper, }; -export const parameters73: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", - mapper: UserCreateParametersMapper + mapper: UserCreateParametersMapper, }; -export const parameters74: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", - mapper: UserUpdateParametersMapper + mapper: UserUpdateParametersMapper, }; -export const parameters75: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: UserTokenParametersMapper + mapper: UserTokenParametersMapper, }; -export const documentationId: OperationURLParameter = { - parameterPath: "documentationId", +export const workspaceId: OperationURLParameter = { + parameterPath: "workspaceId", mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 80, + MinLength: 1, }, - serializedName: "documentationId", + serializedName: "workspaceId", required: true, - xmlName: "documentationId", + xmlName: "workspaceId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters76: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: DocumentationContractMapper + mapper: WorkspaceContractMapper, }; -export const parameters77: OperationParameter = { - parameterPath: "parameters", - mapper: DocumentationUpdateContractMapper +export const isKeyVaultRefreshFailed1: OperationQueryParameter = { + parameterPath: ["options", "isKeyVaultRefreshFailed"], + mapper: { + serializedName: "isKeyVaultRefreshFailed", + xmlName: "isKeyVaultRefreshFailed", + type: { + name: "String", + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts new file mode 100644 index 000000000000..8e860e279b91 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts @@ -0,0 +1,201 @@ +/* + * 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 { AllPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AllPoliciesContract, + AllPoliciesListByServiceNextOptionalParams, + AllPoliciesListByServiceOptionalParams, + AllPoliciesListByServiceResponse, + AllPoliciesListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing AllPolicies operations. */ +export class AllPoliciesImpl implements AllPolicies { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AllPolicies class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: AllPoliciesListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: AllPoliciesListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/allPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c1635689c9a8..7acbf6122cde 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,8 +39,9 @@ import { ApiUpdateOptionalParams, ApiUpdateResponse, ApiDeleteOptionalParams, + ApiDeleteResponse, ApiListByServiceNextResponse, - ApiListByTagsNextResponse + ApiListByTagsNextResponse, } from "../models"; /// @@ -65,12 +66,12 @@ export class ApiImpl implements Api { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -87,9 +88,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +106,7 @@ export class ApiImpl implements Api { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,12 +130,12 @@ export class ApiImpl implements Api { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -149,12 +150,12 @@ export class ApiImpl implements Api { public listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -171,9 +172,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -181,7 +182,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -197,7 +198,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -209,12 +210,12 @@ export class ApiImpl implements Api { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -229,11 +230,11 @@ export class ApiImpl implements Api { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -249,11 +250,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -269,11 +270,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -291,7 +292,7 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +301,20 @@ export class ApiImpl implements Api { > { 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); @@ -323,8 +323,8 @@ export class ApiImpl implements Api { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,15 +332,15 @@ export class ApiImpl implements Api { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apiId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiCreateOrUpdateResponse, @@ -348,7 +348,7 @@ export class ApiImpl implements Api { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -368,14 +368,14 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, apiId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -397,11 +397,11 @@ export class ApiImpl implements Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -415,17 +415,95 @@ export class ApiImpl implements Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + > { + 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, serviceName, apiId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apiId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -437,11 +515,11 @@ export class ApiImpl implements Api { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -456,11 +534,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByServiceNextOptionalParams + options?: ApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -475,11 +553,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByTagsNextOptionalParams + options?: ApiListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -487,45 +565,43 @@ export class ApiImpl implements Api { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, Parameters.expandApiVersionSet, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiGetEntityTagHeaders + headersMapper: Mappers.ApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,23 +609,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiGetHeaders + headersMapper: Mappers.ApiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -557,93 +632,100 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiUpdateHeaders + headersMapper: Mappers.ApiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApiDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], urlParameters: [ @@ -651,78 +733,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedApis + Parameters.includeNotTaggedApis, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index 7f8a30b7977e..ae1989ebd468 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -27,7 +27,7 @@ import { ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, ApiDiagnosticDeleteOptionalParams, - ApiDiagnosticListByServiceNextResponse + ApiDiagnosticListByServiceNextResponse, } from "../models"; /// @@ -54,13 +54,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, options?: ApiDiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiDiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +124,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -191,11 +191,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -215,7 +215,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -224,9 +224,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId, diagnosticId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -249,7 +249,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -259,9 +259,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -282,11 +282,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -303,11 +303,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, nextLink: string, - options?: ApiDiagnosticListByServiceNextOptionalParams + options?: ApiDiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,44 +315,42 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders + headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -361,23 +359,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticGetHeaders + headersMapper: Mappers.ApiDiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -386,29 +383,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -416,30 +412,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticUpdateHeaders + headersMapper: Mappers.ApiDiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -447,26 +442,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,21 +469,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -497,8 +491,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index c87591913545..bc5866031af4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -15,7 +15,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Class containing ApiExport operations. */ @@ -38,7 +38,7 @@ export class ApiExportImpl implements ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -48,11 +48,11 @@ export class ApiExportImpl implements ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, format, exportParam, options }, - getOperationSpec + getOperationSpec, ); } } @@ -60,29 +60,28 @@ export class ApiExportImpl implements ApiExport { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiExportResult + bodyMapper: Mappers.ApiExportResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.format1, - Parameters.exportParam + Parameters.exportParam, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 527cad10dd31..773c5da3acbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -28,7 +28,7 @@ import { ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, ApiIssueDeleteOptionalParams, - ApiIssueListByServiceNextResponse + ApiIssueListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, options?: ApiIssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -190,11 +190,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -213,11 +213,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -239,7 +239,7 @@ export class ApiIssueImpl implements ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -249,9 +249,9 @@ export class ApiIssueImpl implements ApiIssue { issueId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -271,11 +271,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, nextLink: string, - options?: ApiIssueListByServiceNextOptionalParams + options?: ApiIssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class ApiIssueImpl implements ApiIssue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueGetEntityTagHeaders + headersMapper: Mappers.ApiIssueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueGetHeaders + headersMapper: Mappers.ApiIssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, @@ -379,29 +376,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,30 +405,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueUpdateHeaders + headersMapper: Mappers.ApiIssueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -440,26 +435,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,21 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -490,8 +484,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index b4e477407b59..9601308402a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -25,7 +25,7 @@ import { ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, ApiIssueAttachmentDeleteOptionalParams, - ApiIssueAttachmentListByServiceNextResponse + ApiIssueAttachmentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, options?: ApiIssueAttachmentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueAttachmentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueAttachmentListByServiceNextOptionalParams + options?: ApiIssueAttachmentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentGetHeaders + headersMapper: Mappers.ApiIssueAttachmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a7449a1a1e67..f34288058517 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -25,7 +25,7 @@ import { ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, ApiIssueCommentDeleteOptionalParams, - ApiIssueCommentListByServiceNextResponse + ApiIssueCommentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, options?: ApiIssueCommentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueCommentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueCommentListByServiceNextOptionalParams + options?: ApiIssueCommentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueCommentImpl implements ApiIssueComment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentGetHeaders + headersMapper: Mappers.ApiIssueCommentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts new file mode 100644 index 000000000000..e74315e889eb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts @@ -0,0 +1,728 @@ +/* + * 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 { ApiManagementGateway } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupNextOptionalParams, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListByResourceGroupResponse, + ApiManagementGatewayListNextOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayListResponse, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, + ApiManagementGatewayListByResourceGroupNextResponse, + ApiManagementGatewayListNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementGateway operations. */ +export class ApiManagementGatewayImpl implements ApiManagementGateway { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementGateway class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + public list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: ApiManagementGatewayListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: ApiManagementGatewayListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + > { + 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, gatewayName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + > { + 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, gatewayName, parameters, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + getOperationSpec, + ); + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + > { + 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, gatewayName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + gatewayName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec, + ); + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + private _list( + options?: ApiManagementGatewayListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: ApiManagementGatewayListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: ApiManagementGatewayListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateway", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/gateway", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts index a5f8d7391fd4..77fbd3f0e1ff 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts @@ -18,7 +18,7 @@ import { ApiManagementOperationsListNextOptionalParams, ApiManagementOperationsListOptionalParams, ApiManagementOperationsListResponse, - ApiManagementOperationsListNextResponse + ApiManagementOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ public list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { } private async *listPagingAll( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ private _list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { */ private _listNext( nextLink: string, - options?: ApiManagementOperationsListNextOptionalParams + options?: ApiManagementOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, 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.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 874d5245fd79..002825d7d28d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -52,7 +52,7 @@ import { ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, ApiManagementServiceListByResourceGroupNextResponse, - ApiManagementServiceListNextResponse + ApiManagementServiceListNextResponse, } from "../models"; /// @@ -75,7 +75,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ public listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -92,16 +92,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ApiManagementServiceListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,11 +127,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ public list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -157,13 +157,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementServiceListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListResponse; let continuationToken = settings?.continuationToken; @@ -184,7 +184,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { } private async *listPagingAll( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -204,7 +204,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { 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); @@ -236,8 +235,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,15 +244,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: restoreOperationSpec + spec: restoreOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceRestoreResponse, @@ -261,7 +260,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -280,13 +279,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise { const poller = await this.beginRestore( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -303,7 +302,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -312,21 +311,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { 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); @@ -335,8 +333,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -344,15 +342,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: backupOperationSpec + spec: backupOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceBackupResponse, @@ -360,7 +358,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -378,13 +376,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise { const poller = await this.beginBackup( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -401,7 +399,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,21 +408,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { 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); @@ -433,8 +430,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -442,22 +439,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -475,13 +472,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -497,7 +494,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -506,21 +503,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { 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); @@ -529,8 +525,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,22 +534,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -570,13 +566,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -590,11 +586,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -607,25 +603,24 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): 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); @@ -634,8 +629,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -643,19 +638,19 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -670,12 +665,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -691,7 +686,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -700,21 +695,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { 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); @@ -723,8 +717,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -732,15 +726,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: migrateToStv2OperationSpec + spec: migrateToStv2OperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceMigrateToStv2Response, @@ -748,7 +742,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -765,12 +759,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise { const poller = await this.beginMigrateToStv2( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -782,11 +776,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -795,7 +789,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ private _list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -809,11 +803,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getSsoTokenOperationSpec + getSsoTokenOperationSpec, ); } @@ -824,11 +818,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -837,11 +831,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getDomainOwnershipIdentifierOperationSpec + getDomainOwnershipIdentifierOperationSpec, ); } @@ -855,32 +849,29 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > > { 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); @@ -889,8 +880,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -898,25 +889,23 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: applyNetworkConfigurationUpdatesOperationSpec + spec: applyNetworkConfigurationUpdatesOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - > + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -932,12 +921,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise { const poller = await this.beginApplyNetworkConfigurationUpdates( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -951,11 +940,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ApiManagementServiceListByResourceGroupNextOptionalParams + options?: ApiManagementServiceListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -966,11 +955,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listNext( nextLink: string, - options?: ApiManagementServiceListNextOptionalParams + options?: ApiManagementServiceListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -978,162 +967,156 @@ export class ApiManagementServiceImpl implements ApiManagementService { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const restoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const backupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1141,215 +1124,212 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const migrateToStv2OperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSsoTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult + bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult + bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getDomainOwnershipIdentifierOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult + bodyMapper: + Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; -const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 201: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 202: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 204: { - bodyMapper: Mappers.ApiManagementServiceResource +const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index 4c96ac12b9bf..c14dc2a82f70 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusResponse, - ApiManagementServiceSkusListAvailableServiceSkusNextResponse + ApiManagementServiceSkusListAvailableServiceSkusNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { public listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableServiceSkusPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceSkusListAvailableServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { result = await this._listAvailableServiceSkus( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private async *listAvailableServiceSkusPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableServiceSkusPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private _listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listAvailableServiceSkusOperationSpec + listAvailableServiceSkusOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listAvailableServiceSkusNextOperationSpec + listAvailableServiceSkusNextOperationSpec, ); } } @@ -159,45 +159,44 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAvailableServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableServiceSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts index fa148734690f..f00f87b6d9a1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementSkusListNextOptionalParams, ApiManagementSkusListOptionalParams, ApiManagementSkusListResponse, - ApiManagementSkusListNextResponse + ApiManagementSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ public list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { } private async *listPagingAll( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ private _list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { */ private _listNext( nextLink: string, - options?: ApiManagementSkusListNextOptionalParams + options?: ApiManagementSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -117,38 +117,37 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 719e17d32e77..5e711242e435 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -28,7 +28,7 @@ import { ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, ApiOperationDeleteOptionalParams, - ApiOperationListByApiNextResponse + ApiOperationListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, options?: ApiOperationListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiOperationListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiOperationImpl implements ApiOperation { apiId, operationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class ApiOperationImpl implements ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class ApiOperationImpl implements ApiOperation { operationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, nextLink: string, - options?: ApiOperationListByApiNextOptionalParams + options?: ApiOperationListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,45 +324,43 @@ export class ApiOperationImpl implements ApiOperation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationGetEntityTagHeaders + headersMapper: Mappers.ApiOperationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,23 +369,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationGetHeaders + headersMapper: Mappers.ApiOperationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -396,29 +393,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -426,30 +422,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationUpdateHeaders + headersMapper: Mappers.ApiOperationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -457,26 +452,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -485,30 +479,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 5bec2b5db52c..d019cbe1b697 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiOperationPolicy operations. */ @@ -52,11 +52,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -77,11 +77,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -102,11 +102,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,7 +129,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -139,9 +139,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -165,7 +165,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -185,16 +185,15 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -203,22 +202,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -228,23 +226,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyGetHeaders + headersMapper: Mappers.ApiOperationPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -254,29 +251,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -285,26 +281,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -314,8 +309,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 9bcc792f5dd5..012514520190 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiPolicy operations. */ @@ -49,11 +49,11 @@ export class ApiPolicyImpl implements ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -71,11 +71,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -93,11 +93,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -117,11 +117,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -142,11 +142,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -156,16 +156,15 @@ const xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true); const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +172,21 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +195,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyGetHeaders + headersMapper: Mappers.ApiPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,30 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept1], isXML: true, - serializer: xmlSerializer + serializer: xmlSerializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -253,26 +249,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -281,8 +276,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index b9a226a7aadb..46e2621c7cda 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -18,7 +18,7 @@ import { ApiProductListByApisNextOptionalParams, ApiProductListByApisOptionalParams, ApiProductListByApisResponse, - ApiProductListByApisNextResponse + ApiProductListByApisNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApisPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, options?: ApiProductListByApisOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiProductListByApisResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApisPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApisOperationSpec + listByApisOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, nextLink: string, - options?: ApiProductListByApisNextOptionalParams + options?: ApiProductListByApisNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApisNextOperationSpec + listByApisNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiProductImpl implements ApiProduct { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApisOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApisNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByApisNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 345185b5a2d9..3b4410f6f535 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -27,7 +27,7 @@ import { ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, ApiReleaseDeleteOptionalParams, - ApiReleaseListByServiceNextResponse + ApiReleaseListByServiceNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, options?: ApiReleaseListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiReleaseListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -151,11 +151,11 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +195,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,11 +219,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,7 +246,7 @@ export class ApiReleaseImpl implements ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -256,9 +256,9 @@ export class ApiReleaseImpl implements ApiRelease { releaseId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -300,11 +300,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, nextLink: string, - options?: ApiReleaseListByServiceNextOptionalParams + options?: ApiReleaseListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -312,44 +312,42 @@ export class ApiReleaseImpl implements ApiRelease { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiReleaseGetEntityTagHeaders + headersMapper: Mappers.ApiReleaseGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -358,23 +356,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseGetHeaders + headersMapper: Mappers.ApiReleaseGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -383,29 +380,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -413,30 +409,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseUpdateHeaders + headersMapper: Mappers.ApiReleaseUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -444,26 +439,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,21 +466,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -494,8 +488,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index c76a9aa1f6bf..876ead3737e4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -18,7 +18,7 @@ import { ApiRevisionListByServiceNextOptionalParams, ApiRevisionListByServiceOptionalParams, ApiRevisionListByServiceResponse, - ApiRevisionListByServiceNextResponse + ApiRevisionListByServiceNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, options?: ApiRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, nextLink: string, - options?: ApiRevisionListByServiceNextOptionalParams + options?: ApiRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiRevisionImpl implements ApiRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 81cdbcbce722..d26671dabc61 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, ApiSchemaDeleteOptionalParams, - ApiSchemaListByApiNextResponse + ApiSchemaListByApiNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, options?: ApiSchemaListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiSchemaListByApiResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -175,11 +175,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -197,11 +197,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,21 +230,20 @@ export class ApiSchemaImpl implements ApiSchema { > { 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); @@ -253,8 +252,8 @@ export class ApiSchemaImpl implements ApiSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -262,8 +261,8 @@ export class ApiSchemaImpl implements ApiSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiSchemaCreateOrUpdateResponse, @@ -285,7 +284,7 @@ export class ApiSchemaImpl implements ApiSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -307,7 +306,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -315,7 +314,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -337,11 +336,11 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -359,11 +358,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, nextLink: string, - options?: ApiSchemaListByApiNextOptionalParams + options?: ApiSchemaListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -371,44 +370,42 @@ export class ApiSchemaImpl implements ApiSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiSchemaGetEntityTagHeaders + headersMapper: Mappers.ApiSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -417,23 +414,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaGetHeaders + headersMapper: Mappers.ApiSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -442,37 +438,36 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -480,26 +475,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.force], urlParameters: [ @@ -508,30 +502,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index 34f2b6f132b9..32eebbe9d6a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -26,7 +26,7 @@ import { ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, ApiTagDescriptionDeleteOptionalParams, - ApiTagDescriptionListByServiceNextResponse + ApiTagDescriptionListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, options?: ApiTagDescriptionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiTagDescriptionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -254,7 +254,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -263,9 +263,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -283,11 +283,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, nextLink: string, - options?: ApiTagDescriptionListByServiceNextOptionalParams + options?: ApiTagDescriptionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -295,44 +295,42 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders + headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,23 +339,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionGetHeaders + headersMapper: Mappers.ApiTagDescriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -366,29 +363,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -396,26 +392,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -424,30 +419,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 2057a4b4532a..c852592590cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -28,7 +28,7 @@ import { ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, ApiVersionSetDeleteOptionalParams, - ApiVersionSetListByServiceNextResponse + ApiVersionSetListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, options?: ApiVersionSetListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiVersionSetListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiVersionSetListByServiceNextOptionalParams + options?: ApiVersionSetListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class ApiVersionSetImpl implements ApiVersionSet { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders + headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetGetHeaders + headersMapper: Mappers.ApiVersionSetGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetUpdateHeaders + headersMapper: Mappers.ApiVersionSetUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts index 97883b205cfb..32f6640a5dbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Class containing ApiWiki operations. */ @@ -48,11 +48,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,11 +112,11 @@ export class ApiWikiImpl implements ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -134,11 +134,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -146,16 +146,15 @@ export class ApiWikiImpl implements ApiWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiWikiGetEntityTagHeaders + headersMapper: Mappers.ApiWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -163,23 +162,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiGetHeaders + headersMapper: Mappers.ApiWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -187,85 +185,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiUpdateHeaders + headersMapper: Mappers.ApiWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -273,8 +268,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts index d4aeb49360f5..3e3dc2241d2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -18,7 +18,7 @@ import { ApiWikisListNextOptionalParams, ApiWikisListOptionalParams, ApiWikisListResponse, - ApiWikisListNextResponse + ApiWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, options?: ApiWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiWikisListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,13 +110,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, nextLink: string, - options?: ApiWikisListNextOptionalParams + options?: ApiWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -166,43 +166,42 @@ export class ApiWikisImpl implements ApiWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts index c347d55c595e..82d42ca5cb98 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -26,7 +26,7 @@ import { AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, AuthorizationConfirmConsentCodeResponse, - AuthorizationListByAuthorizationProviderNextResponse + AuthorizationListByAuthorizationProviderNextResponse, } from "../models"; /// @@ -53,13 +53,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationProviderPagingAll( resourceGroupName, serviceName, authorizationProviderId, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationListByAuthorizationProviderResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class AuthorizationImpl implements Authorization { resourceGroupName, serviceName, authorizationProviderId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,13 +123,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationProviderPagingPage( resourceGroupName, serviceName, authorizationProviderId, - options + options, )) { yield* page; } @@ -146,11 +146,11 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - listByAuthorizationProviderOperationSpec + listByAuthorizationProviderOperationSpec, ); } @@ -167,7 +167,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, authorizationId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -205,9 +205,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -227,7 +227,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -236,9 +236,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -257,7 +257,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - confirmConsentCodeOperationSpec + confirmConsentCodeOperationSpec, ); } @@ -286,7 +286,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, nextLink: string, - options?: AuthorizationListByAuthorizationProviderNextOptionalParams + options?: AuthorizationListByAuthorizationProviderNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -294,9 +294,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, nextLink, - options + options, }, - listByAuthorizationProviderNextOperationSpec + listByAuthorizationProviderNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class AuthorizationImpl implements Authorization { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationGetHeaders + headersMapper: Mappers.AuthorizationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,22 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], @@ -434,22 +429,22 @@ const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -457,8 +452,8 @@ const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts index 021fe8debd36..37c3f55cd045 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -23,13 +23,14 @@ import { AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, AuthorizationAccessPolicyDeleteOptionalParams, - AuthorizationAccessPolicyListByAuthorizationNextResponse + AuthorizationAccessPolicyListByAuthorizationNextResponse, } from "../models"; /// /** Class containing AuthorizationAccessPolicy operations. */ export class AuthorizationAccessPolicyImpl - implements AuthorizationAccessPolicy { + implements AuthorizationAccessPolicy +{ private readonly client: ApiManagementClient; /** @@ -53,14 +54,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationPagingAll( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +92,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationAccessPolicyListByAuthorizationResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +116,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,14 +130,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationPagingPage( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, }, - listByAuthorizationOperationSpec + listByAuthorizationOperationSpec, ); } @@ -184,7 +185,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -193,9 +194,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, authorizationAccessPolicyId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -216,7 +217,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -226,9 +227,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -250,7 +251,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -260,9 +261,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,7 +282,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, nextLink: string, - options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -290,9 +291,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, nextLink, - options + options, }, - listByAuthorizationNextOperationSpec + listByAuthorizationNextOperationSpec, ); } } @@ -300,22 +301,21 @@ export class AuthorizationAccessPolicyImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -323,23 +323,22 @@ const listByAuthorizationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders + headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,27 +348,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], @@ -380,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +406,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -432,8 +429,8 @@ const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts index 7a86c6edba4f..69ef0fa99edc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Class containing AuthorizationLoginLinks operations. */ @@ -44,7 +44,7 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -53,9 +53,9 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId, authorizationId, parameters, - options + options, }, - postOperationSpec + postOperationSpec, ); } } @@ -63,17 +63,16 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const postOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationLoginResponseContract, - headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], @@ -83,9 +82,9 @@ const postOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts index 603eae55b5fa..6aeeff62958c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -23,7 +23,7 @@ import { AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, AuthorizationProviderDeleteOptionalParams, - AuthorizationProviderListByServiceNextResponse + AuthorizationProviderListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - getOperationSpec + getOperationSpec, ); } @@ -172,7 +172,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -200,7 +200,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -225,11 +225,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationProviderListByServiceNextOptionalParams + options?: AuthorizationProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -237,44 +237,42 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderGetHeaders + headersMapper: Mappers.AuthorizationProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -282,27 +280,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], @@ -311,26 +308,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,29 +334,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 99abc294e940..c3ecda153cf6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -30,7 +30,7 @@ import { AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, AuthorizationServerListSecretsResponse, - AuthorizationServerListByServiceNextResponse + AuthorizationServerListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationServerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationServerListByServiceNextOptionalParams + options?: AuthorizationServerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class AuthorizationServerImpl implements AuthorizationServer { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders + headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerGetHeaders + headersMapper: Mappers.AuthorizationServerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerUpdateHeaders + headersMapper: Mappers.AuthorizationServerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationServerSecretsContract, - headersMapper: Mappers.AuthorizationServerListSecretsHeaders + headersMapper: Mappers.AuthorizationServerListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index c445f24cedbc..556eab5edd6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -29,7 +29,7 @@ import { BackendUpdateResponse, BackendDeleteOptionalParams, BackendReconnectOptionalParams, - BackendListByServiceNextResponse + BackendListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class BackendImpl implements Backend { public listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackendListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class BackendImpl implements Backend { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class BackendImpl implements Backend { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class BackendImpl implements Backend { private _listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,11 +200,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -225,7 +225,7 @@ export class BackendImpl implements Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -234,9 +234,9 @@ export class BackendImpl implements Backend { backendId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -255,11 +255,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -276,11 +276,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - reconnectOperationSpec + reconnectOperationSpec, ); } @@ -295,11 +295,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, nextLink: string, - options?: BackendListByServiceNextOptionalParams + options?: BackendListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -307,43 +307,41 @@ export class BackendImpl implements Backend { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.BackendGetEntityTagHeaders + headersMapper: Mappers.BackendGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,23 +349,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendGetHeaders + headersMapper: Mappers.BackendGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -375,85 +372,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendUpdateHeaders + headersMapper: Mappers.BackendUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -461,52 +455,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const reconnectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", httpMethod: "POST", responses: { 202: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index 4c8a2d9f2f7c..8f9f36634915 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -28,7 +28,7 @@ import { CacheUpdateOptionalParams, CacheUpdateResponse, CacheDeleteOptionalParams, - CacheListByServiceNextResponse + CacheListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CacheImpl implements Cache { public listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CacheListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CacheImpl implements Cache { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CacheImpl implements Cache { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CacheImpl implements Cache { private _listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,11 +224,11 @@ export class CacheImpl implements Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -247,11 +247,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -266,11 +266,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CacheListByServiceNextOptionalParams + options?: CacheListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -278,38 +278,36 @@ export class CacheImpl implements Cache { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CacheGetEntityTagHeaders + headersMapper: Mappers.CacheGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -317,23 +315,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheGetHeaders + headersMapper: Mappers.CacheGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,85 +338,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheUpdateHeaders + headersMapper: Mappers.CacheUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -427,29 +421,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index e4768349aeb3..d712736f1ab7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -28,7 +28,7 @@ import { CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, CertificateRefreshSecretResponse, - CertificateListByServiceNextResponse + CertificateListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CertificateImpl implements Certificate { public listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, options?: CertificateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CertificateImpl implements Certificate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CertificateImpl implements Certificate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CertificateImpl implements Certificate { private _listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +242,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - refreshSecretOperationSpec + refreshSecretOperationSpec, ); } @@ -261,11 +261,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CertificateListByServiceNextOptionalParams + options?: CertificateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -273,44 +273,42 @@ export class CertificateImpl implements Certificate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CertificateGetEntityTagHeaders + headersMapper: Mappers.CertificateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,55 +339,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,23 +393,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateRefreshSecretHeaders + headersMapper: Mappers.CertificateRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,29 +416,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 3f3cc3eac3b8..431b17e63451 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -25,7 +25,7 @@ import { ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, ContentItemDeleteOptionalParams, - ContentItemListByServiceNextResponse + ContentItemListByServiceNextResponse, } from "../models"; /// @@ -52,13 +52,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, contentTypeId, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentItemListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class ContentItemImpl implements ContentItem { resourceGroupName, serviceName, contentTypeId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,13 +122,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, contentTypeId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -188,11 +188,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getOperationSpec + getOperationSpec, ); } @@ -211,7 +211,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -220,9 +220,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -242,7 +242,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -251,9 +251,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -270,11 +270,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, nextLink: string, - options?: ContentItemListByServiceNextOptionalParams + options?: ContentItemListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -282,16 +282,15 @@ export class ContentItemImpl implements ContentItem { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +298,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ContentItemGetEntityTagHeaders + headersMapper: Mappers.ContentItemGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -323,23 +321,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemGetHeaders + headersMapper: Mappers.ContentItemGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,29 +345,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -378,26 +374,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -406,21 +401,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -428,8 +423,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index e9208395eed7..3d08655a3c14 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -23,7 +23,7 @@ import { ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, ContentTypeDeleteOptionalParams, - ContentTypeListByServiceNextResponse + ContentTypeListByServiceNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class ContentTypeImpl implements ContentType { public listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, options?: ContentTypeListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentTypeListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ContentTypeImpl implements ContentType { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class ContentTypeImpl implements ContentType { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class ContentTypeImpl implements ContentType { private _listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -154,11 +154,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - getOperationSpec + getOperationSpec, ); } @@ -177,11 +177,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -201,11 +201,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -220,11 +220,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ContentTypeListByServiceNextOptionalParams + options?: ContentTypeListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -232,39 +232,37 @@ export class ContentTypeImpl implements ContentType { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeGetHeaders + headersMapper: Mappers.ContentTypeGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -272,55 +270,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,29 +324,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index d4a14c240964..095925c8b2bb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -21,7 +21,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Class containing DelegationSettings operations. */ @@ -45,11 +45,11 @@ export class DelegationSettingsImpl implements DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -62,11 +62,11 @@ export class DelegationSettingsImpl implements DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -84,11 +84,11 @@ export class DelegationSettingsImpl implements DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -103,11 +103,11 @@ export class DelegationSettingsImpl implements DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -120,11 +120,11 @@ export class DelegationSettingsImpl implements DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } } @@ -132,123 +132,118 @@ export class DelegationSettingsImpl implements DelegationSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders + headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalDelegationSettings, - headersMapper: Mappers.DelegationSettingsGetHeaders + headersMapper: Mappers.DelegationSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalDelegationSettings + bodyMapper: Mappers.PortalDelegationSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PortalSettingValidationKeyContract + bodyMapper: Mappers.PortalSettingValidationKeyContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 8dd8dab2cfc4..ad952848d334 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, DeletedServicesPurgeOptionalParams, - DeletedServicesListBySubscriptionNextResponse + DeletedServicesListBySubscriptionNextResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ public listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -63,13 +63,13 @@ export class DeletedServicesImpl implements DeletedServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DeletedServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeletedServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class DeletedServicesImpl implements DeletedServices { } private async *listBySubscriptionPagingAll( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -102,11 +102,11 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ private _listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -119,11 +119,11 @@ export class DeletedServicesImpl implements DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { serviceName, location, options }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -136,25 +136,24 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): 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); @@ -163,8 +162,8 @@ export class DeletedServicesImpl implements DeletedServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -172,20 +171,20 @@ export class DeletedServicesImpl implements DeletedServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { serviceName, location, options }, - spec: purgeOperationSpec + spec: purgeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -200,7 +199,7 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise { const poller = await this.beginPurge(serviceName, location, options); return poller.pollUntilDone(); @@ -213,11 +212,11 @@ export class DeletedServicesImpl implements DeletedServices { */ private _listBySubscriptionNext( nextLink: string, - options?: DeletedServicesListBySubscriptionNextOptionalParams + options?: DeletedServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -225,47 +224,44 @@ export class DeletedServicesImpl implements DeletedServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServiceContract + bodyMapper: Mappers.DeletedServiceContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -273,35 +269,35 @@ const purgeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index d27a987dc82b..25b5fbcec6c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -27,7 +27,7 @@ import { DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, DiagnosticDeleteOptionalParams, - DiagnosticListByServiceNextResponse + DiagnosticListByServiceNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class DiagnosticImpl implements Diagnostic { public listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class DiagnosticImpl implements Diagnostic { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class DiagnosticImpl implements Diagnostic { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -136,11 +136,11 @@ export class DiagnosticImpl implements Diagnostic { private _listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -223,7 +223,7 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -232,9 +232,9 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -253,11 +253,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -272,11 +272,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DiagnosticListByServiceNextOptionalParams + options?: DiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -284,43 +284,41 @@ export class DiagnosticImpl implements Diagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DiagnosticGetEntityTagHeaders + headersMapper: Mappers.DiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,23 +326,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticGetHeaders + headersMapper: Mappers.DiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,85 +349,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticUpdateHeaders + headersMapper: Mappers.DiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,29 +432,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts index 7550ac83335b..411424874fe7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -28,7 +28,7 @@ import { DocumentationUpdateOptionalParams, DocumentationUpdateResponse, DocumentationDeleteOptionalParams, - DocumentationListByServiceNextResponse + DocumentationListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class DocumentationImpl implements Documentation { public listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DocumentationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class DocumentationImpl implements Documentation { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class DocumentationImpl implements Documentation { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class DocumentationImpl implements Documentation { private _listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class DocumentationImpl implements Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class DocumentationImpl implements Documentation { documentationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DocumentationListByServiceNextOptionalParams + options?: DocumentationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class DocumentationImpl implements Documentation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DocumentationGetEntityTagHeaders + headersMapper: Mappers.DocumentationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationGetHeaders + headersMapper: Mappers.DocumentationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationUpdateHeaders + headersMapper: Mappers.DocumentationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index f718843e6496..83bbcbb749df 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -29,7 +29,7 @@ import { EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, EmailTemplateDeleteOptionalParams, - EmailTemplateListByServiceNextResponse + EmailTemplateListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class EmailTemplateImpl implements EmailTemplate { public listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EmailTemplateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class EmailTemplateImpl implements EmailTemplate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class EmailTemplateImpl implements EmailTemplate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class EmailTemplateImpl implements EmailTemplate { private _listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,7 +221,7 @@ export class EmailTemplateImpl implements EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class EmailTemplateImpl implements EmailTemplate { templateName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -269,11 +269,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: EmailTemplateListByServiceNextOptionalParams + options?: EmailTemplateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -281,43 +281,41 @@ export class EmailTemplateImpl implements EmailTemplate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.EmailTemplateGetEntityTagHeaders + headersMapper: Mappers.EmailTemplateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -325,23 +323,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateGetHeaders + headersMapper: Mappers.EmailTemplateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,83 +346,80 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, 201: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateUpdateHeaders + headersMapper: Mappers.EmailTemplateUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -433,29 +427,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index 490287bf253f..c974ff8de410 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -34,7 +34,14 @@ import { GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, GatewayGenerateTokenResponse, - GatewayListByServiceNextResponse + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, + GatewayListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class GatewayImpl implements Gateway { public listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class GatewayImpl implements Gateway { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class GatewayImpl implements Gateway { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class GatewayImpl implements Gateway { private _listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -163,11 +170,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -183,11 +190,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getOperationSpec + getOperationSpec, ); } @@ -205,11 +212,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +237,7 @@ export class GatewayImpl implements Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +246,9 @@ export class GatewayImpl implements Gateway { gatewayId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -260,11 +267,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -280,11 +287,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -302,11 +309,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -324,11 +331,75 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - generateTokenOperationSpec + generateTokenOperationSpec, + ); + } + + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, options }, + invalidateDebugCredentialsOperationSpec, + ); + } + + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listDebugCredentialsOperationSpec, + ); + } + + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listTraceOperationSpec, ); } @@ -343,11 +414,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GatewayListByServiceNextOptionalParams + options?: GatewayListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -355,43 +426,41 @@ export class GatewayImpl implements Gateway { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayGetEntityTagHeaders + headersMapper: Mappers.GatewayGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -399,23 +468,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayGetHeaders + headersMapper: Mappers.GatewayGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -423,85 +491,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayUpdateHeaders + headersMapper: Mappers.GatewayUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,23 +574,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.GatewayKeysContract, - headersMapper: Mappers.GatewayListKeysHeaders + headersMapper: Mappers.GatewayListKeysHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,77 +597,145 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const generateTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GatewayTokenContract + bodyMapper: Mappers.GatewayTokenContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const invalidateDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/invalidateDebugCredentials", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listDebugCredentials", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GatewayDebugCredentialsContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listTraceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listTrace", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index b355825a6bfe..836f0c669e87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -23,7 +23,7 @@ import { GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, GatewayApiDeleteOptionalParams, - GatewayApiListByServiceNextResponse + GatewayApiListByServiceNextResponse, } from "../models"; /// @@ -51,13 +51,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, options?: GatewayApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +121,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -189,11 +189,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -211,11 +211,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayApiListByServiceNextOptionalParams + options?: GatewayApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -245,44 +245,42 @@ export class GatewayApiImpl implements GatewayApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayApiGetEntityTagHeaders + headersMapper: Mappers.GatewayApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -291,27 +289,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -319,22 +316,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -343,21 +339,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -365,8 +361,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index bac861289331..3d68f14f2188 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -25,13 +25,14 @@ import { GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, GatewayCertificateAuthorityDeleteOptionalParams, - GatewayCertificateAuthorityListByServiceNextResponse + GatewayCertificateAuthorityListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayCertificateAuthority operations. */ export class GatewayCertificateAuthorityImpl - implements GatewayCertificateAuthority { + implements GatewayCertificateAuthority +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, options?: GatewayCertificateAuthorityListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayCertificateAuthorityListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayCertificateAuthorityImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -171,11 +172,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -194,11 +195,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,7 +220,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -228,9 +229,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -252,7 +253,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -261,9 +262,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,11 +282,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayCertificateAuthorityListByServiceNextOptionalParams + options?: GatewayCertificateAuthorityListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -293,44 +294,42 @@ export class GatewayCertificateAuthorityImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -339,23 +338,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -364,29 +362,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,26 +391,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,21 +418,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -444,8 +440,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index c65ce1a26b6b..c824b537b81e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -25,13 +25,14 @@ import { GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, GatewayHostnameConfigurationDeleteOptionalParams, - GatewayHostnameConfigurationListByServiceNextResponse + GatewayHostnameConfigurationListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayHostnameConfiguration operations. */ export class GatewayHostnameConfigurationImpl - implements GatewayHostnameConfiguration { + implements GatewayHostnameConfiguration +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, options?: GatewayHostnameConfigurationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayHostnameConfigurationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayHostnameConfigurationImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -172,11 +173,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +196,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getOperationSpec + getOperationSpec, ); } @@ -220,11 +221,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,11 +247,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +269,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayHostnameConfigurationListByServiceNextOptionalParams + options?: GatewayHostnameConfigurationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,44 +281,42 @@ export class GatewayHostnameConfigurationImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,23 +325,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,29 +349,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -431,8 +427,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 9081ec027225..a676200b9bff 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, GlobalSchemaDeleteOptionalParams, - GlobalSchemaListByServiceNextResponse + GlobalSchemaListByServiceNextResponse, } from "../models"; /// @@ -56,12 +56,12 @@ export class GlobalSchemaImpl implements GlobalSchema { public listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GlobalSchemaListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class GlobalSchemaImpl implements GlobalSchema { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +120,12 @@ export class GlobalSchemaImpl implements GlobalSchema { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class GlobalSchemaImpl implements GlobalSchema { private _listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,7 +199,7 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -208,21 +208,20 @@ export class GlobalSchemaImpl implements GlobalSchema { > { 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 +230,8 @@ export class GlobalSchemaImpl implements GlobalSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -240,15 +239,15 @@ export class GlobalSchemaImpl implements GlobalSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, schemaId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GlobalSchemaCreateOrUpdateResponse, @@ -256,7 +255,7 @@ export class GlobalSchemaImpl implements GlobalSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -275,14 +274,14 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +300,11 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -320,11 +319,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GlobalSchemaListByServiceNextOptionalParams + options?: GlobalSchemaListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -332,43 +331,41 @@ export class GlobalSchemaImpl implements GlobalSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders + headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -376,23 +373,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaGetHeaders + headersMapper: Mappers.GlobalSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -400,63 +396,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,29 +458,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts index 1d2fa2cedd2a..ecca0117b086 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -28,7 +28,7 @@ import { GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, GraphQLApiResolverDeleteOptionalParams, - GraphQLApiResolverListByApiNextResponse + GraphQLApiResolverListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId, resolverId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, nextLink: string, - options?: GraphQLApiResolverListByApiNextOptionalParams + options?: GraphQLApiResolverListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,44 +324,42 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -370,23 +368,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverGetHeaders + headersMapper: Mappers.GraphQLApiResolverGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -395,29 +392,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -425,30 +421,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -456,26 +451,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,30 +478,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts index 884fac6979f9..d064ae4aeac5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -26,7 +26,7 @@ import { GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, GraphQLApiResolverPolicyDeleteOptionalParams, - GraphQLApiResolverPolicyListByResolverNextResponse + GraphQLApiResolverPolicyListByResolverNextResponse, } from "../models"; /// @@ -57,14 +57,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResolverPagingAll( resourceGroupName, serviceName, apiId, resolverId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverPolicyListByResolverResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +105,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName, apiId, resolverId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +119,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -133,14 +133,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResolverPagingPage( resourceGroupName, serviceName, apiId, resolverId, - options + options, )) { yield* page; } @@ -161,11 +161,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - listByResolverOperationSpec + listByResolverOperationSpec, ); } @@ -186,11 +186,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -211,11 +211,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +238,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -248,9 +248,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -274,7 +274,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -284,9 +284,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -307,11 +307,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, nextLink: string, - options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, - listByResolverNextOperationSpec + listByResolverNextOperationSpec, ); } } @@ -319,16 +319,15 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResolverOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -337,22 +336,21 @@ const listByResolverOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,23 +360,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -388,29 +385,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -419,26 +415,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,31 +443,31 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByResolverNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.resolverId + Parameters.apiId, + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d2e53a84fd5e..c79ee1e34849 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -29,7 +29,7 @@ import { GroupUpdateOptionalParams, GroupUpdateResponse, GroupDeleteOptionalParams, - GroupListByServiceNextResponse + GroupListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class GroupImpl implements Group { public listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, options?: GroupListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupImpl implements Group { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class GroupImpl implements Group { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class GroupImpl implements Group { private _listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class GroupImpl implements Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,11 +243,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -262,11 +262,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GroupListByServiceNextOptionalParams + options?: GroupListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -274,43 +274,41 @@ export class GroupImpl implements Group { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GroupGetEntityTagHeaders + headersMapper: Mappers.GroupGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupGetHeaders + headersMapper: Mappers.GroupGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,85 +339,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupUpdateHeaders + headersMapper: Mappers.GroupUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,29 +422,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index d0e13397ab74..274d17238eb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -23,7 +23,7 @@ import { GroupUserCreateOptionalParams, GroupUserCreateResponse, GroupUserDeleteOptionalParams, - GroupUserListNextResponse + GroupUserListNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, groupId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, options?: GroupUserListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupUserListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupUserImpl implements GroupUser { resourceGroupName, serviceName, groupId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, groupId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,11 +164,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - createOperationSpec + createOperationSpec, ); } @@ -206,11 +206,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, nextLink: string, - options?: GroupUserListNextOptionalParams + options?: GroupUserListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -239,43 +239,41 @@ export class GroupUserImpl implements GroupUser { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -284,25 +282,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, 201: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,21 +308,20 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -334,21 +330,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -356,8 +352,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index 7718b64cc6b3..f08795cdec3e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -32,7 +32,7 @@ import { IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, IdentityProviderListSecretsResponse, - IdentityProviderListByServiceNextResponse + IdentityProviderListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class IdentityProviderImpl implements IdentityProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, options?: IdentityProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IdentityProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class IdentityProviderImpl implements IdentityProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class IdentityProviderImpl implements IdentityProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class IdentityProviderImpl implements IdentityProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -160,11 +160,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -179,11 +179,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,7 +200,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +230,7 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +239,9 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -259,7 +259,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -267,9 +267,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -284,11 +284,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -303,11 +303,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IdentityProviderListByServiceNextOptionalParams + options?: IdentityProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,38 +315,36 @@ export class IdentityProviderImpl implements IdentityProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.IdentityProviderGetEntityTagHeaders + headersMapper: Mappers.IdentityProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -354,23 +352,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderGetHeaders + headersMapper: Mappers.IdentityProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,85 +375,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderUpdateHeaders + headersMapper: Mappers.IdentityProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,23 +458,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.IdentityProviderListSecretsHeaders + headersMapper: Mappers.IdentityProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -488,29 +481,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 83434e88bcd2..09f3ef9b11f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +29,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +44,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -62,6 +65,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +81,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +92,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +103,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts index 55bf4c71ee76..a201a452f89d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -20,7 +20,7 @@ import { IssueListByServiceResponse, IssueGetOptionalParams, IssueGetResponse, - IssueListByServiceNextResponse + IssueListByServiceNextResponse, } from "../models"; /// @@ -45,12 +45,12 @@ export class IssueImpl implements Issue { public listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -67,9 +67,9 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -77,7 +77,7 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, options?: IssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class IssueImpl implements Issue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,12 +109,12 @@ export class IssueImpl implements Issue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -129,11 +129,11 @@ export class IssueImpl implements Issue { private _listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -148,11 +148,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IssueListByServiceNextOptionalParams + options?: IssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -179,44 +179,42 @@ export class IssueImpl implements Issue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.IssueGetHeaders + headersMapper: Mappers.IssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -224,29 +222,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index 626d49673b05..b6058435d280 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -28,7 +28,7 @@ import { LoggerUpdateOptionalParams, LoggerUpdateResponse, LoggerDeleteOptionalParams, - LoggerListByServiceNextResponse + LoggerListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class LoggerImpl implements Logger { public listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LoggerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class LoggerImpl implements Logger { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class LoggerImpl implements Logger { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class LoggerImpl implements Logger { private _listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -175,11 +175,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -220,7 +220,7 @@ export class LoggerImpl implements Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -229,9 +229,9 @@ export class LoggerImpl implements Logger { loggerId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -249,11 +249,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +268,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, nextLink: string, - options?: LoggerListByServiceNextOptionalParams + options?: LoggerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,43 +280,41 @@ export class LoggerImpl implements Logger { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.LoggerGetEntityTagHeaders + headersMapper: Mappers.LoggerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -324,23 +322,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerGetHeaders + headersMapper: Mappers.LoggerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,85 +345,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerUpdateHeaders + headersMapper: Mappers.LoggerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -434,29 +428,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index c15754457817..670d46bfd72e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, NamedValueRefreshSecretResponse, - NamedValueListByServiceNextResponse + NamedValueListByServiceNextResponse, } from "../models"; /// @@ -64,12 +64,12 @@ export class NamedValueImpl implements NamedValue { public listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -86,9 +86,9 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, options?: NamedValueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamedValueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class NamedValueImpl implements NamedValue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -128,12 +128,12 @@ export class NamedValueImpl implements NamedValue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class NamedValueImpl implements NamedValue { private _listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -186,11 +186,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -207,7 +207,7 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,21 +216,20 @@ export class NamedValueImpl implements NamedValue { > { 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); @@ -239,8 +238,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -248,8 +247,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -260,9 +259,9 @@ export class NamedValueImpl implements NamedValue { serviceName, namedValueId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< NamedValueCreateOrUpdateResponse, @@ -270,7 +269,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -289,14 +288,14 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, namedValueId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class NamedValueImpl implements NamedValue { > { 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); @@ -349,8 +347,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< NamedValueUpdateResponse, @@ -381,7 +379,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -430,11 +428,11 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -449,11 +447,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - listValueOperationSpec + listValueOperationSpec, ); } @@ -468,7 +466,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -477,21 +475,20 @@ export class NamedValueImpl implements NamedValue { > { 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); @@ -500,8 +497,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -509,15 +506,15 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, namedValueId, options }, - spec: refreshSecretOperationSpec + spec: refreshSecretOperationSpec, }); const poller = await createHttpPoller< NamedValueRefreshSecretResponse, @@ -525,7 +522,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -542,13 +539,13 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise { const poller = await this.beginRefreshSecret( resourceGroupName, serviceName, namedValueId, - options + options, ); return poller.pollUntilDone(); } @@ -564,11 +561,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NamedValueListByServiceNextOptionalParams + options?: NamedValueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -576,44 +573,42 @@ export class NamedValueImpl implements NamedValue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.NamedValueGetEntityTagHeaders + headersMapper: Mappers.NamedValueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -621,23 +616,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueGetHeaders + headersMapper: Mappers.NamedValueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -645,105 +639,102 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -751,23 +742,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listValueOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueSecretContract, - headersMapper: Mappers.NamedValueListValueHeaders + headersMapper: Mappers.NamedValueListValueHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -775,35 +765,34 @@ const listValueOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -811,29 +800,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 8f9ab94e7fee..847e9546512c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -15,7 +15,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Class containing NetworkStatus operations. */ @@ -40,11 +40,11 @@ export class NetworkStatusImpl implements NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -61,11 +61,11 @@ export class NetworkStatusImpl implements NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, locationName, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } } @@ -73,8 +73,7 @@ export class NetworkStatusImpl implements NetworkStatus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", httpMethod: "GET", responses: { 200: { @@ -84,37 +83,36 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "NetworkStatusContractByLocation" - } - } - } - } + className: "NetworkStatusContractByLocation", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkStatusContract + bodyMapper: Mappers.NetworkStatusContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -122,8 +120,8 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 330f9607e8cb..420fe329e4ed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -23,7 +23,7 @@ import { NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, NotificationCreateOrUpdateResponse, - NotificationListByServiceNextResponse + NotificationListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class NotificationImpl implements Notification { public listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, options?: NotificationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class NotificationImpl implements Notification { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class NotificationImpl implements Notification { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class NotificationImpl implements Notification { private _listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +170,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -189,11 +189,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NotificationListByServiceNextOptionalParams + options?: NotificationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -201,38 +201,36 @@ export class NotificationImpl implements Notification { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -240,22 +238,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -263,29 +260,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept, Parameters.ifMatch], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 5532326268f3..4ffa289f9a94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -19,12 +19,13 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientEmail operations. */ export class NotificationRecipientEmailImpl - implements NotificationRecipientEmail { + implements NotificationRecipientEmail +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientEmailImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientEmailImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientEmailCollection + bodyMapper: Mappers.RecipientEmailCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, 201: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index ff459bec71fd..2d9c8cb5f5c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -19,12 +19,13 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientUser operations. */ export class NotificationRecipientUserImpl - implements NotificationRecipientUser { + implements NotificationRecipientUser +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientUserImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientUserImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientUserCollection + bodyMapper: Mappers.RecipientUserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, 201: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 6f214aac252c..4ceead2ef896 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -30,7 +30,7 @@ import { OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, OpenIdConnectProviderListSecretsResponse, - OpenIdConnectProviderListByServiceNextResponse + OpenIdConnectProviderListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, options?: OpenIdConnectProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OpenIdConnectProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: OpenIdConnectProviderListByServiceNextOptionalParams + options?: OpenIdConnectProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders + headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderGetHeaders + headersMapper: Mappers.OpenIdConnectProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders + headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 91d1fdf3b4ec..ffe3bb290b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -18,7 +18,7 @@ import { OperationListByTagsNextOptionalParams, OperationListByTagsOptionalParams, OperationListByTagsResponse, - OperationListByTagsNextResponse + OperationListByTagsNextResponse, } from "../models"; /// @@ -46,13 +46,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, options?: OperationListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +103,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,13 +116,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -162,11 +162,11 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, nextLink: string, - options?: OperationListByTagsNextOptionalParams + options?: OperationListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -174,53 +174,52 @@ export class OperationOperationsImpl implements OperationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedOperations + Parameters.includeNotTaggedOperations, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index 5ac8f335aa65..b3114f1e912b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Class containing OutboundNetworkDependenciesEndpoints operations. */ export class OutboundNetworkDependenciesEndpointsImpl - implements OutboundNetworkDependenciesEndpoints { + implements OutboundNetworkDependenciesEndpoints +{ private readonly client: ApiManagementClient; /** @@ -38,11 +39,11 @@ export class OutboundNetworkDependenciesEndpointsImpl listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -50,24 +51,23 @@ export class OutboundNetworkDependenciesEndpointsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointList + bodyMapper: Mappers.OutboundEnvironmentEndpointList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index d278cdfc55fc..6f04d710333f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -6,12 +6,16 @@ * 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 { Policy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + PolicyListByServiceNextOptionalParams, PolicyListByServiceOptionalParams, PolicyListByServiceResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, + PolicyListByServiceNextResponse, } from "../models"; +/// /** Class containing Policy operations. */ export class PolicyImpl implements Policy { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PolicyImpl implements Policy { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams + options?: PolicyListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all the Global Policy definitions of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -105,11 +194,11 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -127,11 +216,30 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -139,38 +247,36 @@ export class PolicyImpl implements Policy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyGetEntityTagHeaders + headersMapper: Mappers.PolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -178,23 +284,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyGetHeaders + headersMapper: Mappers.PolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -202,55 +307,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -258,8 +361,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index 2f563e88f50e..0a3f565cf433 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Class containing PolicyDescription operations. */ @@ -37,11 +37,11 @@ export class PolicyDescriptionImpl implements PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PolicyDescriptionImpl implements PolicyDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDescriptionCollection + bodyMapper: Mappers.PolicyDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.scope1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts index b6d25f5fb6b7..18b9600503d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -6,6 +6,8 @@ * 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 { PolicyFragment } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,24 +16,27 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + PolicyFragmentContract, + PolicyFragmentListByServiceNextOptionalParams, PolicyFragmentListByServiceOptionalParams, PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, + PolicyFragmentListByServiceNextResponse, } from "../models"; +/// /** Class containing PolicyFragment operations. */ export class PolicyFragmentImpl implements PolicyFragment { private readonly client: ApiManagementClient; @@ -50,14 +55,98 @@ export class PolicyFragmentImpl implements PolicyFragment { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -72,11 +161,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -91,11 +180,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getOperationSpec + getOperationSpec, ); } @@ -112,7 +201,7 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -121,21 +210,20 @@ export class PolicyFragmentImpl implements PolicyFragment { > { 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); @@ -144,8 +232,8 @@ export class PolicyFragmentImpl implements PolicyFragment { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -153,15 +241,15 @@ export class PolicyFragmentImpl implements PolicyFragment { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, id, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PolicyFragmentCreateOrUpdateResponse, @@ -169,7 +257,7 @@ export class PolicyFragmentImpl implements PolicyFragment { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -188,14 +276,14 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, id, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -214,11 +302,11 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +321,30 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - listReferencesOperationSpec + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -245,44 +352,42 @@ export class PolicyFragmentImpl implements PolicyFragment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyFragmentCollection + bodyMapper: Mappers.PolicyFragmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -290,23 +395,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentGetHeaders + headersMapper: Mappers.PolicyFragmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format2], urlParameters: [ @@ -314,63 +418,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,31 +480,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listReferencesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceCollection + bodyMapper: Mappers.ResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts new file mode 100644 index 000000000000..bb29593246a6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts @@ -0,0 +1,454 @@ +/* + * 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 { PolicyRestriction } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyRestrictionContract, + PolicyRestrictionListByServiceNextOptionalParams, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionListByServiceResponse, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, + PolicyRestrictionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing PolicyRestriction operations. */ +export class PolicyRestrictionImpl implements PolicyRestriction { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestriction class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyRestrictionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyRestrictionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyRestrictionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts new file mode 100644 index 000000000000..5ca7ac842d9f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts @@ -0,0 +1,161 @@ +/* + * 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 { PolicyRestrictionValidations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Class containing PolicyRestrictionValidations operations. */ +export class PolicyRestrictionValidationsImpl + implements PolicyRestrictionValidations +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestrictionValidations class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + > { + 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, serviceName, options }, + spec: byServiceOperationSpec, + }); + const poller = await createHttpPoller< + PolicyRestrictionValidationsByServiceResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise { + const poller = await this.beginByService( + resourceGroupName, + serviceName, + options, + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const byServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/validatePolicies", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract, + }, + 201: { + bodyMapper: Mappers.OperationResultContract, + }, + 202: { + bodyMapper: Mappers.OperationResultContract, + }, + 204: { + bodyMapper: Mappers.OperationResultContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts index 4c13b4be9ea9..14adefec1a28 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -6,25 +6,30 @@ * 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 { PortalConfig } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PortalConfigContract, + PortalConfigListByServiceNextOptionalParams, PortalConfigListByServiceOptionalParams, PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, + PortalConfigListByServiceNextResponse, } from "../models"; +/// /** Class containing PortalConfig operations. */ export class PortalConfigImpl implements PortalConfig { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PortalConfigImpl implements PortalConfig { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams + options?: PortalConfigListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PortalConfigListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getOperationSpec + getOperationSpec, ); } @@ -108,7 +197,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -117,9 +206,9 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -139,7 +228,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +237,28 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PortalConfigListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -158,38 +266,36 @@ export class PortalConfigImpl implements PortalConfig { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalConfigCollection + bodyMapper: Mappers.PortalConfigCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalConfigGetEntityTagHeaders + headersMapper: Mappers.PortalConfigGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +303,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalConfigContract, - headersMapper: Mappers.PortalConfigGetHeaders + headersMapper: Mappers.PortalConfigGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -221,66 +326,85 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 06c82783efdc..8c3dea0a6ab0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, PortalRevisionUpdateResponse, - PortalRevisionListByServiceNextResponse + PortalRevisionListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class PortalRevisionImpl implements PortalRevision { public listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, options?: PortalRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PortalRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class PortalRevisionImpl implements PortalRevision { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class PortalRevisionImpl implements PortalRevision { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class PortalRevisionImpl implements PortalRevision { private _listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +181,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class PortalRevisionImpl implements PortalRevision { > { 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); @@ -236,8 +235,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,8 +244,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -257,9 +256,9 @@ export class PortalRevisionImpl implements PortalRevision { serviceName, portalRevisionId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionCreateOrUpdateResponse, @@ -267,7 +266,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -288,14 +287,14 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, portalRevisionId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class PortalRevisionImpl implements PortalRevision { > { 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); @@ -349,8 +347,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionUpdateResponse, @@ -381,7 +379,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -404,7 +402,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -428,11 +426,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, nextLink: string, - options?: PortalRevisionListByServiceNextOptionalParams + options?: PortalRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -440,43 +438,41 @@ export class PortalRevisionImpl implements PortalRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalRevisionGetEntityTagHeaders + headersMapper: Mappers.PortalRevisionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,23 +480,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionGetHeaders + headersMapper: Mappers.PortalRevisionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -508,109 +503,107 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index da437e49d95b..cfce53e2cbc8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Class containing PortalSettings operations. */ @@ -37,11 +37,11 @@ export class PortalSettingsImpl implements PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PortalSettingsImpl implements PortalSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalSettingsCollection + bodyMapper: Mappers.PortalSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index e8e90e2250a0..1f916bc3350b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -15,7 +15,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,13 +31,14 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: ApiManagementClient; /** @@ -57,12 +58,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListByServiceOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByServiceResponse; result = await this._listByService(resourceGroupName, serviceName, options); @@ -99,12 +100,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -119,11 +120,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -138,16 +139,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -164,7 +165,7 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class PrivateEndpointConnectionOperationsImpl > { 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); @@ -196,8 +196,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -217,16 +217,16 @@ export class PrivateEndpointConnectionOperationsImpl serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -245,14 +245,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, ); return poller.pollUntilDone(); } @@ -268,25 +268,24 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): 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); @@ -295,8 +294,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,8 +303,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -315,13 +314,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -338,13 +337,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -358,11 +357,11 @@ export class PrivateEndpointConnectionOperationsImpl listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listPrivateLinkResourcesOperationSpec + listPrivateLinkResourcesOperationSpec, ); } @@ -377,11 +376,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateLinkSubResourceName, options }, - getPrivateLinkResourceOperationSpec + getPrivateLinkResourceOperationSpec, ); } } @@ -389,38 +388,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,31 +425,30 @@ const getByNameOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateEndpointConnectionRequest, queryParameters: [Parameters.apiVersion], @@ -461,15 +457,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -477,8 +472,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -486,44 +481,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,8 +524,8 @@ const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateLinkSubResourceName + Parameters.privateLinkSubResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index cd7bdd87c103..a066165fbc37 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -33,7 +33,7 @@ import { ProductUpdateResponse, ProductDeleteOptionalParams, ProductListByServiceNextResponse, - ProductListByTagsNextResponse + ProductListByTagsNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class ProductImpl implements Product { public listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ProductImpl implements Product { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class ProductImpl implements Product { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,12 +142,12 @@ export class ProductImpl implements Product { public listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -164,9 +164,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -174,7 +174,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -190,7 +190,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -202,12 +202,12 @@ export class ProductImpl implements Product { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -222,11 +222,11 @@ export class ProductImpl implements Product { private _listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -241,11 +241,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -260,11 +260,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -281,11 +281,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -305,7 +305,7 @@ export class ProductImpl implements Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -314,9 +314,9 @@ export class ProductImpl implements Product { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -334,11 +334,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -351,11 +351,11 @@ export class ProductImpl implements Product { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -370,11 +370,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByServiceNextOptionalParams + options?: ProductListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -389,11 +389,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByTagsNextOptionalParams + options?: ProductListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -401,45 +401,43 @@ export class ProductImpl implements Product { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductGetEntityTagHeaders + headersMapper: Mappers.ProductGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -447,23 +445,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductGetHeaders + headersMapper: Mappers.ProductGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -471,85 +468,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductUpdateHeaders + headersMapper: Mappers.ProductUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], urlParameters: [ @@ -557,78 +551,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedProducts + Parameters.includeNotTaggedProducts, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index 46a14b1d5042..045f6fb2e626 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -23,7 +23,7 @@ import { ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, ProductApiDeleteOptionalParams, - ProductApiListByProductNextResponse + ProductApiListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, options?: ProductApiListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductApiListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductApiImpl implements ProductApi { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -165,11 +165,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -187,11 +187,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -209,11 +209,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -230,11 +230,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, nextLink: string, - options?: ProductApiListByProductNextOptionalParams + options?: ProductApiListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -242,42 +242,40 @@ export class ProductApiImpl implements ProductApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -286,25 +284,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -313,21 +310,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -336,21 +332,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -358,8 +354,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts new file mode 100644 index 000000000000..aa48911136ba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts @@ -0,0 +1,375 @@ +/* + * 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 { ProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductNextOptionalParams, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkListByProductResponse, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, + ProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductApiLink operations. */ +export class ProductApiLinkImpl implements ProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.ProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 5425cb6d2633..8286cdfdff55 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -23,7 +23,7 @@ import { ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, ProductGroupDeleteOptionalParams, - ProductGroupListByProductNextResponse + ProductGroupListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, options?: ProductGroupListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductGroupListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -164,11 +164,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -206,11 +206,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, nextLink: string, - options?: ProductGroupListByProductNextOptionalParams + options?: ProductGroupListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -239,42 +239,40 @@ export class ProductGroupImpl implements ProductGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -283,25 +281,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, 201: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -310,21 +307,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -333,21 +329,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -355,8 +351,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts new file mode 100644 index 000000000000..9ff8726087cf --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts @@ -0,0 +1,375 @@ +/* + * 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 { ProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductNextOptionalParams, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkListByProductResponse, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, + ProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductGroupLink operations. */ +export class ProductGroupLinkImpl implements ProductGroupLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.ProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 265d5f5708b5..a2117e2344a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -6,12 +6,16 @@ * 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 { ProductPolicy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + ProductPolicyListByProductNextOptionalParams, ProductPolicyListByProductOptionalParams, ProductPolicyListByProductResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, + ProductPolicyListByProductNextResponse, } from "../models"; +/// /** Class containing ProductPolicy operations. */ export class ProductPolicyImpl implements ProductPolicy { private readonly client: ApiManagementClient; @@ -44,15 +49,108 @@ export class ProductPolicyImpl implements ProductPolicy { * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ - listByProduct( + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductPolicyListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams + options?: ProductPolicyListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -69,11 +167,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -90,11 +188,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -113,7 +211,7 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -122,9 +220,9 @@ export class ProductPolicyImpl implements ProductPolicy { productId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -144,11 +242,32 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductPolicyListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, ); } } @@ -156,16 +275,15 @@ export class ProductPolicyImpl implements ProductPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +291,21 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductPolicyGetEntityTagHeaders + headersMapper: Mappers.ProductPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +314,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyGetHeaders + headersMapper: Mappers.ProductPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,29 +338,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -252,26 +367,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +394,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts index b602e9ea6996..5270414b4860 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -18,7 +18,7 @@ import { ProductSubscriptionsListNextOptionalParams, ProductSubscriptionsListOptionalParams, ProductSubscriptionsListResponse, - ProductSubscriptionsListNextResponse + ProductSubscriptionsListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, options?: ProductSubscriptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductSubscriptionsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, nextLink: string, - options?: ProductSubscriptionsListNextOptionalParams + options?: ProductSubscriptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts index 48c1fc393861..5058a99f9cea 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Class containing ProductWiki operations. */ @@ -48,11 +48,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,7 +112,7 @@ export class ProductWikiImpl implements ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -121,9 +121,9 @@ export class ProductWikiImpl implements ProductWiki { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -141,11 +141,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -153,16 +153,15 @@ export class ProductWikiImpl implements ProductWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductWikiGetEntityTagHeaders + headersMapper: Mappers.ProductWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -170,23 +169,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiGetHeaders + headersMapper: Mappers.ProductWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -194,85 +192,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiUpdateHeaders + headersMapper: Mappers.ProductWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +275,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts index eb425ad22260..3491fa42090a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -18,7 +18,7 @@ import { ProductWikisListNextOptionalParams, ProductWikisListOptionalParams, ProductWikisListResponse, - ProductWikisListNextResponse + ProductWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, options?: ProductWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductWikisListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, nextLink: string, - options?: ProductWikisListNextOptionalParams + options?: ProductWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,33 +171,32 @@ export class ProductWikisImpl implements ProductWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListHeaders + headersMapper: Mappers.ProductWikisListHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", @@ -205,11 +204,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListNextHeaders + headersMapper: Mappers.ProductWikisListNextHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -217,8 +216,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index 136caaa802f2..cc1788854b8d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -16,7 +16,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Class containing QuotaByCounterKeys operations. */ @@ -46,11 +46,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -71,11 +71,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -83,16 +83,15 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -100,33 +99,32 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index bd18bc65745b..c2c8057c670f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -16,7 +16,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Class containing QuotaByPeriodKeys operations. */ @@ -48,7 +48,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -56,9 +56,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName, quotaCounterKey, quotaPeriodKey, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -80,7 +80,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -89,9 +89,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey, quotaPeriodKey, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } } @@ -99,16 +99,15 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -117,24 +116,23 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -142,9 +140,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index b0ccf6b4bde2..417fbdefe36b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -18,7 +18,7 @@ import { RegionListByServiceNextOptionalParams, RegionListByServiceOptionalParams, RegionListByServiceResponse, - RegionListByServiceNextResponse + RegionListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class RegionImpl implements Region { public listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, options?: RegionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RegionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class RegionImpl implements Region { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class RegionImpl implements Region { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class RegionImpl implements Region { private _listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, nextLink: string, - options?: RegionListByServiceNextOptionalParams + options?: RegionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,45 +158,44 @@ export class RegionImpl implements Region { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 34ec22b941f4..d7000eb7b2ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -45,7 +45,7 @@ import { ReportsListByProductNextResponse, ReportsListByGeoNextResponse, ReportsListBySubscriptionNextResponse, - ReportsListByTimeNextResponse + ReportsListByTimeNextResponse, } from "../models"; /// @@ -72,13 +72,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -96,9 +96,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -107,7 +107,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByApiResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +128,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -141,13 +141,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -176,13 +176,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByUserPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -200,9 +200,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -211,7 +211,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByUserOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByUserResponse; let continuationToken = settings?.continuationToken; @@ -220,7 +220,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -232,7 +232,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -245,13 +245,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByUserPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -279,13 +279,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -303,9 +303,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -314,7 +314,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -323,7 +323,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -335,7 +335,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -348,13 +348,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -382,13 +382,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -406,9 +406,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -417,7 +417,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByProductResponse; let continuationToken = settings?.continuationToken; @@ -426,7 +426,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -438,7 +438,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -451,13 +451,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -485,13 +485,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGeoPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -509,9 +509,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -520,7 +520,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByGeoOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByGeoResponse; let continuationToken = settings?.continuationToken; @@ -529,7 +529,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -541,7 +541,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -554,13 +554,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGeoPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -588,13 +588,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -612,9 +612,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -623,7 +623,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -632,7 +632,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -644,7 +644,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -657,13 +657,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -695,14 +695,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTimePagingAll( resourceGroupName, serviceName, filter, interval, - options + options, ); return { next() { @@ -721,9 +721,9 @@ export class ReportsImpl implements Reports { filter, interval, options, - settings + settings, ); - } + }, }; } @@ -733,7 +733,7 @@ export class ReportsImpl implements Reports { filter: string, interval: string, options?: ReportsListByTimeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByTimeResponse; let continuationToken = settings?.continuationToken; @@ -743,7 +743,7 @@ export class ReportsImpl implements Reports { serviceName, filter, interval, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -755,7 +755,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -769,14 +769,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTimePagingPage( resourceGroupName, serviceName, filter, interval, - options + options, )) { yield* page; } @@ -797,13 +797,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRequestPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -821,9 +821,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -832,14 +832,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByRequestOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByRequestResponse; result = await this._listByRequest( resourceGroupName, serviceName, filter, - options + options, ); yield result.value || []; } @@ -848,13 +848,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRequestPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -871,11 +871,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -902,11 +902,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByUserOperationSpec + listByUserOperationSpec, ); } @@ -932,11 +932,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -962,11 +962,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -992,11 +992,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByGeoOperationSpec + listByGeoOperationSpec, ); } @@ -1022,11 +1022,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -1056,11 +1056,11 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, interval, options }, - listByTimeOperationSpec + listByTimeOperationSpec, ); } @@ -1079,11 +1079,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByRequestOperationSpec + listByRequestOperationSpec, ); } @@ -1098,11 +1098,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByApiNextOptionalParams + options?: ReportsListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -1117,11 +1117,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByUserNextOptionalParams + options?: ReportsListByUserNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByUserNextOperationSpec + listByUserNextOperationSpec, ); } @@ -1136,11 +1136,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByOperationNextOptionalParams + options?: ReportsListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -1155,11 +1155,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByProductNextOptionalParams + options?: ReportsListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -1174,11 +1174,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByGeoNextOptionalParams + options?: ReportsListByGeoNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByGeoNextOperationSpec + listByGeoNextOperationSpec, ); } @@ -1193,11 +1193,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListBySubscriptionNextOptionalParams + options?: ReportsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1212,11 +1212,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByTimeNextOptionalParams + options?: ReportsListByTimeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTimeNextOperationSpec + listByTimeNextOperationSpec, ); } } @@ -1224,372 +1224,364 @@ export class ReportsImpl implements Reports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, Parameters.filter1, - Parameters.interval + Parameters.interval, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRequestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RequestReportCollection + bodyMapper: Mappers.RequestReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 81c16f759dd7..aaaf87a58899 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -19,7 +19,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignInSettings operations. */ @@ -43,11 +43,11 @@ export class SignInSettingsImpl implements SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignInSettingsImpl implements SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignInSettingsImpl implements SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignInSettingsImpl implements SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignInSettingsImpl implements SignInSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignInSettingsGetEntityTagHeaders + headersMapper: Mappers.SignInSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSigninSettings, - headersMapper: Mappers.SignInSettingsGetHeaders + headersMapper: Mappers.SignInSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSigninSettings + bodyMapper: Mappers.PortalSigninSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index fa8160735c81..974050e78c07 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -19,7 +19,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignUpSettings operations. */ @@ -43,11 +43,11 @@ export class SignUpSettingsImpl implements SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignUpSettingsImpl implements SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignUpSettingsImpl implements SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignUpSettingsImpl implements SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignUpSettingsImpl implements SignUpSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders + headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSignupSettings, - headersMapper: Mappers.SignUpSettingsGetHeaders + headersMapper: Mappers.SignUpSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSignupSettings + bodyMapper: Mappers.PortalSignupSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 040781d07df3..2341911742c9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -33,7 +33,7 @@ import { SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, SubscriptionListSecretsResponse, - SubscriptionListNextResponse + SubscriptionListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class SubscriptionImpl implements Subscription { public list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -76,9 +76,9 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, options?: SubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class SubscriptionImpl implements Subscription { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class SubscriptionImpl implements Subscription { private _list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -174,11 +174,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class SubscriptionImpl implements Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -264,11 +264,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -284,11 +284,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -304,11 +304,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -323,11 +323,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, nextLink: string, - options?: SubscriptionListNextOptionalParams + options?: SubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -335,43 +335,41 @@ export class SubscriptionImpl implements Subscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SubscriptionGetEntityTagHeaders + headersMapper: Mappers.SubscriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -379,23 +377,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionGetHeaders + headersMapper: Mappers.SubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -403,93 +400,90 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters78, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionUpdateHeaders + headersMapper: Mappers.SubscriptionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters79, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -497,20 +491,19 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -518,20 +511,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -539,23 +531,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.SubscriptionKeysContract, - headersMapper: Mappers.SubscriptionListSecretsHeaders + headersMapper: Mappers.SubscriptionListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -563,29 +554,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 1cd000ec1f2f..5c1c0f183eef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -61,7 +61,7 @@ import { TagListByOperationNextResponse, TagListByApiNextResponse, TagListByProductNextResponse, - TagListByServiceNextResponse + TagListByServiceNextResponse, } from "../models"; /// @@ -92,14 +92,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, apiId, operationId, - options + options, ); return { next() { @@ -118,9 +118,9 @@ export class TagImpl implements Tag { apiId, operationId, options, - settings + settings, ); - } + }, }; } @@ -130,7 +130,7 @@ export class TagImpl implements Tag { apiId: string, operationId: string, options?: TagListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -140,7 +140,7 @@ export class TagImpl implements Tag { serviceName, apiId, operationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -154,7 +154,7 @@ export class TagImpl implements Tag { apiId, operationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,14 +168,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, apiId, operationId, - options + options, )) { yield* page; } @@ -193,13 +193,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -217,9 +217,9 @@ export class TagImpl implements Tag { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -228,7 +228,7 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, options?: TagListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByApiResponse; let continuationToken = settings?.continuationToken; @@ -237,7 +237,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class TagImpl implements Tag { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -263,13 +263,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -286,13 +286,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -310,9 +310,9 @@ export class TagImpl implements Tag { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -321,7 +321,7 @@ export class TagImpl implements Tag { serviceName: string, productId: string, options?: TagListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByProductResponse; let continuationToken = settings?.continuationToken; @@ -330,7 +330,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -343,7 +343,7 @@ export class TagImpl implements Tag { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,13 +356,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -377,12 +377,12 @@ export class TagImpl implements Tag { public listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -399,9 +399,9 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -409,7 +409,7 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, options?: TagListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -417,7 +417,7 @@ export class TagImpl implements Tag { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -429,7 +429,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -441,12 +441,12 @@ export class TagImpl implements Tag { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -467,11 +467,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -492,11 +492,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getEntityStateByOperationOperationSpec + getEntityStateByOperationOperationSpec, ); } @@ -517,11 +517,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getByOperationOperationSpec + getByOperationOperationSpec, ); } @@ -542,11 +542,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - assignToOperationOperationSpec + assignToOperationOperationSpec, ); } @@ -567,11 +567,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - detachFromOperationOperationSpec + detachFromOperationOperationSpec, ); } @@ -587,11 +587,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -609,11 +609,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getEntityStateByApiOperationSpec + getEntityStateByApiOperationSpec, ); } @@ -631,11 +631,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getByApiOperationSpec + getByApiOperationSpec, ); } @@ -653,11 +653,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - assignToApiOperationSpec + assignToApiOperationSpec, ); } @@ -675,11 +675,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - detachFromApiOperationSpec + detachFromApiOperationSpec, ); } @@ -694,11 +694,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -715,11 +715,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getEntityStateByProductOperationSpec + getEntityStateByProductOperationSpec, ); } @@ -736,11 +736,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getByProductOperationSpec + getByProductOperationSpec, ); } @@ -757,11 +757,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - assignToProductOperationSpec + assignToProductOperationSpec, ); } @@ -778,11 +778,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - detachFromProductOperationSpec + detachFromProductOperationSpec, ); } @@ -795,11 +795,11 @@ export class TagImpl implements Tag { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -814,11 +814,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getEntityStateOperationSpec + getEntityStateOperationSpec, ); } @@ -833,11 +833,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getOperationSpec + getOperationSpec, ); } @@ -854,11 +854,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -878,11 +878,11 @@ export class TagImpl implements Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -900,11 +900,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -925,11 +925,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, nextLink: string, - options?: TagListByOperationNextOptionalParams + options?: TagListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -947,11 +947,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, nextLink: string, - options?: TagListByApiNextOptionalParams + options?: TagListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -968,11 +968,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, nextLink: string, - options?: TagListByProductNextOptionalParams + options?: TagListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -987,11 +987,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagListByServiceNextOptionalParams + options?: TagListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -999,22 +999,21 @@ export class TagImpl implements Tag { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -1022,22 +1021,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByOperationHeaders + headersMapper: Mappers.TagGetEntityStateByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1047,23 +1045,22 @@ const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByOperationHeaders + headersMapper: Mappers.TagGetByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1073,25 +1070,24 @@ const getByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1101,21 +1097,20 @@ const assignToOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1125,50 +1120,48 @@ const detachFromOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByApiHeaders + headersMapper: Mappers.TagGetEntityStateByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1177,23 +1170,22 @@ const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByApiHeaders + headersMapper: Mappers.TagGetByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1202,27 +1194,26 @@ const getByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1231,21 +1222,20 @@ const assignToApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1254,50 +1244,48 @@ const detachFromApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByProductHeaders + headersMapper: Mappers.TagGetEntityStateByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1306,23 +1294,22 @@ const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByProductHeaders + headersMapper: Mappers.TagGetByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1331,25 +1318,24 @@ const getByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1358,21 +1344,20 @@ const assignToProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1381,50 +1366,48 @@ const detachFromProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.scope + Parameters.scope, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateHeaders + headersMapper: Mappers.TagGetEntityStateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1432,23 +1415,22 @@ const getEntityStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetHeaders + headersMapper: Mappers.TagGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1456,85 +1438,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagUpdateHeaders + headersMapper: Mappers.TagUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1542,66 +1521,66 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.operationId + Parameters.apiId, + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -1609,29 +1588,29 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts new file mode 100644 index 000000000000..1ac1bd367099 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts @@ -0,0 +1,368 @@ +/* + * 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 { TagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + TagApiLinkListByProductNextOptionalParams, + TagApiLinkListByProductOptionalParams, + TagApiLinkListByProductResponse, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, + TagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagApiLink operations. */ +export class TagApiLinkImpl implements TagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.TagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts new file mode 100644 index 000000000000..5cb06a7932ee --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts @@ -0,0 +1,375 @@ +/* + * 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 { TagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductNextOptionalParams, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkListByProductResponse, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, + TagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagOperationLink operations. */ +export class TagOperationLinkImpl implements TagOperationLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.TagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts new file mode 100644 index 000000000000..75cc00391062 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts @@ -0,0 +1,375 @@ +/* + * 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 { TagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + TagProductLinkListByProductNextOptionalParams, + TagProductLinkListByProductOptionalParams, + TagProductLinkListByProductResponse, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, + TagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagProductLink operations. */ +export class TagProductLinkImpl implements TagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.TagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index 1a0a0f0a8cb1..90b82f470edb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -18,7 +18,7 @@ import { TagResourceListByServiceNextOptionalParams, TagResourceListByServiceOptionalParams, TagResourceListByServiceResponse, - TagResourceListByServiceNextResponse + TagResourceListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class TagResourceImpl implements TagResource { public listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagResourceListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class TagResourceImpl implements TagResource { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class TagResourceImpl implements TagResource { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class TagResourceImpl implements TagResource { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagResourceListByServiceNextOptionalParams + options?: TagResourceListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,50 +158,49 @@ export class TagResourceImpl implements TagResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index ab0c13bb24d9..0111767030fe 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -33,7 +33,7 @@ import { TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, TenantAccessListSecretsResponse, - TenantAccessListByServiceNextResponse + TenantAccessListByServiceNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class TenantAccessImpl implements TenantAccess { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, options?: TenantAccessListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantAccessListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class TenantAccessImpl implements TenantAccess { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class TenantAccessImpl implements TenantAccess { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,11 +142,11 @@ export class TenantAccessImpl implements TenantAccess { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -180,11 +180,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -235,7 +235,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -244,9 +244,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -261,11 +261,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -280,11 +280,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -299,11 +299,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -318,11 +318,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantAccessListByServiceNextOptionalParams + options?: TenantAccessListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -330,38 +330,36 @@ export class TenantAccessImpl implements TenantAccess { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TenantAccessGetEntityTagHeaders + headersMapper: Mappers.TenantAccessGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -369,23 +367,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessGetHeaders + headersMapper: Mappers.TenantAccessGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -393,80 +390,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessCreateHeaders + headersMapper: Mappers.TenantAccessCreateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessUpdateHeaders + headersMapper: Mappers.TenantAccessUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,20 +468,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -495,23 +488,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AccessInformationSecretsContract, - headersMapper: Mappers.TenantAccessListSecretsHeaders + headersMapper: Mappers.TenantAccessListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +511,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9d7f1db29713..413bb95fd927 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Class containing TenantAccessGit operations. */ @@ -40,11 +40,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -59,11 +59,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } } @@ -71,14 +71,13 @@ export class TenantAccessGitImpl implements TenantAccessGit { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -86,20 +85,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -107,8 +105,8 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 15867ab82145..96b311c7e977 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Class containing TenantConfiguration operations. */ @@ -57,7 +57,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -66,21 +66,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { 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); @@ -89,8 +88,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -98,8 +97,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -110,9 +109,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: deployOperationSpec + spec: deployOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationDeployResponse, @@ -120,7 +119,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -140,14 +139,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise { const poller = await this.beginDeploy( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -166,7 +165,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -175,21 +174,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { 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); @@ -198,8 +196,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -207,8 +205,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +217,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: saveOperationSpec + spec: saveOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationSaveResponse, @@ -229,7 +227,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +247,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise { const poller = await this.beginSave( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -275,7 +273,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -284,21 +282,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { 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); @@ -307,8 +304,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,8 +313,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -328,9 +325,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationValidateResponse, @@ -338,7 +335,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -358,14 +355,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -382,11 +379,11 @@ export class TenantConfigurationImpl implements TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, configurationName, options }, - getSyncStateOperationSpec + getSyncStateOperationSpec, ); } } @@ -394,118 +391,114 @@ export class TenantConfigurationImpl implements TenantConfiguration { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const saveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getSyncStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantConfigurationSyncStateContract + bodyMapper: Mappers.TenantConfigurationSyncStateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -513,8 +506,8 @@ const getSyncStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index b46350a3c9ab..399eab1d9a20 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -21,7 +21,7 @@ import { SettingsTypeName, TenantSettingsGetOptionalParams, TenantSettingsGetResponse, - TenantSettingsListByServiceNextResponse + TenantSettingsListByServiceNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class TenantSettingsImpl implements TenantSettings { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, options?: TenantSettingsListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantSettingsListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class TenantSettingsImpl implements TenantSettings { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +98,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class TenantSettingsImpl implements TenantSettings { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -130,11 +130,11 @@ export class TenantSettingsImpl implements TenantSettings { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -149,11 +149,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, settingsType, options }, - getOperationSpec + getOperationSpec, ); } @@ -168,11 +168,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantSettingsListByServiceNextOptionalParams + options?: TenantSettingsListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -180,39 +180,37 @@ export class TenantSettingsImpl implements TenantSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TenantSettingsContract, - headersMapper: Mappers.TenantSettingsGetHeaders + headersMapper: Mappers.TenantSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +218,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.settingsType + Parameters.settingsType, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 8aa6945fedab..b35810f27c0d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { UserContract, UserListByServiceNextOptionalParams, @@ -29,12 +35,13 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, UserGetSharedAccessTokenResponse, - UserListByServiceNextResponse + UserListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class UserImpl implements User { public listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class UserImpl implements User { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, options?: UserListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class UserImpl implements User { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class UserImpl implements User { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class UserImpl implements User { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class UserImpl implements User { private _listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -162,11 +169,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +188,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getOperationSpec + getOperationSpec, ); } @@ -202,11 +209,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -226,11 +233,11 @@ export class UserImpl implements User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,17 +250,94 @@ export class UserImpl implements User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, userId, ifMatch, options }, - deleteOperationSpec + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + > { + 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, serviceName, userId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + UserDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + userId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -268,11 +352,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - generateSsoUrlOperationSpec + generateSsoUrlOperationSpec, ); } @@ -289,11 +373,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - getSharedAccessTokenOperationSpec + getSharedAccessTokenOperationSpec, ); } @@ -308,11 +392,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, nextLink: string, - options?: UserListByServiceNextOptionalParams + options?: UserListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -320,44 +404,42 @@ export class UserImpl implements User { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.UserGetEntityTagHeaders + headersMapper: Mappers.UserGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -365,23 +447,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserGetHeaders + headersMapper: Mappers.UserGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -389,113 +470,119 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserUpdateHeaders + headersMapper: Mappers.UserUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 201: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 202: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 204: { + headersMapper: Mappers.UserDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.deleteSubscriptions, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const generateSsoUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GenerateSsoUrlResult + bodyMapper: Mappers.GenerateSsoUrlResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -503,54 +590,53 @@ const generateSsoUrlOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.UserTokenResult + bodyMapper: Mappers.UserTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters89, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 0a9175427c03..de788e094561 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -36,11 +36,11 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - sendOperationSpec + sendOperationSpec, ); } } @@ -48,14 +48,13 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const sendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.appType], urlParameters: [ @@ -63,8 +62,8 @@ const sendOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 1627954cbe7a..4d2615917173 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -18,7 +18,7 @@ import { UserGroupListNextOptionalParams, UserGroupListOptionalParams, UserGroupListResponse, - UserGroupListNextResponse + UserGroupListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, options?: UserGroupListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserGroupListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserGroupImpl implements UserGroup { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, nextLink: string, - options?: UserGroupListNextOptionalParams + options?: UserGroupListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class UserGroupImpl implements UserGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index 4ff92b553f94..e2449d1ab725 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -18,7 +18,7 @@ import { UserIdentitiesListNextOptionalParams, UserIdentitiesListOptionalParams, UserIdentitiesListResponse, - UserIdentitiesListNextResponse + UserIdentitiesListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, options?: UserIdentitiesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserIdentitiesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, nextLink: string, - options?: UserIdentitiesListNextOptionalParams + options?: UserIdentitiesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class UserIdentitiesImpl implements UserIdentities { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +187,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 8e4838abc76a..c5e7f97ed503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -20,7 +20,7 @@ import { UserSubscriptionListResponse, UserSubscriptionGetOptionalParams, UserSubscriptionGetResponse, - UserSubscriptionListNextResponse + UserSubscriptionListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, options?: UserSubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserSubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -162,11 +162,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -183,11 +183,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, nextLink: string, - options?: UserSubscriptionListNextOptionalParams + options?: UserSubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -195,45 +195,43 @@ export class UserSubscriptionImpl implements UserSubscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.UserSubscriptionGetHeaders + headersMapper: Mappers.UserSubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -242,21 +240,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -264,8 +262,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts new file mode 100644 index 000000000000..b129804bdb8d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts @@ -0,0 +1,460 @@ +/* + * 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 { Workspace } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceContract, + WorkspaceListByServiceNextOptionalParams, + WorkspaceListByServiceOptionalParams, + WorkspaceListByServiceResponse, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, + WorkspaceListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing Workspace operations. */ +export class WorkspaceImpl implements Workspace { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Workspace class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getOperationSpec, + ); + } + + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: WorkspaceListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters90, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts new file mode 100644 index 000000000000..1483fe0faf89 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts @@ -0,0 +1,610 @@ +/* + * 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 { WorkspaceApi } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiContract, + WorkspaceApiListByServiceNextOptionalParams, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiListByServiceResponse, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, + WorkspaceApiListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApi operations. */ +export class WorkspaceApiImpl implements WorkspaceApi { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApi class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + apiId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts new file mode 100644 index 000000000000..d4c52b37dd4b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts @@ -0,0 +1,99 @@ +/* + * 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 { WorkspaceApiExport } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Class containing WorkspaceApiExport operations. */ +export class WorkspaceApiExportImpl implements WorkspaceApiExport { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiExport class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + format, + exportParam, + options, + }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiExportResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.format1, + Parameters.exportParam, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts new file mode 100644 index 000000000000..3d921074cedc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts @@ -0,0 +1,570 @@ +/* + * 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 { WorkspaceApiOperation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + OperationContract, + WorkspaceApiOperationListByApiNextOptionalParams, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationListByApiResponse, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, + WorkspaceApiOperationListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperation operations. */ +export class WorkspaceApiOperationImpl implements WorkspaceApiOperation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + 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.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiOperationListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..d7be73a7482f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts @@ -0,0 +1,542 @@ +/* + * 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 { WorkspaceApiOperationPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + WorkspaceApiOperationPolicyListByOperationResponse, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, + WorkspaceApiOperationPolicyListByOperationNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperationPolicy operations. */ +export class WorkspaceApiOperationPolicyImpl + implements WorkspaceApiOperationPolicy +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperationPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + public listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByOperationPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + 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.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + settings, + ); + }, + }; + } + + private async *listByOperationPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationPolicyListByOperationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByOperation( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByOperationNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByOperationPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + private _listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + listByOperationOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByOperationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param nextLink The nextLink from the previous successful call to the ListByOperation method. + * @param options The options parameters. + */ + private _listByOperationNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + nextLink: string, + options?: WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + nextLink, + options, + }, + listByOperationNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByOperationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByOperationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts new file mode 100644 index 000000000000..d68857c8a415 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts @@ -0,0 +1,473 @@ +/* + * 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 { WorkspaceApiPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiNextOptionalParams, + WorkspaceApiPolicyListByApiOptionalParams, + WorkspaceApiPolicyListByApiResponse, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, + WorkspaceApiPolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiPolicy operations. */ +export class WorkspaceApiPolicyImpl implements WorkspaceApiPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + 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.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiPolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiPolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts new file mode 100644 index 000000000000..c1f2a4f0eb09 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts @@ -0,0 +1,564 @@ +/* + * 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 { WorkspaceApiRelease } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceNextOptionalParams, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseListByServiceResponse, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, + WorkspaceApiReleaseListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRelease operations. */ +export class WorkspaceApiReleaseImpl implements WorkspaceApiRelease { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRelease class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiReleaseListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiReleaseListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiReleaseGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts new file mode 100644 index 000000000000..543ebe72485f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts @@ -0,0 +1,239 @@ +/* + * 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 { WorkspaceApiRevision } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceNextOptionalParams, + WorkspaceApiRevisionListByServiceOptionalParams, + WorkspaceApiRevisionListByServiceResponse, + WorkspaceApiRevisionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRevision operations. */ +export class WorkspaceApiRevisionImpl implements WorkspaceApiRevision { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRevision class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiRevisionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiRevisionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/revisions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts new file mode 100644 index 000000000000..08f7a072e641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts @@ -0,0 +1,578 @@ +/* + * 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 { WorkspaceApiSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiNextOptionalParams, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaListByApiResponse, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, + WorkspaceApiSchemaListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiSchema operations. */ +export class WorkspaceApiSchemaImpl implements WorkspaceApiSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + 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.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiSchemaListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiSchemaListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..a0eff3085cd2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts @@ -0,0 +1,514 @@ +/* + * 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 { WorkspaceApiVersionSet } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceNextOptionalParams, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetListByServiceResponse, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, + WorkspaceApiVersionSetListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiVersionSet operations. */ +export class WorkspaceApiVersionSetImpl implements WorkspaceApiVersionSet { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiVersionSet class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiVersionSetListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiVersionSetListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiVersionSetGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..6b9b451da59b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts @@ -0,0 +1,540 @@ +/* + * 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 { WorkspaceGlobalSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceNextOptionalParams, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaListByServiceResponse, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, + WorkspaceGlobalSchemaListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGlobalSchema operations. */ +export class WorkspaceGlobalSchemaImpl implements WorkspaceGlobalSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGlobalSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGlobalSchemaListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceGlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGlobalSchemaListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGlobalSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts new file mode 100644 index 000000000000..baa10d500fcd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts @@ -0,0 +1,510 @@ +/* + * 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 { WorkspaceGroup } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + GroupContract, + WorkspaceGroupListByServiceNextOptionalParams, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupListByServiceResponse, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, + WorkspaceGroupListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroup operations. */ +export class WorkspaceGroupImpl implements WorkspaceGroup { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroup class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGroupListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGroupGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters55, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts new file mode 100644 index 000000000000..0946a15eea35 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts @@ -0,0 +1,396 @@ +/* + * 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 { WorkspaceGroupUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + UserContract, + WorkspaceGroupUserListNextOptionalParams, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserListResponse, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, + WorkspaceGroupUserListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroupUser operations. */ +export class WorkspaceGroupUserImpl implements WorkspaceGroupUser { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroupUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + groupId, + 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, + serviceName, + workspaceId, + groupId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupUserListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + groupId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + listOperationSpec, + ); + } + + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + createOperationSpec, + ); + } + + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + nextLink: string, + options?: WorkspaceGroupUserListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + nextLink, + options, + }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.UserContract, + }, + 201: { + bodyMapper: Mappers.UserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts new file mode 100644 index 000000000000..21066a50fa7d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts @@ -0,0 +1,901 @@ +/* + * 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 { WorkspaceNamedValue } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceNextOptionalParams, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueListByServiceResponse, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, + WorkspaceNamedValueListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNamedValue operations. */ +export class WorkspaceNamedValueImpl implements WorkspaceNamedValue { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNamedValue class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNamedValueListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + listValueOperationSpec, + ); + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + > { + 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, + serviceName, + workspaceId, + namedValueId, + options, + }, + spec: refreshSecretOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise { + const poller = await this.beginRefreshSecret( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNamedValueListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.isKeyVaultRefreshFailed1, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceNamedValueGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters61, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listValueOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/listValue", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueSecretContract, + headersMapper: Mappers.WorkspaceNamedValueListValueHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const refreshSecretOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/refreshSecret", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts new file mode 100644 index 000000000000..0363e1931f75 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts @@ -0,0 +1,326 @@ +/* + * 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 { WorkspaceNotification } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationContract, + WorkspaceNotificationListByServiceNextOptionalParams, + WorkspaceNotificationListByServiceOptionalParams, + WorkspaceNotificationListByServiceResponse, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, + WorkspaceNotificationListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNotification operations. */ +export class WorkspaceNotificationImpl implements WorkspaceNotification { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotification class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNotificationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + getOperationSpec, + ); + } + + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNotificationListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..98bc5518b9f1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,258 @@ +/* + * 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 { WorkspaceNotificationRecipientEmail } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientEmail operations. */ +export class WorkspaceNotificationRecipientEmailImpl + implements WorkspaceNotificationRecipientEmail +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientEmail class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailContract, + }, + 201: { + bodyMapper: Mappers.RecipientEmailContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..cfcfafd84e1e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts @@ -0,0 +1,258 @@ +/* + * 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 { WorkspaceNotificationRecipientUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientUser operations. */ +export class WorkspaceNotificationRecipientUserImpl + implements WorkspaceNotificationRecipientUser +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserContract, + }, + 201: { + bodyMapper: Mappers.RecipientUserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts new file mode 100644 index 000000000000..e7ae38d41bf2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts @@ -0,0 +1,437 @@ +/* + * 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 { WorkspacePolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspacePolicyListByApiNextOptionalParams, + WorkspacePolicyListByApiOptionalParams, + WorkspacePolicyListByApiResponse, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, + WorkspacePolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicy operations. */ +export class WorkspacePolicyImpl implements WorkspacePolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts new file mode 100644 index 000000000000..23c0753d7e11 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts @@ -0,0 +1,579 @@ +/* + * 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 { WorkspacePolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceNextOptionalParams, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentListByServiceResponse, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, + WorkspacePolicyFragmentListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicyFragment operations. */ +export class WorkspacePolicyFragmentImpl implements WorkspacePolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + > { + 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, + serviceName, + workspaceId, + id, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacePolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.orderby, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyFragmentGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts new file mode 100644 index 000000000000..5f3f6bf59bf3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts @@ -0,0 +1,511 @@ +/* + * 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 { WorkspaceProduct } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductContract, + WorkspaceProductListByServiceNextOptionalParams, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductListByServiceResponse, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, + WorkspaceProductListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProduct operations. */ +export class WorkspaceProductImpl implements WorkspaceProduct { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProduct class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceProductListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandGroups, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters72, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts new file mode 100644 index 000000000000..79c6255a2116 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts @@ -0,0 +1,427 @@ +/* + * 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 { WorkspaceProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductNextOptionalParams, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkListByProductResponse, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, + WorkspaceProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductApiLink operations. */ +export class WorkspaceProductApiLinkImpl implements WorkspaceProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.WorkspaceProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters74, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..bc75532aa3df --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts @@ -0,0 +1,429 @@ +/* + * 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 { WorkspaceProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductNextOptionalParams, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkListByProductResponse, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, + WorkspaceProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductGroupLink operations. */ +export class WorkspaceProductGroupLinkImpl + implements WorkspaceProductGroupLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.WorkspaceProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts new file mode 100644 index 000000000000..5b19618edec6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts @@ -0,0 +1,325 @@ +/* + * 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 { WorkspaceProductPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceProductPolicy operations. */ +export class WorkspaceProductPolicyImpl implements WorkspaceProductPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts new file mode 100644 index 000000000000..0409e0b7d21e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts @@ -0,0 +1,650 @@ +/* + * 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 { WorkspaceSubscription } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SubscriptionContract, + WorkspaceSubscriptionListNextOptionalParams, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionListResponse, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, + WorkspaceSubscriptionListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceSubscription operations. */ +export class WorkspaceSubscriptionImpl implements WorkspaceSubscription { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceSubscription class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceSubscriptionListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + sid, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regeneratePrimaryKeyOperationSpec, + ); + } + + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regenerateSecondaryKeyOperationSpec, + ); + } + + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + listSecretsOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceSubscriptionListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceSubscriptionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters78, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters79, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regeneratePrimaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regenerateSecondaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract, + headersMapper: Mappers.WorkspaceSubscriptionListSecretsHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts new file mode 100644 index 000000000000..38eeb0339933 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts @@ -0,0 +1,503 @@ +/* + * 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 { WorkspaceTag } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagContract, + WorkspaceTagListByServiceNextOptionalParams, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagListByServiceResponse, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, + WorkspaceTagListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTag operations. */ +export class WorkspaceTagImpl implements WorkspaceTag { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTag class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + 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.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getEntityStateOperationSpec, + ); + } + + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getOperationSpec, + ); + } + + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceTagListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.scope, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceTagGetEntityStateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts new file mode 100644 index 000000000000..351753ecd862 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts @@ -0,0 +1,420 @@ +/* + * 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 { WorkspaceTagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductNextOptionalParams, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkListByProductResponse, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, + WorkspaceTagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagApiLink operations. */ +export class WorkspaceTagApiLinkImpl implements WorkspaceTagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.WorkspaceTagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters80, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..8827e0d84358 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts @@ -0,0 +1,422 @@ +/* + * 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 { WorkspaceTagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductNextOptionalParams, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkListByProductResponse, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, + WorkspaceTagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagOperationLink operations. */ +export class WorkspaceTagOperationLinkImpl + implements WorkspaceTagOperationLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.WorkspaceTagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts new file mode 100644 index 000000000000..39f6fb04a481 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts @@ -0,0 +1,420 @@ +/* + * 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 { WorkspaceTagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductNextOptionalParams, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkListByProductResponse, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, + WorkspaceTagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagProductLink operations. */ +export class WorkspaceTagProductLinkImpl implements WorkspaceTagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + 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.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.WorkspaceTagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts new file mode 100644 index 000000000000..1446ef8bbfa7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts @@ -0,0 +1,29 @@ +/* + * 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 { + AllPoliciesContract, + AllPoliciesListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a AllPolicies. */ +export interface AllPolicies { + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index 0ff932cdd76b..e5c557585318 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -23,7 +23,8 @@ import { ApiUpdateContract, ApiUpdateOptionalParams, ApiUpdateResponse, - ApiDeleteOptionalParams + ApiDeleteOptionalParams, + ApiDeleteResponse, } from "../models"; /// @@ -38,7 +39,7 @@ export interface Api { listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. @@ -49,7 +50,7 @@ export interface Api { listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. @@ -63,7 +64,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API specified by its identifier. @@ -77,7 +78,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. @@ -93,7 +94,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -114,7 +115,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specified API of the API Management service instance. @@ -133,7 +134,7 @@ export interface Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise; /** * Deletes the specified API of the API Management service instance. @@ -145,11 +146,30 @@ export interface Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise; + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + >; + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index d369a59d6f66..4e0c775171d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -18,7 +18,7 @@ import { ApiDiagnosticCreateOrUpdateResponse, ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, - ApiDiagnosticDeleteOptionalParams + ApiDiagnosticDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. @@ -67,7 +67,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. @@ -85,7 +85,7 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. @@ -106,7 +106,7 @@ export interface ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic from an API. @@ -125,6 +125,6 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index 1efcf25c77c1..bfb1f814ac47 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -10,7 +10,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Interface representing a ApiExport. */ @@ -23,7 +23,7 @@ export interface ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -33,6 +33,6 @@ export interface ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index ca2f0189336a..989d93b9f05c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -19,7 +19,7 @@ import { IssueUpdateContract, ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, - ApiIssueDeleteOptionalParams + ApiIssueDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. @@ -66,7 +66,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise; /** * Creates a new Issue for an API or updates an existing one. @@ -83,7 +83,7 @@ export interface ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing issue for an API. @@ -103,7 +103,7 @@ export interface ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise; /** * Deletes the specified Issue from an API. @@ -121,6 +121,6 @@ export interface ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index b6e147b842e3..45df060008d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -16,7 +16,7 @@ import { ApiIssueAttachmentGetResponse, ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, - ApiIssueAttachmentDeleteOptionalParams + ApiIssueAttachmentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 4d86b68407ce..2780903400cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -16,7 +16,7 @@ import { ApiIssueCommentGetResponse, ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, - ApiIssueCommentDeleteOptionalParams + ApiIssueCommentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts new file mode 100644 index 000000000000..ed236615f408 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts @@ -0,0 +1,147 @@ +/* + * 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 { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, +} from "../models"; + +/// +/** Interface representing a ApiManagementGateway. */ +export interface ApiManagementGateway { + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + >; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + >; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise; + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + >; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts index e13d81ae1a56..a6e10b76627f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, - ApiManagementOperationsListOptionalParams + ApiManagementOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementOperations { * @param options The options parameters. */ list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index 947d8acdd1d3..32c6e2e421a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -35,7 +35,7 @@ import { ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ApiManagementServiceGetDomainOwnershipIdentifierResponse, ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, } from "../models"; /// @@ -48,14 +48,14 @@ export interface ApiManagementService { */ listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all API Management services within an Azure subscription. * @param options The options parameters. */ list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator; /** * Restores a backup of an API Management service created using the ApiManagementService_Backup @@ -70,7 +70,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long @@ -104,7 +104,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -123,7 +123,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise; /** * Creates or updates an API Management service. This is long running operation and could take several @@ -137,7 +137,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -156,7 +156,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing API Management service. @@ -169,7 +169,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise; /** * Gets an API Management service resource description. @@ -198,7 +198,7 @@ export interface ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise; /** * Deletes an existing API Management service. @@ -209,7 +209,7 @@ export interface ApiManagementService { beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing API Management service. @@ -220,7 +220,7 @@ export interface ApiManagementService { beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise; /** * Upgrades an API Management service to the Stv2 platform. For details refer to @@ -233,7 +233,7 @@ export interface ApiManagementService { beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -251,7 +251,7 @@ export interface ApiManagementService { beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. @@ -262,7 +262,7 @@ export interface ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise; /** * Checks availability and correctness of a name for an API Management service. @@ -271,14 +271,14 @@ export interface ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise; /** * Get the custom domain ownership identifier for an API Management service. * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise; /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS @@ -290,12 +290,10 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > >; @@ -309,6 +307,6 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 49efcda76ba3..c92f84eb53b3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceSkuResult, - ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface ApiManagementServiceSkus { listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts index c5459f44cbf1..dc636c3177e9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiManagementSku, - ApiManagementSkusListOptionalParams + ApiManagementSkusListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementSkus { * @param options The options parameters. */ list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index bfe69dd00983..5af6820df308 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -19,7 +19,7 @@ import { OperationUpdateContract, ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, - ApiOperationDeleteOptionalParams + ApiOperationDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. @@ -54,7 +54,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API Operation specified by its identifier. @@ -71,7 +71,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise; /** * Creates a new operation in the API or updates an existing one. @@ -90,7 +90,7 @@ export interface ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the operation in the API specified by its identifier. @@ -112,7 +112,7 @@ export interface ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise; /** * Deletes the specified operation in the API. @@ -132,6 +132,6 @@ export interface ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 224a85a7e194..4942f9730382 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiOperationPolicy. */ @@ -37,7 +37,7 @@ export interface ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. @@ -56,7 +56,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API Operation level. @@ -75,7 +75,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API Operation level. @@ -96,7 +96,7 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api Operation. @@ -118,6 +118,6 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 3d54b954c30e..49a714f937d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiPolicy. */ @@ -34,7 +34,7 @@ export interface ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. @@ -50,7 +50,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API level. @@ -66,7 +66,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API. @@ -84,7 +84,7 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api. @@ -103,6 +103,6 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index d83bdb058e0a..9c7081e8f3c2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -23,6 +23,6 @@ export interface ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 15d74409908a..0787e4a5c4a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -18,7 +18,7 @@ import { ApiReleaseCreateOrUpdateResponse, ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, - ApiReleaseDeleteOptionalParams + ApiReleaseDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. @@ -53,7 +53,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise; /** * Returns the details of an API release. @@ -69,7 +69,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise; /** * Creates a new Release for the API. @@ -87,7 +87,7 @@ export interface ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the release of the API specified by its identifier. @@ -108,7 +108,7 @@ export interface ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise; /** * Deletes the specified release in the API. @@ -127,6 +127,6 @@ export interface ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 8264f54d3f06..30f68ef261cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiRevisionContract, - ApiRevisionListByServiceOptionalParams + ApiRevisionListByServiceOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 2a2b5c2c807c..d0a2fb7647d5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -17,7 +17,7 @@ import { ApiSchemaGetResponse, ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, - ApiSchemaDeleteOptionalParams + ApiSchemaDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise; /** * Get the schema configuration at the API level. @@ -67,7 +67,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise; /** * Creates or updates schema configuration for the API. @@ -85,7 +85,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the schema configuration at the Api. @@ -127,6 +127,6 @@ export interface ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index cd4303cd42c1..51efd0cdf9f6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -17,7 +17,7 @@ import { TagDescriptionCreateParameters, ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, - ApiTagDescriptionDeleteOptionalParams + ApiTagDescriptionDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -53,7 +53,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise; /** * Get Tag description in scope of API @@ -70,7 +70,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise; /** * Create/Update tag description in scope of the Api. @@ -89,7 +89,7 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise; /** * Delete tag description for the Api. @@ -109,6 +109,6 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 4a5912de1735..404a612fc4c6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -19,7 +19,7 @@ import { ApiVersionSetUpdateParameters, ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, - ApiVersionSetDeleteOptionalParams + ApiVersionSetDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApiVersionSet { listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. @@ -48,7 +48,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. @@ -62,7 +62,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise; /** * Creates or Updates a Api Version Set. @@ -78,7 +78,7 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. @@ -97,7 +97,7 @@ export interface ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise; /** * Deletes specific Api Version Set. @@ -114,6 +114,6 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts index 5d6bcdf9565c..60e6ace34d87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ApiWiki. */ @@ -33,7 +33,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for an API specified by its identifier. @@ -46,7 +46,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for an API or updates an existing one. @@ -61,7 +61,7 @@ export interface ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for an API specified by its identifier. @@ -79,7 +79,7 @@ export interface ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from an API. @@ -95,6 +95,6 @@ export interface ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts index b86f924bee02..5ae29595e2bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -23,6 +23,6 @@ export interface ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts index 015f10f04d61..99f546d87562 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -17,7 +17,7 @@ import { AuthorizationDeleteOptionalParams, AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, - AuthorizationConfirmConsentCodeResponse + AuthorizationConfirmConsentCodeResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization specified by its identifier. @@ -49,7 +49,7 @@ export interface Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise; /** * Creates or updates authorization. @@ -66,7 +66,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Authorization from the Authorization provider. @@ -84,7 +84,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise; /** * Confirm valid consent code to suppress Authorizations anti-phishing page. @@ -101,6 +101,6 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts index 9bbf78ae39d7..482999bbbebd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -14,7 +14,7 @@ import { AuthorizationAccessPolicyGetResponse, AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, - AuthorizationAccessPolicyDeleteOptionalParams + AuthorizationAccessPolicyDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface AuthorizationAccessPolicy { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization access policy specified by its identifier. @@ -50,7 +50,7 @@ export interface AuthorizationAccessPolicy { authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise; /** * Creates or updates Authorization Access Policy. @@ -69,7 +69,7 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific access policy from the Authorization. @@ -89,6 +89,6 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts index bcfc0be03fe5..7097a1fd22f1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts @@ -9,7 +9,7 @@ import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Interface representing a AuthorizationLoginLinks. */ @@ -29,6 +29,6 @@ export interface AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts index 1b2c64bf2296..44ed1cf0b9a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -14,7 +14,7 @@ import { AuthorizationProviderGetResponse, AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, - AuthorizationProviderDeleteOptionalParams + AuthorizationProviderDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface AuthorizationProvider { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization provider specified by its identifier. @@ -42,7 +42,7 @@ export interface AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise; /** * Creates or updates authorization provider. @@ -57,7 +57,7 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific authorization provider from the API Management service instance. @@ -73,6 +73,6 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index d70ac4bcaccc..ea99c93bbb92 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -21,7 +21,7 @@ import { AuthorizationServerUpdateResponse, AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, - AuthorizationServerListSecretsResponse + AuthorizationServerListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface AuthorizationServer { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. @@ -49,7 +49,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the authorization server specified by its identifier. @@ -62,7 +62,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise; /** * Creates new authorization server or updates an existing authorization server. @@ -77,7 +77,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the authorization server specified by its identifier. @@ -95,7 +95,7 @@ export interface AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise; /** * Deletes specific authorization server instance. @@ -111,7 +111,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the authorization server. @@ -124,6 +124,6 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index 40e8e927c666..dd64fd3a3614 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -20,7 +20,7 @@ import { BackendUpdateOptionalParams, BackendUpdateResponse, BackendDeleteOptionalParams, - BackendReconnectOptionalParams + BackendReconnectOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Backend { listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. @@ -49,7 +49,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the backend specified by its identifier. @@ -63,7 +63,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise; /** * Creates or Updates a backend. @@ -79,7 +79,7 @@ export interface Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing backend. @@ -98,7 +98,7 @@ export interface Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise; /** * Deletes the specified backend. @@ -115,7 +115,7 @@ export interface Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise; /** * Notifies the API Management gateway to create a new connection to the backend after the specified @@ -130,6 +130,6 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 8572de9ad24a..0b9d6ff4d319 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -19,7 +19,7 @@ import { CacheUpdateParameters, CacheUpdateOptionalParams, CacheUpdateResponse, - CacheDeleteOptionalParams + CacheDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Cache { listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. @@ -48,7 +48,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Cache specified by its identifier. @@ -62,7 +62,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. @@ -78,7 +78,7 @@ export interface Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the cache specified by its identifier. @@ -97,7 +97,7 @@ export interface Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise; /** * Deletes specific Cache. @@ -114,6 +114,6 @@ export interface Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 1cf2f8298d79..d3649fddae31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -19,7 +19,7 @@ import { CertificateCreateOrUpdateResponse, CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, - CertificateRefreshSecretResponse + CertificateRefreshSecretResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Certificate { listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. @@ -48,7 +48,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the certificate specified by its identifier. @@ -62,7 +62,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. @@ -78,7 +78,7 @@ export interface Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific certificate. @@ -95,7 +95,7 @@ export interface Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. @@ -109,6 +109,6 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index d6db18227d54..655c94bad43e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -16,7 +16,7 @@ import { ContentItemGetResponse, ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, - ContentItemDeleteOptionalParams + ContentItemDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the entity state (ETag) version of the developer portal's content item specified by its @@ -49,7 +49,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise; /** * Returns the developer portal's content item specified by its identifier. @@ -64,7 +64,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. @@ -81,7 +81,7 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content item. @@ -99,6 +99,6 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 68c247315096..6bd0baad3cf2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -14,7 +14,7 @@ import { ContentTypeGetResponse, ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, - ContentTypeDeleteOptionalParams + ContentTypeDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface ContentType { listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the developer portal's content type. Content types describe content items' @@ -44,7 +44,7 @@ export interface ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise; /** * Creates or updates the developer portal's content type. Content types describe content items' @@ -61,7 +61,7 @@ export interface ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content type. Content types describe content items' @@ -79,6 +79,6 @@ export interface ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 650d46f719ba..f20143fd5128 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -16,7 +16,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Interface representing a DelegationSettings. */ @@ -30,7 +30,7 @@ export interface DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Delegation Settings for the Portal. @@ -41,7 +41,7 @@ export interface DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise; /** * Update Delegation settings. @@ -57,7 +57,7 @@ export interface DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Delegation settings. @@ -70,7 +70,7 @@ export interface DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise; /** * Gets the secret validation key of the DelegationSettings. @@ -81,6 +81,6 @@ export interface DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index fda32ab5743c..e015a6dfebb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -13,7 +13,7 @@ import { DeletedServicesListBySubscriptionOptionalParams, DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, - DeletedServicesPurgeOptionalParams + DeletedServicesPurgeOptionalParams, } from "../models"; /// @@ -24,7 +24,7 @@ export interface DeletedServices { * @param options The options parameters. */ listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get soft-deleted Api Management Service by name. @@ -35,7 +35,7 @@ export interface DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -46,7 +46,7 @@ export interface DeletedServices { beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -57,6 +57,6 @@ export interface DeletedServices { beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a33338aa2633..ac5f976b6d6e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -18,7 +18,7 @@ import { DiagnosticCreateOrUpdateResponse, DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, - DiagnosticDeleteOptionalParams + DiagnosticDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Diagnostic { listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. @@ -47,7 +47,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. @@ -61,7 +61,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic or updates an existing one. @@ -77,7 +77,7 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. @@ -96,7 +96,7 @@ export interface Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic. @@ -113,6 +113,6 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts index 6a9cc7551419..6b51f610c784 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -19,7 +19,7 @@ import { DocumentationUpdateContract, DocumentationUpdateOptionalParams, DocumentationUpdateResponse, - DocumentationDeleteOptionalParams + DocumentationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Documentation { listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Documentation by its identifier. @@ -48,7 +48,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Documentation specified by its identifier. @@ -62,7 +62,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise; /** * Creates a new Documentation or updates an existing one. @@ -78,7 +78,7 @@ export interface Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Documentation for an API specified by its identifier. @@ -97,7 +97,7 @@ export interface Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise; /** * Deletes the specified Documentation from an API. @@ -114,6 +114,6 @@ export interface Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index daa6c97bed59..c02ce23721de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -20,7 +20,7 @@ import { EmailTemplateCreateOrUpdateResponse, EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, - EmailTemplateDeleteOptionalParams + EmailTemplateDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface EmailTemplate { listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. @@ -48,7 +48,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the email template specified by its identifier. @@ -61,7 +61,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise; /** * Updates an Email Template. @@ -76,7 +76,7 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise; /** * Updates API Management email template @@ -94,7 +94,7 @@ export interface EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. @@ -110,6 +110,6 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 00a5b5b809c8..e8cd7bd29474 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -25,7 +25,14 @@ import { GatewayRegenerateKeyOptionalParams, GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, - GatewayGenerateTokenResponse + GatewayGenerateTokenResponse, + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, } from "../models"; /// @@ -40,7 +47,7 @@ export interface Gateway { listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. @@ -54,7 +61,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Gateway specified by its identifier. @@ -68,7 +75,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. @@ -84,7 +91,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the gateway specified by its identifier. @@ -103,7 +110,7 @@ export interface Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise; /** * Deletes specific Gateway. @@ -120,7 +127,7 @@ export interface Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise; /** * Retrieves gateway keys. @@ -134,7 +141,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. @@ -150,7 +157,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. @@ -166,6 +173,52 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise; + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise; + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise; + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 40fbda7aec7f..7bc1699b7211 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -14,7 +14,7 @@ import { GatewayApiGetEntityTagResponse, GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, - GatewayApiDeleteOptionalParams + GatewayApiDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. @@ -48,7 +48,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise; /** * Adds an API to the specified Gateway. @@ -64,7 +64,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified Gateway. @@ -80,6 +80,6 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 8295474134eb..7f809b4acaed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -16,7 +16,7 @@ import { GatewayCertificateAuthorityGetResponse, GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, - GatewayCertificateAuthorityDeleteOptionalParams + GatewayCertificateAuthorityDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayCertificateAuthority { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. @@ -51,7 +51,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise; /** * Get assigned Gateway Certificate Authority details. @@ -68,7 +68,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. @@ -87,7 +87,7 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. @@ -107,6 +107,6 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index 51859ce26a5e..efdb121fa283 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -16,7 +16,7 @@ import { GatewayHostnameConfigurationGetResponse, GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, - GatewayHostnameConfigurationDeleteOptionalParams + GatewayHostnameConfigurationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayHostnameConfiguration { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway @@ -52,7 +52,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise; /** * Get details of a hostname configuration @@ -69,7 +69,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise; /** * Creates of updates hostname configuration for a Gateway. @@ -88,7 +88,7 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. @@ -108,6 +108,6 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index a41c3a8d9396..511e5515ecd0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -17,7 +17,7 @@ import { GlobalSchemaGetResponse, GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, - GlobalSchemaDeleteOptionalParams + GlobalSchemaDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GlobalSchema { listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. @@ -45,7 +45,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Schema specified by its identifier. @@ -58,7 +58,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. @@ -73,7 +73,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -93,7 +93,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Schema. @@ -109,6 +109,6 @@ export interface GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts index a26be7a75349..c8073f73a737 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts @@ -19,7 +19,7 @@ import { ResolverUpdateContract, GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, - GraphQLApiResolverDeleteOptionalParams + GraphQLApiResolverDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. @@ -54,7 +54,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the GraphQL API Resolver specified by its identifier. @@ -71,7 +71,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise; /** * Creates a new resolver in the GraphQL API or updates an existing one. @@ -90,7 +90,7 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the resolver in the GraphQL API specified by its identifier. @@ -112,7 +112,7 @@ export interface GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise; /** * Deletes the specified resolver in the GraphQL API. @@ -132,6 +132,6 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts index d2bba1d665a9..23c4f07a637b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts @@ -17,7 +17,7 @@ import { GraphQLApiResolverPolicyGetResponse, GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, - GraphQLApiResolverPolicyDeleteOptionalParams + GraphQLApiResolverPolicyDeleteOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. @@ -57,7 +57,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the GraphQL API Resolver level. @@ -76,7 +76,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the GraphQL API Resolver level. @@ -97,7 +97,7 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the GraphQL Api Resolver. @@ -119,6 +119,6 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index 2be3ae28bb90..6297f6f8ca32 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -20,7 +20,7 @@ import { GroupUpdateParameters, GroupUpdateOptionalParams, GroupUpdateResponse, - GroupDeleteOptionalParams + GroupDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Group { listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. @@ -48,7 +48,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the group specified by its identifier. @@ -61,7 +61,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise; /** * Creates or Updates a group. @@ -76,7 +76,7 @@ export interface Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the group specified by its identifier. @@ -94,7 +94,7 @@ export interface Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise; /** * Deletes specific group of the API Management service instance. @@ -110,6 +110,6 @@ export interface Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 3eb645744d60..162629423d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -14,7 +14,7 @@ import { GroupUserCheckEntityExistsResponse, GroupUserCreateOptionalParams, GroupUserCreateResponse, - GroupUserDeleteOptionalParams + GroupUserDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. @@ -46,7 +46,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise; /** * Add existing user to existing group @@ -61,7 +61,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise; /** * Remove existing user from existing group. @@ -76,6 +76,6 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index c5317c014fbb..9ba22c9c2ddd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -23,7 +23,7 @@ import { IdentityProviderUpdateResponse, IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, - IdentityProviderListSecretsResponse + IdentityProviderListSecretsResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface IdentityProvider { listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. @@ -51,7 +51,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. @@ -64,7 +64,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise; /** * Creates or Updates the IdentityProvider configuration. @@ -79,7 +79,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing IdentityProvider configuration. @@ -97,7 +97,7 @@ export interface IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise; /** * Deletes the specified identity provider configuration. @@ -113,7 +113,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the Identity Provider. @@ -126,6 +126,6 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 83434e88bcd2..09f3ef9b11f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +29,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +44,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -62,6 +65,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +81,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +92,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +103,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts index 9b26a41c56f2..d4370f79dbb0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -11,7 +11,7 @@ import { IssueContract, IssueListByServiceOptionalParams, IssueGetOptionalParams, - IssueGetResponse + IssueGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface Issue { listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets API Management issue details @@ -39,6 +39,6 @@ export interface Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index 8ec31d0af0c0..a8aed0d4894f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -19,7 +19,7 @@ import { LoggerUpdateContract, LoggerUpdateOptionalParams, LoggerUpdateResponse, - LoggerDeleteOptionalParams + LoggerDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Logger { listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. @@ -47,7 +47,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the logger specified by its identifier. @@ -60,7 +60,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise; /** * Creates or Updates a logger. @@ -75,7 +75,7 @@ export interface Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing logger. @@ -93,7 +93,7 @@ export interface Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise; /** * Deletes the specified logger. @@ -109,6 +109,6 @@ export interface Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index d325fdb15112..45a6ab1142de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -25,7 +25,7 @@ import { NamedValueListValueOptionalParams, NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, - NamedValueRefreshSecretResponse + NamedValueRefreshSecretResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export interface NamedValue { listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. @@ -53,7 +53,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the named value specified by its identifier. @@ -66,7 +66,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise; /** * Creates or updates named value. @@ -81,7 +81,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -101,7 +101,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific named value. @@ -119,7 +119,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise; /** * Deletes specific named value from the API Management service instance. @@ -158,7 +158,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise; /** * Gets the secret of the named value specified by its identifier. @@ -171,7 +171,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise; /** * Refresh the secret of the named value specified by its identifier. @@ -184,7 +184,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -202,6 +202,6 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6bed7641b6b9..99089c4eb895 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -10,7 +10,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Interface representing a NetworkStatus. */ @@ -25,7 +25,7 @@ export interface NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise; /** * Gets the Connectivity Status to the external resources on which the Api Management service depends @@ -40,6 +40,6 @@ export interface NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index 344725e96540..558444d21412 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -14,7 +14,7 @@ import { NotificationGetOptionalParams, NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, - NotificationCreateOrUpdateResponse + NotificationCreateOrUpdateResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Notification { listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. @@ -42,7 +42,7 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise; /** * Create or Update API Management publisher notification. @@ -55,6 +55,6 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index 0d0742d5c743..91d6f77fe4d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -14,7 +14,7 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientEmail. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientEmail { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise; /** * Removes the email from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 1e31f45716ba..6854f0dbee7e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -14,7 +14,7 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientUser. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientUser { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise; /** * Removes the API Management user from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index 580369d0e3de..f484453765fa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -21,7 +21,7 @@ import { OpenIdConnectProviderUpdateResponse, OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, - OpenIdConnectProviderListSecretsResponse + OpenIdConnectProviderListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface OpenIdConnectProvider { listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. @@ -49,7 +49,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise; /** * Gets specific OpenID Connect Provider without secrets. @@ -62,7 +62,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise; /** * Creates or updates the OpenID Connect Provider. @@ -77,7 +77,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific OpenID Connect Provider. @@ -95,7 +95,7 @@ export interface OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. @@ -111,7 +111,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. @@ -124,6 +124,6 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index f5415a244e27..42f410721a83 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - OperationListByTagsOptionalParams + OperationListByTagsOptionalParams, } from "../models"; /// @@ -27,6 +27,6 @@ export interface OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index dd3d17095902..4249f9804050 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -8,7 +8,7 @@ import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Interface representing a OutboundNetworkDependenciesEndpoints. */ @@ -22,6 +22,6 @@ export interface OutboundNetworkDependenciesEndpoints { listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index 84d9f55f2198..85cde00c5990 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, PolicyListByServiceOptionalParams, - PolicyListByServiceResponse, PolicyIdName, PolicyGetEntityTagOptionalParams, PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a Policy. */ export interface Policy { /** @@ -31,8 +32,8 @@ export interface Policy { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams - ): Promise; + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise; /** * Get the Global policy definition of the Api Management service. @@ -57,7 +58,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. @@ -72,7 +73,7 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the global policy configuration of the Api Management Service. @@ -88,6 +89,6 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 452f51ef1fdd..0b5fe45517a7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -8,7 +8,7 @@ import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Interface representing a PolicyDescription. */ @@ -22,6 +22,6 @@ export interface PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts index 171bfa2f20c0..4f3930a381a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -6,22 +6,23 @@ * 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 { + PolicyFragmentContract, PolicyFragmentListByServiceOptionalParams, - PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, } from "../models"; +/// /** Interface representing a PolicyFragment. */ export interface PolicyFragment { /** @@ -33,8 +34,8 @@ export interface PolicyFragment { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams - ): Promise; + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of a policy fragment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -46,7 +47,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise; /** * Gets a policy fragment. @@ -59,7 +60,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise; /** * Creates or updates a policy fragment. @@ -74,7 +75,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -94,7 +95,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a policy fragment. @@ -110,7 +111,7 @@ export interface PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise; /** * Lists policy resources that reference the policy fragment. @@ -123,6 +124,6 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts new file mode 100644 index 000000000000..6d45e85cceba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts @@ -0,0 +1,111 @@ +/* + * 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 { + PolicyRestrictionContract, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a PolicyRestriction. */ +export interface PolicyRestriction { + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise; + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts new file mode 100644 index 000000000000..caef535b7353 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts @@ -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. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Interface representing a PolicyRestrictionValidations. */ +export interface PolicyRestrictionValidations { + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + >; + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts index d32c7d0eb75b..9787440b6ed4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PortalConfigContract, PortalConfigListByServiceOptionalParams, - PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, } from "../models"; +/// /** Interface representing a PortalConfig. */ export interface PortalConfig { /** @@ -31,8 +32,8 @@ export interface PortalConfig { listByService( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams - ): Promise; + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the developer portal configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise; /** * Get the developer portal configuration. @@ -57,7 +58,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise; /** * Update the developer portal configuration. @@ -75,7 +76,7 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise; /** * Create or update the developer portal configuration. @@ -93,6 +94,6 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index e0f92866e5f3..af64ab4c4332 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -18,7 +18,7 @@ import { PortalRevisionCreateOrUpdateOptionalParams, PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, - PortalRevisionUpdateResponse + PortalRevisionUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface PortalRevision { listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. @@ -47,7 +47,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise; /** * Gets the developer portal's revision specified by its identifier. @@ -61,7 +61,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` @@ -78,7 +78,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -100,7 +100,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the description of specified portal revision or makes it current. @@ -119,7 +119,7 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -143,6 +143,6 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7ce1b08a936..d1147416363b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -8,7 +8,7 @@ import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Interface representing a PortalSettings. */ @@ -22,6 +22,6 @@ export interface PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index b6f6c5b9b32b..edd3980bd196 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -20,7 +20,7 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface PrivateEndpointConnectionOperations { listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. @@ -48,7 +48,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. @@ -63,7 +63,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified Private Endpoint Connection. @@ -96,7 +96,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. @@ -109,7 +109,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; /** * Gets the private link resources @@ -120,7 +120,7 @@ export interface PrivateEndpointConnectionOperations { listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise; /** * Gets the private link resources @@ -133,6 +133,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index f6a72fe292f0..f5cb6d940fd1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -21,7 +21,7 @@ import { ProductUpdateParameters, ProductUpdateOptionalParams, ProductUpdateResponse, - ProductDeleteOptionalParams + ProductDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Product { listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. @@ -47,7 +47,7 @@ export interface Product { listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. @@ -60,7 +60,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the product specified by its identifier. @@ -73,7 +73,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise; /** * Creates or Updates a product. @@ -88,7 +88,7 @@ export interface Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise; /** * Update existing product details. @@ -106,7 +106,7 @@ export interface Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise; /** * Delete product. @@ -122,6 +122,6 @@ export interface Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 7051be981009..927b4e6cf567 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -14,7 +14,7 @@ import { ProductApiCheckEntityExistsResponse, ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, - ProductApiDeleteOptionalParams + ProductApiDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. @@ -47,7 +47,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise; /** * Adds an API to the specified product. @@ -63,7 +63,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified product. @@ -79,6 +79,6 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts new file mode 100644 index 000000000000..2b6609c3e718 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts @@ -0,0 +1,86 @@ +/* + * 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 { + ProductApiLinkContract, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductApiLink. */ +export interface ProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts index e44872094a3d..b884dd2ad404 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -14,7 +14,7 @@ import { ProductGroupCheckEntityExistsResponse, ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, - ProductGroupDeleteOptionalParams + ProductGroupDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. @@ -46,7 +46,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise; /** * Adds the association between the specified developer group with the specified product. @@ -61,7 +61,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the association between the specified group and product. @@ -76,6 +76,6 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts new file mode 100644 index 000000000000..0030dd1e8641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts @@ -0,0 +1,86 @@ +/* + * 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 { + ProductGroupLinkContract, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductGroupLink. */ +export interface ProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 9f08f040cfb3..a16e2fd5a2d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, ProductPolicyListByProductOptionalParams, - ProductPolicyListByProductResponse, PolicyIdName, ProductPolicyGetEntityTagOptionalParams, ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a ProductPolicy. */ export interface ProductPolicy { /** @@ -33,8 +34,8 @@ export interface ProductPolicy { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams - ): Promise; + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator; /** * Get the ETag of the policy configuration at the Product level. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -48,7 +49,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the Product level. @@ -63,7 +64,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the Product. @@ -80,7 +81,7 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Product. @@ -98,6 +99,6 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 804f5bf882b7..3a0aa60bf2af 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SubscriptionContract, - ProductSubscriptionsListOptionalParams + ProductSubscriptionsListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts index 540bdf5fa04a..d57a2a1bbb6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ProductWiki. */ @@ -33,7 +33,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for a Product specified by its identifier. @@ -46,7 +46,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for a Product or updates an existing one. @@ -61,7 +61,7 @@ export interface ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for a Product specified by its identifier. @@ -79,7 +79,7 @@ export interface ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from a Product. @@ -95,6 +95,6 @@ export interface ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts index 878251c2a6a7..2020077c40db 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -23,6 +23,6 @@ export interface ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 8b06db3207dd..f46d280c79c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -11,7 +11,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByCounterKeys. */ @@ -31,7 +31,7 @@ export interface QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise; /** * Updates all the quota counter values specified with the existing quota counter key to a value in the @@ -50,6 +50,6 @@ export interface QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index 49641b09add3..10cce3ed5503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -11,7 +11,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByPeriodKeys. */ @@ -33,7 +33,7 @@ export interface QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise; /** * Updates an existing quota counter value in the specified service instance. @@ -53,6 +53,6 @@ export interface QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index b65177a34f8c..5b89ca95f8f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -21,6 +21,6 @@ export interface Region { listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 0069ea94bbfc..6b5c2d05fda6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -17,7 +17,7 @@ import { ReportsListBySubscriptionOptionalParams, ReportsListByTimeOptionalParams, RequestReportRecordContract, - ReportsListByRequestOptionalParams + ReportsListByRequestOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by User. @@ -59,7 +59,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. @@ -83,7 +83,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Product. @@ -107,7 +107,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by geography. @@ -131,7 +131,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by subscription. @@ -155,7 +155,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Time. @@ -183,7 +183,7 @@ export interface Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Request. @@ -200,6 +200,6 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 1c4b94321adb..66fb7549eac4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -14,7 +14,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignInSettings. */ @@ -28,7 +28,7 @@ export interface SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign In Settings for the Portal @@ -39,7 +39,7 @@ export interface SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise; /** * Update Sign-In settings. @@ -55,7 +55,7 @@ export interface SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-In settings. @@ -68,6 +68,6 @@ export interface SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 1dbcacd372e8..03b31521f3bc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -14,7 +14,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignUpSettings. */ @@ -28,7 +28,7 @@ export interface SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign Up Settings for the Portal @@ -39,7 +39,7 @@ export interface SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise; /** * Update Sign-Up settings. @@ -55,7 +55,7 @@ export interface SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-Up settings. @@ -68,6 +68,6 @@ export interface SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 74d50388f102..08c67a4ea83b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -24,7 +24,7 @@ import { SubscriptionRegeneratePrimaryKeyOptionalParams, SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, - SubscriptionListSecretsResponse + SubscriptionListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subscription { list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. @@ -53,7 +53,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise; /** * Gets the specified Subscription entity. @@ -67,7 +67,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise; /** * Creates or updates the subscription of specified user to the specified product. @@ -83,7 +83,7 @@ export interface Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of a subscription specified by its identifier. @@ -102,7 +102,7 @@ export interface Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise; /** * Deletes the specified subscription. @@ -119,7 +119,7 @@ export interface Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. @@ -133,7 +133,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. @@ -147,7 +147,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Gets the specified Subscription keys. @@ -161,6 +161,6 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index dca054554a45..c3f922cf1ea7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -43,7 +43,7 @@ import { TagCreateOrUpdateResponse, TagUpdateOptionalParams, TagUpdateResponse, - TagDeleteOptionalParams + TagDeleteOptionalParams, } from "../models"; /// @@ -64,7 +64,7 @@ export interface Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. @@ -78,7 +78,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. @@ -91,7 +91,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. @@ -102,7 +102,7 @@ export interface Tag { listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -121,7 +121,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise; /** * Get tag associated with the Operation. @@ -140,7 +140,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise; /** * Assign tag to the Operation. @@ -159,7 +159,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise; /** * Detach the tag from the Operation. @@ -178,7 +178,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -194,7 +194,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise; /** * Get tag associated with the API. @@ -210,7 +210,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise; /** * Assign tag to the Api. @@ -226,7 +226,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise; /** * Detach the tag from the Api. @@ -242,7 +242,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -257,7 +257,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise; /** * Get tag associated with the Product. @@ -272,7 +272,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise; /** * Assign tag to the Product. @@ -287,7 +287,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise; /** * Detach the tag from the Product. @@ -302,7 +302,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -315,7 +315,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise; /** * Gets the details of the tag specified by its identifier. @@ -328,7 +328,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise; /** * Creates a tag. @@ -343,7 +343,7 @@ export interface Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the tag specified by its identifier. @@ -361,7 +361,7 @@ export interface Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise; /** * Deletes specific tag of the API Management service instance. @@ -377,6 +377,6 @@ export interface Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts new file mode 100644 index 000000000000..0085aae40f13 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts @@ -0,0 +1,86 @@ +/* + * 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 { + TagApiLinkContract, + TagApiLinkListByProductOptionalParams, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagApiLink. */ +export interface TagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts new file mode 100644 index 000000000000..021184c6709a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts @@ -0,0 +1,86 @@ +/* + * 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 { + TagOperationLinkContract, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagOperationLink. */ +export interface TagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts new file mode 100644 index 000000000000..b30f1c54f23e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts @@ -0,0 +1,86 @@ +/* + * 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 { + TagProductLinkContract, + TagProductLinkListByProductOptionalParams, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagProductLink. */ +export interface TagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts index 9290bd0da6f0..2445194f6d5b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - TagResourceListByServiceOptionalParams + TagResourceListByServiceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface TagResource { listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 21cdd2908a90..f612f8d9683c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -24,7 +24,7 @@ import { TenantAccessRegeneratePrimaryKeyOptionalParams, TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, - TenantAccessListSecretsResponse + TenantAccessListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface TenantAccess { listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Tenant access metadata @@ -52,7 +52,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise; /** * Get tenant access information details without secrets. @@ -65,7 +65,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise; /** * Update tenant access information details. @@ -83,7 +83,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise; /** * Update tenant access information details. @@ -101,7 +101,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise; /** * Regenerate primary access key @@ -114,7 +114,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key @@ -127,7 +127,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Get tenant access information details. @@ -140,6 +140,6 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index 12b13c1b73e1..60294dca17d2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -9,7 +9,7 @@ import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Interface representing a TenantAccessGit. */ @@ -25,7 +25,7 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key for GIT. @@ -38,6 +38,6 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 81a7460fa896..ba65db3727bd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -18,7 +18,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Interface representing a TenantConfiguration. */ @@ -37,7 +37,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -58,7 +58,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise; /** * This operation creates a commit with the current configuration snapshot to the specified branch in @@ -74,7 +74,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,7 +95,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise; /** * This operation validates the changes in the specified Git branch. This is a long running operation @@ -111,7 +111,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise; /** * Gets the status of the most recent synchronization between the configuration database and the Git @@ -146,6 +146,6 @@ export interface TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index 4f8c4c6faa9f..b48636087514 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -12,7 +12,7 @@ import { TenantSettingsListByServiceOptionalParams, SettingsTypeName, TenantSettingsGetOptionalParams, - TenantSettingsGetResponse + TenantSettingsGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface TenantSettings { listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Get tenant settings. @@ -40,6 +40,6 @@ export interface TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index 0b6102704805..858bba72ea03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { UserContract, UserListByServiceOptionalParams, @@ -21,11 +22,12 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, - UserGetSharedAccessTokenResponse + UserGetSharedAccessTokenResponse, } from "../models"; /// @@ -40,7 +42,7 @@ export interface User { listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. @@ -53,7 +55,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the user specified by its identifier. @@ -66,7 +68,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise; /** * Creates or Updates a user. @@ -81,7 +83,7 @@ export interface User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the user specified by its identifier. @@ -99,7 +101,7 @@ export interface User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise; /** * Deletes specific user. @@ -110,13 +112,31 @@ export interface User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise; + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + >; + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise; /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. @@ -129,7 +149,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the User. @@ -144,6 +164,6 @@ export interface User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 0479110f882e..706fefaeb642 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -21,6 +21,6 @@ export interface UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index a2fbd8f792de..0f7885aa6694 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -23,6 +23,6 @@ export interface UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1a242a6c686d..8364109a60a2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { UserIdentityContract, - UserIdentitiesListOptionalParams + UserIdentitiesListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 548a266d86dd..b47cd94788cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -11,7 +11,7 @@ import { SubscriptionContract, UserSubscriptionListOptionalParams, UserSubscriptionGetOptionalParams, - UserSubscriptionGetResponse + UserSubscriptionGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. @@ -44,6 +44,6 @@ export interface UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts new file mode 100644 index 000000000000..3d50b2024a9a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts @@ -0,0 +1,118 @@ +/* + * 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 { + WorkspaceContract, + WorkspaceListByServiceOptionalParams, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a Workspace. */ +export interface Workspace { + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise; + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts new file mode 100644 index 000000000000..531f6440d160 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts @@ -0,0 +1,165 @@ +/* + * 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 { + ApiContract, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApi. */ +export interface WorkspaceApi { + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts new file mode 100644 index 000000000000..e29295e60020 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts @@ -0,0 +1,41 @@ +/* + * 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 { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Interface representing a WorkspaceApiExport. */ +export interface WorkspaceApiExport { + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts new file mode 100644 index 000000000000..7f1525bdb32b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts @@ -0,0 +1,155 @@ +/* + * 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 { + OperationContract, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperation. */ +export interface WorkspaceApiOperation { + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise; + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..eaf2688833f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts @@ -0,0 +1,139 @@ +/* + * 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 { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperationPolicy. */ +export interface WorkspaceApiOperationPolicy { + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts new file mode 100644 index 000000000000..cf3f96418a36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts @@ -0,0 +1,124 @@ +/* + * 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 { + PolicyContract, + WorkspaceApiPolicyListByApiOptionalParams, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiPolicy. */ +export interface WorkspaceApiPolicy { + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts new file mode 100644 index 000000000000..836b17701932 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts @@ -0,0 +1,150 @@ +/* + * 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 { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRelease. */ +export interface WorkspaceApiRelease { + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise; + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise; + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts new file mode 100644 index 000000000000..133012b77c3d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts @@ -0,0 +1,34 @@ +/* + * 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 { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRevision. */ +export interface WorkspaceApiRevision { + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts new file mode 100644 index 000000000000..3276f1f5c9f3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts @@ -0,0 +1,150 @@ +/* + * 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 { + SchemaContract, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiSchema. */ +export interface WorkspaceApiSchema { + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + >; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..d680f123b4f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts @@ -0,0 +1,137 @@ +/* + * 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 { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiVersionSet. */ +export interface WorkspaceApiVersionSet { + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise; + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..9d4e1493082c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts @@ -0,0 +1,134 @@ +/* + * 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 { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGlobalSchema. */ +export interface WorkspaceGlobalSchema { + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts new file mode 100644 index 000000000000..4fcf68bb0d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts @@ -0,0 +1,133 @@ +/* + * 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 { + GroupContract, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroup. */ +export interface WorkspaceGroup { + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise; + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise; + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts new file mode 100644 index 000000000000..4f8a67885818 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts @@ -0,0 +1,93 @@ +/* + * 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 { + UserContract, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroupUser. */ +export interface WorkspaceGroupUser { + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise; + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts new file mode 100644 index 000000000000..db632db4b26b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts @@ -0,0 +1,240 @@ +/* + * 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 { + NamedValueContract, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNamedValue. */ +export interface WorkspaceNamedValue { + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + >; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + >; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise; + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise; + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + >; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts new file mode 100644 index 000000000000..df7c4ad2515a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts @@ -0,0 +1,69 @@ +/* + * 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 { + NotificationContract, + WorkspaceNotificationListByServiceOptionalParams, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNotification. */ +export interface WorkspaceNotification { + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise; + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..f77f15289981 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,92 @@ +/* + * 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 { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientEmail. */ +export interface WorkspaceNotificationRecipientEmail { + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise; + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..a8f25d3cffbb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts @@ -0,0 +1,92 @@ +/* + * 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 { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientUser. */ +export interface WorkspaceNotificationRecipientUser { + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise; + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts new file mode 100644 index 000000000000..9119a194befa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts @@ -0,0 +1,109 @@ +/* + * 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 { + PolicyContract, + WorkspacePolicyListByApiOptionalParams, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicy. */ +export interface WorkspacePolicy { + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts new file mode 100644 index 000000000000..83f8fbf000e6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts @@ -0,0 +1,150 @@ +/* + * 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 { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicyFragment. */ +export interface WorkspacePolicyFragment { + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts new file mode 100644 index 000000000000..bad4997071bd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts @@ -0,0 +1,132 @@ +/* + * 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 { + ProductContract, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProduct. */ +export interface WorkspaceProduct { + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise; + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise; + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts new file mode 100644 index 000000000000..47a2eb5a2d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts @@ -0,0 +1,98 @@ +/* + * 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 { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductApiLink. */ +export interface WorkspaceProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..89cd940aa441 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts @@ -0,0 +1,98 @@ +/* + * 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 { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductGroupLink. */ +export interface WorkspaceProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts new file mode 100644 index 000000000000..3466b9503f26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts @@ -0,0 +1,118 @@ +/* + * 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 { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceProductPolicy. */ +export interface WorkspaceProductPolicy { + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise; + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts new file mode 100644 index 000000000000..d89a79dec29c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts @@ -0,0 +1,195 @@ +/* + * 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 { + SubscriptionContract, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceSubscription. */ +export interface WorkspaceSubscription { + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise; + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise; + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise; + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise; + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts new file mode 100644 index 000000000000..0c3d925b8d2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts @@ -0,0 +1,132 @@ +/* + * 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 { + TagContract, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTag. */ +export interface WorkspaceTag { + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise; + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise; + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise; + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts new file mode 100644 index 000000000000..9eb118dad062 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts @@ -0,0 +1,98 @@ +/* + * 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 { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagApiLink. */ +export interface WorkspaceTagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..b0f2a7ef4109 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts @@ -0,0 +1,98 @@ +/* + * 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 { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagOperationLink. */ +export interface WorkspaceTagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts new file mode 100644 index 000000000000..0e618dc525c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts @@ -0,0 +1,98 @@ +/* + * 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 { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagProductLink. */ +export interface WorkspaceTagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts +++ b/sdk/apimanagement/arm-apimanagement/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/apimanagement/arm-apimanagement/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts @@ -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. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index f92121c033f6..3e6ae96443f3 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-apimanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"