From 0c83728728761276b62bfa33712c476e218352db Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 27 Apr 2023 02:35:06 +0000 Subject: [PATCH] CodeGen from PR 22978 in Azure/azure-rest-api-specs Merge b9e6dd2d41a9817f6238c1eaa988cae7a3ce0faa into 2e2f8781fac5b72af86895d2e97ee0b1fab02048 --- common/config/rush/pnpm-lock.yaml | 14 +- .../arm-apimanagement/CHANGELOG.md | 753 +- sdk/apimanagement/arm-apimanagement/README.md | 2 +- .../arm-apimanagement/_meta.json | 8 +- .../arm-apimanagement/package.json | 24 +- .../review/arm-apimanagement.api.md | 9104 ++++++++---- .../src/apiManagementClient.ts | 238 +- .../arm-apimanagement/src/lroImpl.ts | 54 +- .../arm-apimanagement/src/models/index.ts | 12188 ++++++++++------ .../arm-apimanagement/src/models/mappers.ts | 10844 +++++++++----- .../src/models/parameters.ts | 487 +- .../arm-apimanagement/src/operations/api.ts | 57 +- .../src/operations/apiDiagnostic.ts | 20 +- .../src/operations/apiExport.ts | 2 +- .../src/operations/apiIssue.ts | 20 +- .../src/operations/apiIssueAttachment.ts | 16 +- .../src/operations/apiIssueComment.ts | 16 +- .../src/operations/apiManagementService.ts | 323 +- .../operations/apiManagementServiceSkus.ts | 6 +- .../src/operations/apiOperation.ts | 16 +- .../src/operations/apiOperationPolicy.ts | 10 +- .../src/operations/apiPolicy.ts | 10 +- .../src/operations/apiProduct.ts | 6 +- .../src/operations/apiRelease.ts | 16 +- .../src/operations/apiRevision.ts | 6 +- .../src/operations/apiSchema.ts | 58 +- .../src/operations/apiTagDescription.ts | 16 +- .../src/operations/apiVersionSet.ts | 20 +- .../src/operations/apiWiki.ts | 280 + .../src/operations/apiWikis.ts | 217 + .../src/operations/authorization.ts | 464 + .../operations/authorizationAccessPolicy.ts | 439 + .../src/operations/authorizationLoginLinks.ts | 91 + .../src/operations/authorizationProvider.ts | 366 + .../src/operations/authorizationServer.ts | 22 +- .../src/operations/backend.ts | 28 +- .../arm-apimanagement/src/operations/cache.ts | 20 +- .../src/operations/certificate.ts | 18 +- .../src/operations/contentItem.ts | 16 +- .../src/operations/contentType.ts | 14 +- .../src/operations/delegationSettings.ts | 14 +- .../src/operations/deletedServices.ts | 28 +- .../src/operations/diagnostic.ts | 20 +- .../src/operations/documentation.ts | 467 + .../src/operations/emailTemplate.ts | 20 +- .../src/operations/gateway.ts | 30 +- .../src/operations/gatewayApi.ts | 14 +- .../operations/gatewayCertificateAuthority.ts | 16 +- .../gatewayHostnameConfiguration.ts | 16 +- .../src/operations/globalSchema.ts | 51 +- .../src/operations/graphQLApiResolver.ts | 513 + .../operations/graphQLApiResolverPolicy.ts | 478 + .../arm-apimanagement/src/operations/group.ts | 20 +- .../src/operations/groupUser.ts | 12 +- .../src/operations/identityProvider.ts | 22 +- .../arm-apimanagement/src/operations/index.ts | 46 + .../arm-apimanagement/src/operations/issue.ts | 8 +- .../src/operations/logger.ts | 20 +- .../src/operations/namedValue.ts | 119 +- .../src/operations/networkStatus.ts | 4 +- .../src/operations/notification.ts | 10 +- .../operations/notificationRecipientEmail.ts | 8 +- .../operations/notificationRecipientUser.ts | 8 +- .../src/operations/openIdConnectProvider.ts | 22 +- .../src/operations/operationOperations.ts | 6 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operations/policy.ts | 145 +- .../src/operations/policyDescription.ts | 2 +- .../src/operations/policyFragment.ts | 537 + .../src/operations/portalConfig.ts | 415 + .../src/operations/portalRevision.ts | 86 +- .../src/operations/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 67 +- .../src/operations/product.ts | 26 +- .../src/operations/productApi.ts | 12 +- .../src/operations/productApiLink.ts | 379 + .../src/operations/productGroup.ts | 12 +- .../src/operations/productGroupLink.ts | 379 + .../src/operations/productPolicy.ts | 157 +- .../src/operations/productSubscriptions.ts | 6 +- .../src/operations/productWiki.ts | 287 + .../src/operations/productWikis.ts | 224 + .../src/operations/quotaByCounterKeys.ts | 6 +- .../src/operations/quotaByPeriodKeys.ts | 6 +- .../src/operations/region.ts | 6 +- .../src/operations/reports.ts | 68 +- .../src/operations/signInSettings.ts | 12 +- .../src/operations/signUpSettings.ts | 12 +- .../src/operations/subscription.ts | 26 +- .../arm-apimanagement/src/operations/tag.ts | 58 +- .../src/operations/tagApiLink.ts | 372 + .../src/operations/tagOperationLink.ts | 379 + .../src/operations/tagProductLink.ts | 379 + .../src/operations/tagResource.ts | 6 +- .../src/operations/tenantAccess.ts | 24 +- .../src/operations/tenantAccessGit.ts | 4 +- .../src/operations/tenantConfiguration.ts | 103 +- .../src/operations/tenantSettings.ts | 8 +- .../arm-apimanagement/src/operations/user.ts | 26 +- .../operations/userConfirmationPassword.ts | 2 +- .../src/operations/userGroup.ts | 6 +- .../src/operations/userIdentities.ts | 6 +- .../src/operations/userSubscription.ts | 8 +- .../src/operations/workspace.ts | 466 + .../src/operations/workspaceApi.ts | 617 + .../src/operations/workspaceApiExport.ts | 100 + .../src/operations/workspaceApiOperation.ts | 576 + .../operations/workspaceApiOperationPolicy.ts | 546 + .../src/operations/workspaceApiPolicy.ts | 478 + .../src/operations/workspaceApiRelease.ts | 570 + .../src/operations/workspaceApiRevision.ts | 240 + .../src/operations/workspaceApiSchema.ts | 584 + .../src/operations/workspaceApiVersionSet.ts | 520 + .../src/operations/workspaceGlobalSchema.ts | 546 + .../src/operations/workspaceGroup.ts | 516 + .../src/operations/workspaceGroupUser.ts | 400 + .../src/operations/workspaceNamedValue.ts | 912 ++ .../src/operations/workspaceNotification.ts | 329 + .../workspaceNotificationRecipientEmail.ts | 261 + .../workspaceNotificationRecipientUser.ts | 261 + .../src/operations/workspacePolicy.ts | 442 + .../src/operations/workspacePolicyFragment.ts | 586 + .../src/operations/workspaceProduct.ts | 517 + .../src/operations/workspaceProductApiLink.ts | 431 + .../operations/workspaceProductGroupLink.ts | 432 + .../src/operations/workspaceProductPolicy.ts | 330 + .../src/operations/workspaceSubscription.ts | 659 + .../src/operations/workspaceTag.ts | 509 + .../src/operations/workspaceTagApiLink.ts | 424 + .../operations/workspaceTagOperationLink.ts | 425 + .../src/operations/workspaceTagProductLink.ts | 424 + .../src/operationsInterfaces/api.ts | 22 +- .../src/operationsInterfaces/apiDiagnostic.ts | 12 +- .../src/operationsInterfaces/apiExport.ts | 2 +- .../src/operationsInterfaces/apiIssue.ts | 12 +- .../apiIssueAttachment.ts | 10 +- .../operationsInterfaces/apiIssueComment.ts | 10 +- .../apiManagementService.ts | 87 +- .../apiManagementServiceSkus.ts | 2 +- .../src/operationsInterfaces/apiOperation.ts | 12 +- .../apiOperationPolicy.ts | 10 +- .../src/operationsInterfaces/apiPolicy.ts | 10 +- .../src/operationsInterfaces/apiProduct.ts | 2 +- .../src/operationsInterfaces/apiRelease.ts | 12 +- .../src/operationsInterfaces/apiRevision.ts | 2 +- .../src/operationsInterfaces/apiSchema.ts | 18 +- .../operationsInterfaces/apiTagDescription.ts | 10 +- .../src/operationsInterfaces/apiVersionSet.ts | 12 +- .../src/operationsInterfaces/apiWiki.ts | 100 + .../src/operationsInterfaces/apiWikis.ts | 28 + .../src/operationsInterfaces/authorization.ts | 106 + .../authorizationAccessPolicy.ts | 94 + .../authorizationLoginLinks.ts | 34 + .../authorizationProvider.ts | 78 + .../authorizationServer.ts | 14 +- .../src/operationsInterfaces/backend.ts | 18 +- .../src/operationsInterfaces/cache.ts | 12 +- .../src/operationsInterfaces/certificate.ts | 12 +- .../src/operationsInterfaces/contentItem.ts | 10 +- .../src/operationsInterfaces/contentType.ts | 8 +- .../delegationSettings.ts | 10 +- .../operationsInterfaces/deletedServices.ts | 4 +- .../src/operationsInterfaces/diagnostic.ts | 12 +- .../src/operationsInterfaces/documentation.ts | 119 + .../src/operationsInterfaces/emailTemplate.ts | 12 +- .../src/operationsInterfaces/gateway.ts | 18 +- .../src/operationsInterfaces/gatewayApi.ts | 8 +- .../gatewayCertificateAuthority.ts | 10 +- .../gatewayHostnameConfiguration.ts | 10 +- .../src/operationsInterfaces/globalSchema.ts | 18 +- .../graphQLApiResolver.ts | 137 + .../graphQLApiResolverPolicy.ts | 124 + .../src/operationsInterfaces/group.ts | 12 +- .../src/operationsInterfaces/groupUser.ts | 8 +- .../operationsInterfaces/identityProvider.ts | 14 +- .../src/operationsInterfaces/index.ts | 46 + .../src/operationsInterfaces/issue.ts | 4 +- .../src/operationsInterfaces/logger.ts | 12 +- .../src/operationsInterfaces/namedValue.ts | 36 +- .../src/operationsInterfaces/networkStatus.ts | 4 +- .../src/operationsInterfaces/notification.ts | 6 +- .../notificationRecipientEmail.ts | 8 +- .../notificationRecipientUser.ts | 8 +- .../openIdConnectProvider.ts | 14 +- .../operationOperations.ts | 2 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operationsInterfaces/policy.ts | 17 +- .../operationsInterfaces/policyDescription.ts | 2 +- .../operationsInterfaces/policyFragment.ts | 129 + .../src/operationsInterfaces/portalConfig.ts | 99 + .../operationsInterfaces/portalRevision.ts | 24 +- .../operationsInterfaces/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 24 +- .../src/operationsInterfaces/product.ts | 14 +- .../src/operationsInterfaces/productApi.ts | 8 +- .../operationsInterfaces/productApiLink.ts | 86 + .../src/operationsInterfaces/productGroup.ts | 8 +- .../operationsInterfaces/productGroupLink.ts | 86 + .../src/operationsInterfaces/productPolicy.ts | 17 +- .../productSubscriptions.ts | 2 +- .../src/operationsInterfaces/productWiki.ts | 100 + .../src/operationsInterfaces/productWikis.ts | 28 + .../quotaByCounterKeys.ts | 4 +- .../operationsInterfaces/quotaByPeriodKeys.ts | 4 +- .../src/operationsInterfaces/region.ts | 2 +- .../src/operationsInterfaces/reports.ts | 16 +- .../operationsInterfaces/signInSettings.ts | 8 +- .../operationsInterfaces/signUpSettings.ts | 8 +- .../src/operationsInterfaces/subscription.ts | 18 +- .../src/operationsInterfaces/tag.ts | 42 +- .../src/operationsInterfaces/tagApiLink.ts | 86 + .../operationsInterfaces/tagOperationLink.ts | 86 + .../operationsInterfaces/tagProductLink.ts | 86 + .../src/operationsInterfaces/tagResource.ts | 2 +- .../src/operationsInterfaces/tenantAccess.ts | 16 +- .../operationsInterfaces/tenantAccessGit.ts | 4 +- .../tenantConfiguration.ts | 28 +- .../operationsInterfaces/tenantSettings.ts | 4 +- .../src/operationsInterfaces/user.ts | 16 +- .../userConfirmationPassword.ts | 2 +- .../src/operationsInterfaces/userGroup.ts | 2 +- .../operationsInterfaces/userIdentities.ts | 2 +- .../operationsInterfaces/userSubscription.ts | 4 +- .../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/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 253 files changed, 49600 insertions(+), 11985 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.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/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productWikis.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/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.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/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.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 642388ff1f8d..2520a22e7042 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3775,7 +3775,7 @@ packages: dependencies: semver: 7.5.0 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230424 + typescript: 5.1.0-dev.20230426 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8435,8 +8435,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230424: - resolution: {integrity: sha512-yhQpzzjyLCyXORVY8AgJYaWpm235ZzG/boelYvgloE7v+kCucAdegsBf7duLJzXc/8+wABR2diYMbjPpd5c3Ww==} + /typescript/5.1.0-dev.20230426: + resolution: {integrity: sha512-zQ4BsUQeM5CFScIVsyY0XOMCn/VYav7z5CT6nlOSqI/CJ3DVn86JWE/DwkK44c39RyKCmtwB9hz+BWcb7bem/g==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -9671,7 +9671,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-rFBL4LJBuCjy5/jIdjV5HKIzNPXbhFJZ+EFeGLn6oPCMZeaHEuIB3LklKUDD7MA/zZ7haHgQLpH7R7vn7UNH1A==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-gf8xKvjJHddxrcN2UAo8YuFdfdIFAKIy5q1RQBCYuq/ouYTtM8bDxkOCvo/7lqBa0tlioe9EvUe7CeepAiMtQA==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -9685,14 +9685,14 @@ packages: '@types/node': 14.18.42 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.0.3 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_c43y4oaxxwie3ialrfuzfwwhqq tslib: 2.5.0 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 8403a1a309c5..c02d5404bce4 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,15 +1,752 @@ # Release History + +## 10.0.0-beta.1 (2023-04-27) + +**Features** -## 9.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group ApiWiki + - Added operation group ApiWikis + - Added operation group Authorization + - Added operation group AuthorizationAccessPolicy + - Added operation group AuthorizationLoginLinks + - Added operation group AuthorizationProvider + - Added operation group Documentation + - Added operation group GraphQLApiResolver + - Added operation group GraphQLApiResolverPolicy + - Added operation group PolicyFragment + - Added operation group PortalConfig + - Added operation group ProductApiLink + - Added operation group ProductGroupLink + - Added operation group ProductWiki + - Added operation group ProductWikis + - 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 ApiManagementService.beginMigrateToStv2 + - Added operation ApiManagementService.beginMigrateToStv2AndWait + - Added Interface ApiManagementClientPerformConnectivityCheckAsyncHeaders + - Added Interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders + - Added Interface ApiManagementServiceBackupHeaders + - Added Interface ApiManagementServiceDeleteHeaders + - Added Interface ApiManagementServiceMigrateToStv2Headers + - Added Interface ApiManagementServiceMigrateToStv2OptionalParams + - Added Interface ApiManagementServiceRestoreHeaders + - Added Interface ApiManagementServiceUpdateHeaders + - Added Interface ApiWikiCreateOrUpdateHeaders + - Added Interface ApiWikiCreateOrUpdateOptionalParams + - Added Interface ApiWikiDeleteOptionalParams + - Added Interface ApiWikiGetEntityTagHeaders + - Added Interface ApiWikiGetEntityTagOptionalParams + - Added Interface ApiWikiGetHeaders + - Added Interface ApiWikiGetOptionalParams + - Added Interface ApiWikisListNextOptionalParams + - Added Interface ApiWikisListOptionalParams + - Added Interface ApiWikiUpdateHeaders + - Added Interface ApiWikiUpdateOptionalParams + - Added Interface AuthorizationAccessPolicyCollection + - Added Interface AuthorizationAccessPolicyContract + - Added Interface AuthorizationAccessPolicyCreateOrUpdateHeaders + - Added Interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + - Added Interface AuthorizationAccessPolicyDeleteOptionalParams + - Added Interface AuthorizationAccessPolicyGetHeaders + - Added Interface AuthorizationAccessPolicyGetOptionalParams + - Added Interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + - Added Interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + - Added Interface AuthorizationCollection + - Added Interface AuthorizationConfirmConsentCodeHeaders + - Added Interface AuthorizationConfirmConsentCodeOptionalParams + - Added Interface AuthorizationConfirmConsentCodeRequestContract + - Added Interface AuthorizationContract + - Added Interface AuthorizationCreateOrUpdateHeaders + - Added Interface AuthorizationCreateOrUpdateOptionalParams + - Added Interface AuthorizationDeleteOptionalParams + - Added Interface AuthorizationError + - Added Interface AuthorizationGetHeaders + - Added Interface AuthorizationGetOptionalParams + - Added Interface AuthorizationListByAuthorizationProviderNextOptionalParams + - Added Interface AuthorizationListByAuthorizationProviderOptionalParams + - Added Interface AuthorizationLoginLinksPostHeaders + - Added Interface AuthorizationLoginLinksPostOptionalParams + - Added Interface AuthorizationLoginRequestContract + - Added Interface AuthorizationLoginResponseContract + - Added Interface AuthorizationProviderCollection + - Added Interface AuthorizationProviderContract + - Added Interface AuthorizationProviderCreateOrUpdateHeaders + - Added Interface AuthorizationProviderCreateOrUpdateOptionalParams + - Added Interface AuthorizationProviderDeleteOptionalParams + - Added Interface AuthorizationProviderGetHeaders + - Added Interface AuthorizationProviderGetOptionalParams + - Added Interface AuthorizationProviderListByServiceNextOptionalParams + - Added Interface AuthorizationProviderListByServiceOptionalParams + - Added Interface AuthorizationProviderOAuth2GrantTypes + - Added Interface AuthorizationProviderOAuth2Settings + - Added Interface BackendCircuitBreaker + - Added Interface CircuitBreakerFailureCondition + - Added Interface CircuitBreakerRule + - Added Interface DeletedServicesPurgeHeaders + - Added Interface DocumentationCollection + - Added Interface DocumentationContract + - Added Interface DocumentationCreateOrUpdateHeaders + - Added Interface DocumentationCreateOrUpdateOptionalParams + - Added Interface DocumentationDeleteOptionalParams + - Added Interface DocumentationGetEntityTagHeaders + - Added Interface DocumentationGetEntityTagOptionalParams + - Added Interface DocumentationGetHeaders + - Added Interface DocumentationGetOptionalParams + - Added Interface DocumentationListByServiceNextOptionalParams + - Added Interface DocumentationListByServiceOptionalParams + - Added Interface DocumentationUpdateContract + - Added Interface DocumentationUpdateHeaders + - Added Interface DocumentationUpdateOptionalParams + - Added Interface FailureStatusCodeRange + - Added Interface GraphQLApiResolverCreateOrUpdateHeaders + - Added Interface GraphQLApiResolverCreateOrUpdateOptionalParams + - Added Interface GraphQLApiResolverDeleteOptionalParams + - Added Interface GraphQLApiResolverGetEntityTagHeaders + - Added Interface GraphQLApiResolverGetEntityTagOptionalParams + - Added Interface GraphQLApiResolverGetHeaders + - Added Interface GraphQLApiResolverGetOptionalParams + - Added Interface GraphQLApiResolverListByApiNextOptionalParams + - Added Interface GraphQLApiResolverListByApiOptionalParams + - Added Interface GraphQLApiResolverPolicyCreateOrUpdateHeaders + - Added Interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + - Added Interface GraphQLApiResolverPolicyDeleteOptionalParams + - Added Interface GraphQLApiResolverPolicyGetEntityTagHeaders + - Added Interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + - Added Interface GraphQLApiResolverPolicyGetHeaders + - Added Interface GraphQLApiResolverPolicyGetOptionalParams + - Added Interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + - Added Interface GraphQLApiResolverPolicyListByResolverOptionalParams + - Added Interface GraphQLApiResolverUpdateHeaders + - Added Interface GraphQLApiResolverUpdateOptionalParams + - Added Interface PolicyFragmentCollection + - Added Interface PolicyFragmentContract + - Added Interface PolicyFragmentCreateOrUpdateHeaders + - Added Interface PolicyFragmentCreateOrUpdateOptionalParams + - Added Interface PolicyFragmentDeleteOptionalParams + - Added Interface PolicyFragmentGetEntityTagHeaders + - Added Interface PolicyFragmentGetEntityTagOptionalParams + - Added Interface PolicyFragmentGetHeaders + - Added Interface PolicyFragmentGetOptionalParams + - Added Interface PolicyFragmentListByServiceNextOptionalParams + - Added Interface PolicyFragmentListByServiceOptionalParams + - Added Interface PolicyFragmentListReferencesOptionalParams + - Added Interface PolicyListByServiceNextOptionalParams + - Added Interface PortalConfigCollection + - Added Interface PortalConfigContract + - Added Interface PortalConfigCorsProperties + - Added Interface PortalConfigCreateOrUpdateOptionalParams + - Added Interface PortalConfigCspProperties + - Added Interface PortalConfigDelegationProperties + - Added Interface PortalConfigGetEntityTagHeaders + - Added Interface PortalConfigGetEntityTagOptionalParams + - Added Interface PortalConfigGetHeaders + - Added Interface PortalConfigGetOptionalParams + - Added Interface PortalConfigListByServiceNextOptionalParams + - Added Interface PortalConfigListByServiceOptionalParams + - Added Interface PortalConfigPropertiesSignin + - Added Interface PortalConfigPropertiesSignup + - Added Interface PortalConfigTermsOfServiceProperties + - Added Interface PortalConfigUpdateOptionalParams + - 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 ProductWikiCreateOrUpdateHeaders + - Added Interface ProductWikiCreateOrUpdateOptionalParams + - Added Interface ProductWikiDeleteOptionalParams + - Added Interface ProductWikiGetEntityTagHeaders + - Added Interface ProductWikiGetEntityTagOptionalParams + - Added Interface ProductWikiGetHeaders + - Added Interface ProductWikiGetOptionalParams + - Added Interface ProductWikisListHeaders + - Added Interface ProductWikisListNextHeaders + - Added Interface ProductWikisListNextOptionalParams + - Added Interface ProductWikisListOptionalParams + - Added Interface ProductWikiUpdateHeaders + - Added Interface ProductWikiUpdateOptionalParams + - Added Interface ProxyResource + - Added Interface ResolverCollection + - Added Interface ResolverContract + - Added Interface ResolverResultContract + - Added Interface ResolverResultLogItemContract + - Added Interface ResolverUpdateContract + - Added Interface ResourceCollection + - Added Interface ResourceCollectionValueItem + - 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 WikiCollection + - Added Interface WikiContract + - Added Interface WikiDocumentationContract + - Added Interface WikiUpdateContract + - 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 ApiManagementServiceMigrateToStv2Response + - Added Type Alias ApiWikiCreateOrUpdateResponse + - Added Type Alias ApiWikiGetEntityTagResponse + - Added Type Alias ApiWikiGetResponse + - Added Type Alias ApiWikisListNextResponse + - Added Type Alias ApiWikisListResponse + - Added Type Alias ApiWikiUpdateResponse + - Added Type Alias AsyncResolverStatus + - Added Type Alias AuthorizationAccessPolicyCreateOrUpdateResponse + - Added Type Alias AuthorizationAccessPolicyGetResponse + - Added Type Alias AuthorizationAccessPolicyListByAuthorizationNextResponse + - Added Type Alias AuthorizationAccessPolicyListByAuthorizationResponse + - Added Type Alias AuthorizationConfirmConsentCodeResponse + - Added Type Alias AuthorizationCreateOrUpdateResponse + - Added Type Alias AuthorizationGetResponse + - Added Type Alias AuthorizationListByAuthorizationProviderNextResponse + - Added Type Alias AuthorizationListByAuthorizationProviderResponse + - Added Type Alias AuthorizationLoginLinksPostResponse + - Added Type Alias AuthorizationProviderCreateOrUpdateResponse + - Added Type Alias AuthorizationProviderGetResponse + - Added Type Alias AuthorizationProviderListByServiceNextResponse + - Added Type Alias AuthorizationProviderListByServiceResponse + - Added Type Alias AuthorizationType + - Added Type Alias DocumentationCreateOrUpdateResponse + - Added Type Alias DocumentationGetEntityTagResponse + - Added Type Alias DocumentationGetResponse + - Added Type Alias DocumentationListByServiceNextResponse + - Added Type Alias DocumentationListByServiceResponse + - Added Type Alias DocumentationUpdateResponse + - Added Type Alias GraphQLApiResolverCreateOrUpdateResponse + - Added Type Alias GraphQLApiResolverGetEntityTagResponse + - Added Type Alias GraphQLApiResolverGetResponse + - Added Type Alias GraphQLApiResolverListByApiNextResponse + - Added Type Alias GraphQLApiResolverListByApiResponse + - Added Type Alias GraphQLApiResolverPolicyCreateOrUpdateResponse + - Added Type Alias GraphQLApiResolverPolicyGetEntityTagResponse + - Added Type Alias GraphQLApiResolverPolicyGetResponse + - Added Type Alias GraphQLApiResolverPolicyListByResolverNextResponse + - Added Type Alias GraphQLApiResolverPolicyListByResolverResponse + - Added Type Alias GraphQLApiResolverUpdateResponse + - Added Type Alias KeyVaultRefreshState + - Added Type Alias NatGatewayState + - Added Type Alias OAuth2GrantType + - Added Type Alias PolicyFragmentContentFormat + - Added Type Alias PolicyFragmentCreateOrUpdateResponse + - Added Type Alias PolicyFragmentGetEntityTagResponse + - Added Type Alias PolicyFragmentGetResponse + - Added Type Alias PolicyFragmentListByServiceNextResponse + - Added Type Alias PolicyFragmentListByServiceResponse + - Added Type Alias PolicyFragmentListReferencesResponse + - Added Type Alias PolicyListByServiceNextResponse + - Added Type Alias PortalConfigCreateOrUpdateResponse + - Added Type Alias PortalConfigGetEntityTagResponse + - Added Type Alias PortalConfigGetResponse + - Added Type Alias PortalConfigListByServiceNextResponse + - Added Type Alias PortalConfigListByServiceResponse + - Added Type Alias PortalConfigUpdateResponse + - Added Type Alias PortalSettingsCspMode + - 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 ProductWikiCreateOrUpdateResponse + - Added Type Alias ProductWikiGetEntityTagResponse + - Added Type Alias ProductWikiGetResponse + - Added Type Alias ProductWikisListNextResponse + - Added Type Alias ProductWikisListResponse + - Added Type Alias ProductWikiUpdateResponse + - 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 TranslateRequiredQueryParametersConduct + - 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 AdditionalLocation has a new optional parameter natGatewayState + - Interface AdditionalLocation has a new optional parameter outboundPublicIPAddresses + - Interface ApiCreateOrUpdateParameter has a new optional parameter translateRequiredQueryParametersConduct + - Interface ApiCreateOrUpdateProperties has a new optional parameter translateRequiredQueryParametersConduct + - Interface ApiManagementServiceBaseProperties has a new optional parameter natGatewayState + - Interface ApiManagementServiceBaseProperties has a new optional parameter outboundPublicIPAddresses + - Interface ApiManagementServiceResource has a new optional parameter natGatewayState + - Interface ApiManagementServiceResource has a new optional parameter outboundPublicIPAddresses + - Interface ApiManagementServiceUpdateParameters has a new optional parameter natGatewayState + - Interface ApiManagementServiceUpdateParameters has a new optional parameter outboundPublicIPAddresses + - Interface AuthenticationSettingsContract has a new optional parameter oAuth2AuthenticationSettings + - Interface AuthenticationSettingsContract has a new optional parameter openidAuthenticationSettings + - Interface AuthorizationServerContract has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerContract has a new optional parameter useInTestConsole + - Interface AuthorizationServerContractProperties has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerContractProperties has a new optional parameter useInTestConsole + - Interface AuthorizationServerUpdateContract has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerUpdateContract has a new optional parameter useInTestConsole + - Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInTestConsole + - Interface BackendBaseParameters has a new optional parameter circuitBreaker + - Interface BackendContract has a new optional parameter circuitBreaker + - Interface BackendUpdateParameters has a new optional parameter circuitBreaker + - Interface IdentityProviderBaseParameters has a new optional parameter clientLibrary + - Interface IdentityProviderContract has a new optional parameter clientLibrary + - Interface IdentityProviderCreateContract has a new optional parameter clientLibrary + - Interface IdentityProviderUpdateParameters has a new optional parameter clientLibrary + - Interface OpenidConnectProviderContract has a new optional parameter useInApiDocumentation + - Interface OpenidConnectProviderContract has a new optional parameter useInTestConsole + - Interface OpenidConnectProviderUpdateContract has a new optional parameter useInApiDocumentation + - Interface OpenidConnectProviderUpdateContract has a new optional parameter useInTestConsole + - Added Enum KnownAuthorizationType + - Added Enum KnownKeyVaultRefreshState + - Added Enum KnownNatGatewayState + - Added Enum KnownOAuth2GrantType + - Added Enum KnownPolicyFragmentContentFormat + - Added Enum KnownPortalSettingsCspMode + - Added Enum KnownTranslateRequiredQueryParametersConduct + - Enum KnownPlatformVersion has a new value Stv21 -### Other Changes +**Breaking Changes** + - Type of parameter versioningScheme of interface ApiVersionSetContractDetails is changed from ApiVersionSetContractDetailsVersioningScheme to VersioningScheme + - Removed Enum KnownApiVersionSetContractDetailsVersioningScheme + + ## 9.0.0 (2023-02-01) **Features** 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 d31dfe25fa38..621ace466488 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "78ec1b99699a4bf44869bd13f1b0ed7d92a99c27", + "commit": "2b81b78eaa83f09cfb720d310684b3ece4bbb0bb", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 3a7ca2c41964..a07dc65b8fa0 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.0.1", + "version": "10.0.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -111,13 +111,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 de73184b9c87..bdd186c770dd 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type AccessIdName = string; @@ -21,7 +21,7 @@ export interface AccessInformationCollection { } // @public -export interface AccessInformationContract extends Resource { +export interface AccessInformationContract extends ProxyResource { enabled?: boolean; idPropertiesId?: string; principalId?: string; @@ -57,6 +57,8 @@ export interface AdditionalLocation { disableGateway?: boolean; readonly gatewayRegionalUrl?: string; location: string; + natGatewayState?: NatGatewayState; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly privateIPAddresses?: string[]; readonly publicIPAddresses?: string[]; @@ -71,7 +73,7 @@ export type AlwaysLog = string; // @public export interface Api { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; + 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; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; @@ -96,7 +98,7 @@ export interface ApiContactInformation { } // @public -export interface ApiContract extends Resource { +export interface ApiContract extends ProxyResource { apiRevision?: string; apiRevisionDescription?: string; apiType?: ApiType; @@ -175,6 +177,7 @@ export interface ApiCreateOrUpdateParameter { subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; subscriptionRequired?: boolean; termsOfServiceUrl?: string; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -183,6 +186,7 @@ export interface ApiCreateOrUpdateParameter { export interface ApiCreateOrUpdateProperties extends ApiContractProperties { format?: ContentFormat; soapApiType?: SoapApiType; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -653,10 +657,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersionSet: ApiVersionSet; // (undocumented) + apiWiki: ApiWiki; + // (undocumented) + apiWikis: ApiWikis; + // (undocumented) + authorization: Authorization; + // (undocumented) + authorizationAccessPolicy: AuthorizationAccessPolicy; + // (undocumented) + authorizationLoginLinks: AuthorizationLoginLinks; + // (undocumented) + authorizationProvider: AuthorizationProvider; + // (undocumented) authorizationServer: AuthorizationServer; // (undocumented) backend: Backend; - beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; + beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise; // (undocumented) cache: Cache_2; @@ -673,6 +689,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) diagnostic: Diagnostic; // (undocumented) + documentation: Documentation; + // (undocumented) emailTemplate: EmailTemplate; // (undocumented) gateway: Gateway; @@ -685,6 +703,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) globalSchema: GlobalSchema; // (undocumented) + graphQLApiResolver: GraphQLApiResolver; + // (undocumented) + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; + // (undocumented) group: Group; // (undocumented) groupUser: GroupUser; @@ -715,6 +737,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyDescription: PolicyDescription; // (undocumented) + policyFragment: PolicyFragment; + // (undocumented) + portalConfig: PortalConfig; + // (undocumented) portalRevision: PortalRevision; // (undocumented) portalSettings: PortalSettings; @@ -725,12 +751,20 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productApi: ProductApi; // (undocumented) + productApiLink: ProductApiLink; + // (undocumented) productGroup: ProductGroup; // (undocumented) + productGroupLink: ProductGroupLink; + // (undocumented) productPolicy: ProductPolicy; // (undocumented) productSubscriptions: ProductSubscriptions; // (undocumented) + productWiki: ProductWiki; + // (undocumented) + productWikis: ProductWikis; + // (undocumented) quotaByCounterKeys: QuotaByCounterKeys; // (undocumented) quotaByPeriodKeys: QuotaByPeriodKeys; @@ -749,6 +783,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; @@ -768,6 +808,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 @@ -777,6 +873,12 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -798,17 +900,19 @@ export type ApiManagementOperationsListResponse = OperationListResult; // @public export interface ApiManagementService { - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; beginApplyNetworkConfigurationUpdatesAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise; - beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; + beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; beginBackupAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise; - beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; + beginMigrateToStv2(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise, ApiManagementServiceMigrateToStv2Response>>; + beginMigrateToStv2AndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise; + beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; beginRestoreAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise; checkNameAvailability(parameters: ApiManagementServiceCheckNameAvailabilityParameters, options?: ApiManagementServiceCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceGetOptionalParams): Promise; @@ -823,6 +927,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +// @public +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends coreClient.OperationOptions { parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; @@ -833,6 +943,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalPar // @public export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceBackupHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceBackupOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -868,7 +984,9 @@ export interface ApiManagementServiceBaseProperties { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -905,6 +1023,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; @@ -986,6 +1109,21 @@ export interface ApiManagementServiceListResult { value: ApiManagementServiceResource[]; } +// @public +export interface ApiManagementServiceMigrateToStv2Headers { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + // @public export interface ApiManagementServiceNameAvailabilityResult { readonly message?: string; @@ -1018,7 +1156,9 @@ export interface ApiManagementServiceResource extends ApimResource { identity?: ApiManagementServiceIdentity; location: string; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1039,6 +1179,12 @@ export interface ApiManagementServiceResource extends ApimResource { zones?: string[]; } +// @public +export interface ApiManagementServiceRestoreHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceRestoreOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1073,6 +1219,11 @@ export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams // @public export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +// @public +export interface ApiManagementServiceUpdateHeaders { + location?: string; +} + // @public export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1097,7 +1248,9 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1475,7 +1628,7 @@ export interface ApiReleaseCollection { } // @public -export interface ApiReleaseContract extends Resource { +export interface ApiReleaseContract extends ProxyResource { apiId?: string; readonly createdDateTime?: Date; notes?: string; @@ -1603,7 +1756,7 @@ export type ApiRevisionListByServiceResponse = ApiRevisionCollection; // @public export interface ApiSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: ApiSchemaDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, options?: ApiSchemaGetOptionalParams): Promise; @@ -1809,7 +1962,7 @@ export interface ApiVersionSetCollection { } // @public -export interface ApiVersionSetContract extends Resource { +export interface ApiVersionSetContract extends ProxyResource { description?: string; displayName?: string; versionHeaderName?: string; @@ -1823,13 +1976,10 @@ export interface ApiVersionSetContractDetails { id?: string; name?: string; versionHeaderName?: string; - versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; + versioningScheme?: VersioningScheme; versionQueryName?: string; } -// @public -export type ApiVersionSetContractDetailsVersioningScheme = string; - // @public export interface ApiVersionSetContractProperties extends ApiVersionSetEntityBase { displayName: string; @@ -1929,2525 +2079,3214 @@ export interface ApiVersionSetUpdateParametersProperties extends ApiVersionSetEn export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & ApiVersionSetContract; // @public -export type AppType = string; +export interface ApiWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: WikiContract, options?: ApiWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ApiWikiUpdateOptionalParams): Promise; +} // @public -export interface ArmIdWrapper { - readonly id?: string; +export interface ApiWikiCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface AssociationContract extends Resource { - provisioningState?: "created"; +export interface ApiWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & WikiContract; // @public -export interface AuthenticationSettingsContract { - oAuth2?: OAuth2AuthenticationSettingsContract; - openid?: OpenIdAuthenticationSettingsContract; +export interface ApiWikiDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationMethod = "HEAD" | "OPTIONS" | "TRACE" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; +export interface ApiWikiGetEntityTagHeaders { + eTag?: string; +} // @public -export interface AuthorizationServer { - createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: AuthorizationServerContract, options?: AuthorizationServerCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: AuthorizationServerDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerListSecretsOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, options?: AuthorizationServerUpdateOptionalParams): Promise; +export interface ApiWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerCollection { - count?: number; - nextLink?: string; - value?: AuthorizationServerContract[]; -} +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; // @public -export interface AuthorizationServerContract extends Resource { - authorizationEndpoint?: string; - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - defaultScope?: string; - description?: string; - displayName?: string; - grantTypes?: GrantType[]; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface ApiWikiGetHeaders { + eTag?: string; } // @public -export interface AuthorizationServerContractBaseProperties { - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - defaultScope?: string; - description?: string; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerContractProperties extends AuthorizationServerContractBaseProperties { - authorizationEndpoint: string; - clientId: string; - clientRegistrationEndpoint: string; - clientSecret?: string; - displayName: string; - grantTypes: GrantType[]; -} +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; // @public -export interface AuthorizationServerCreateOrUpdateHeaders { - eTag?: string; +export interface ApiWikis { + list(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikisListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface AuthorizationServerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface ApiWikisListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; +export type ApiWikisListNextResponse = WikiCollection; // @public -export interface AuthorizationServerDeleteOptionalParams extends coreClient.OperationOptions { +export interface ApiWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface AuthorizationServerGetEntityTagHeaders { +export type ApiWikisListResponse = WikiCollection; + +// @public +export interface ApiWikiUpdateHeaders { eTag?: string; } // @public -export interface AuthorizationServerGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface ApiWikiUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; // @public -export interface AuthorizationServerGetHeaders { - eTag?: string; -} +export type AppType = string; // @public -export interface AuthorizationServerGetOptionalParams extends coreClient.OperationOptions { +export interface ArmIdWrapper { + readonly id?: string; } // @public -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & AuthorizationServerContract; +export interface AssociationContract extends ProxyResource { + provisioningState?: "created"; +} // @public -export interface AuthorizationServerListByServiceNextOptionalParams extends coreClient.OperationOptions { -} +export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; // @public -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +export type AsyncResolverStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; // @public -export interface AuthorizationServerListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface AuthenticationSettingsContract { + oAuth2?: OAuth2AuthenticationSettingsContract; + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; + openid?: OpenIdAuthenticationSettingsContract; + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; } // @public -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export interface Authorization { + confirmConsentCode(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, options?: AuthorizationConfirmConsentCodeOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, options?: AuthorizationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, ifMatch: string, options?: AuthorizationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationGetOptionalParams): Promise; + listByAuthorizationProvider(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface AuthorizationServerListSecretsHeaders { - eTag?: string; +export interface AuthorizationAccessPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, options?: AuthorizationAccessPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, options?: AuthorizationAccessPolicyGetOptionalParams): Promise; + listByAuthorization(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams): PagedAsyncIterableIterator; } // @public -export interface AuthorizationServerListSecretsOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationAccessPolicyCollection { + count?: number; + nextLink?: string; + value?: AuthorizationAccessPolicyContract[]; } // @public -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; +export interface AuthorizationAccessPolicyContract extends ProxyResource { + objectId?: string; + tenantId?: string; +} // @public -export interface AuthorizationServerSecretsContract { - clientSecret?: string; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface AuthorizationServerUpdateContract extends Resource { - authorizationEndpoint?: string; - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - defaultScope?: string; - description?: string; - displayName?: string; - grantTypes?: GrantType[]; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface AuthorizationServerUpdateContractProperties extends AuthorizationServerContractBaseProperties { - authorizationEndpoint?: string; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - displayName?: string; - grantTypes?: GrantType[]; +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerUpdateHeaders { +export interface AuthorizationAccessPolicyGetHeaders { eTag?: string; } // @public -export interface AuthorizationServerUpdateOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & AuthorizationServerContract; +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; // @public -export interface Backend { - createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: BackendDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams): PagedAsyncIterableIterator; - reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendReconnectOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: BackendUpdateOptionalParams): Promise; +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface BackendAuthorizationHeaderCredentials { - parameter: string; - scheme: string; -} +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; // @public -export interface BackendBaseParameters { - credentials?: BackendCredentialsContract; - description?: string; - properties?: BackendProperties; - proxy?: BackendProxyContract; - resourceId?: string; - title?: string; - tls?: BackendTlsProperties; +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface BackendCollection { +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; + +// @public +export interface AuthorizationCollection { count?: number; nextLink?: string; - value?: BackendContract[]; -} - -// @public -export interface BackendContract extends Resource { - credentials?: BackendCredentialsContract; - description?: string; - properties?: BackendProperties; - protocol?: BackendProtocol; - proxy?: BackendProxyContract; - resourceId?: string; - title?: string; - tls?: BackendTlsProperties; - url?: string; + value?: AuthorizationContract[]; } // @public -export interface BackendContractProperties extends BackendBaseParameters { - protocol: BackendProtocol; - url: string; +export interface AuthorizationConfirmConsentCodeHeaders { + eTag?: string; } // @public -export interface BackendCreateOrUpdateHeaders { - eTag?: string; +export interface AuthorizationConfirmConsentCodeOptionalParams extends coreClient.OperationOptions { } // @public -export interface BackendCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface AuthorizationConfirmConsentCodeRequestContract { + consentCode?: string; } // @public -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & BackendContract; +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; // @public -export interface BackendCredentialsContract { - authorization?: BackendAuthorizationHeaderCredentials; - certificate?: string[]; - certificateIds?: string[]; - header?: { - [propertyName: string]: string[]; - }; - query?: { - [propertyName: string]: string[]; +export interface AuthorizationContract extends ProxyResource { + authorizationType?: AuthorizationType; + error?: AuthorizationError; + oAuth2GrantType?: OAuth2GrantType; + parameters?: { + [propertyName: string]: string; }; + status?: string; } // @public -export interface BackendDeleteOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface BackendGetEntityTagHeaders { - eTag?: string; +export interface AuthorizationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface BackendGetEntityTagOptionalParams extends coreClient.OperationOptions { +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +// @public +export interface AuthorizationDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export interface AuthorizationError { + code?: string; + message?: string; +} // @public -export interface BackendGetHeaders { +export interface AuthorizationGetHeaders { eTag?: string; } // @public -export interface BackendGetOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationGetOptionalParams extends coreClient.OperationOptions { } // @public -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type AuthorizationGetResponse = AuthorizationGetHeaders & AuthorizationContract; // @public -export interface BackendListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationListByAuthorizationProviderNextOptionalParams extends coreClient.OperationOptions { } // @public -export type BackendListByServiceNextResponse = BackendCollection; +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; // @public -export interface BackendListByServiceOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationListByAuthorizationProviderOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type BackendListByServiceResponse = BackendCollection; +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; // @public -export interface BackendProperties { - serviceFabricCluster?: BackendServiceFabricClusterProperties; +export interface AuthorizationLoginLinks { + post(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, options?: AuthorizationLoginLinksPostOptionalParams): Promise; } // @public -export type BackendProtocol = string; +export interface AuthorizationLoginLinksPostHeaders { + eTag?: string; +} // @public -export interface BackendProxyContract { - password?: string; - url: string; - username?: string; +export interface AuthorizationLoginLinksPostOptionalParams extends coreClient.OperationOptions { } // @public -export interface BackendReconnectContract extends Resource { - after?: string; -} +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; // @public -export interface BackendReconnectOptionalParams extends coreClient.OperationOptions { - parameters?: BackendReconnectContract; +export interface AuthorizationLoginRequestContract { + postLoginRedirectUrl?: string; } // @public -export interface BackendServiceFabricClusterProperties { - clientCertificateId?: string; - clientCertificatethumbprint?: string; - managementEndpoints: string[]; - maxPartitionResolutionRetries?: number; - serverCertificateThumbprints?: string[]; - serverX509Names?: X509CertificateName[]; +export interface AuthorizationLoginResponseContract { + loginLink?: string; } // @public -export interface BackendTlsProperties { - validateCertificateChain?: boolean; - validateCertificateName?: boolean; -} +export type AuthorizationMethod = "HEAD" | "OPTIONS" | "TRACE" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; // @public -export interface BackendUpdateHeaders { - eTag?: string; +export interface AuthorizationProvider { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, options?: AuthorizationProviderCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, ifMatch: string, options?: AuthorizationProviderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationProviderGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface BackendUpdateOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationProviderCollection { + nextLink?: string; + value?: AuthorizationProviderContract[]; } // @public -export interface BackendUpdateParameterProperties extends BackendBaseParameters { - protocol?: BackendProtocol; - url?: string; +export interface AuthorizationProviderContract extends ProxyResource { + displayName?: string; + identityProvider?: string; + oauth2?: AuthorizationProviderOAuth2Settings; } // @public -export interface BackendUpdateParameters { - credentials?: BackendCredentialsContract; - description?: string; - properties?: BackendProperties; - protocol?: BackendProtocol; - proxy?: BackendProxyContract; - resourceId?: string; - title?: string; - tls?: BackendTlsProperties; - url?: string; +export interface AuthorizationProviderCreateOrUpdateHeaders { + eTag?: string; } // @public -export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; +export interface AuthorizationProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} // @public -export type BearerTokenSendingMethod = string; +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; // @public -export type BearerTokenSendingMethods = string; +export interface AuthorizationProviderDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface BodyDiagnosticSettings { - bytes?: number; +export interface AuthorizationProviderGetHeaders { + eTag?: string; } // @public -interface Cache_2 { - createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: CacheContract, options?: CacheCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, options?: CacheDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, options?: CacheUpdateOptionalParams): Promise; +export interface AuthorizationProviderGetOptionalParams extends coreClient.OperationOptions { } -export { Cache_2 as Cache } // @public -export interface CacheCollection { - count?: number; - nextLink?: string; - value?: CacheContract[]; -} +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & AuthorizationProviderContract; // @public -export interface CacheContract extends Resource { - connectionString?: string; - description?: string; - resourceId?: string; - useFromLocation?: string; +export interface AuthorizationProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface CacheCreateOrUpdateHeaders { - eTag?: string; -} +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; // @public -export interface CacheCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface AuthorizationProviderListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & CacheContract; +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; // @public -export interface CacheDeleteOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationProviderOAuth2GrantTypes { + authorizationCode?: { + [propertyName: string]: string; + }; + clientCredentials?: { + [propertyName: string]: string; + }; } // @public -export interface CacheGetEntityTagHeaders { - eTag?: string; +export interface AuthorizationProviderOAuth2Settings { + grantTypes?: AuthorizationProviderOAuth2GrantTypes; + redirectUrl?: string; } // @public -export interface CacheGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServer { + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: AuthorizationServerContract, options?: AuthorizationServerCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: AuthorizationServerDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerListSecretsOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, options?: AuthorizationServerUpdateOptionalParams): Promise; } // @public -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; - -// @public -export interface CacheGetHeaders { - eTag?: string; +export interface AuthorizationServerCollection { + count?: number; + nextLink?: string; + value?: AuthorizationServerContract[]; } // @public -export interface CacheGetOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServerContract extends ProxyResource { + authorizationEndpoint?: string; + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + defaultScope?: string; + description?: string; + displayName?: string; + grantTypes?: GrantType[]; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public -export type CacheGetResponse = CacheGetHeaders & CacheContract; +export interface AuthorizationServerContractBaseProperties { + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + defaultScope?: string; + description?: string; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; +} // @public -export interface CacheListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServerContractProperties extends AuthorizationServerContractBaseProperties { + authorizationEndpoint: string; + clientId: string; + clientRegistrationEndpoint: string; + clientSecret?: string; + displayName: string; + grantTypes: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public -export type CacheListByServiceNextResponse = CacheCollection; +export interface AuthorizationServerCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface CacheListByServiceOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; +export interface AuthorizationServerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type CacheListByServiceResponse = CacheCollection; +export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; // @public -export interface CacheUpdateHeaders { - eTag?: string; +export interface AuthorizationServerDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface CacheUpdateOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServerGetEntityTagHeaders { + eTag?: string; } // @public -export interface CacheUpdateParameters { - connectionString?: string; - description?: string; - resourceId?: string; - useFromLocation?: string; +export interface AuthorizationServerGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; // @public -export interface Certificate { - createOrUpdate(resourceGroupName: string, serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, options?: CertificateCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, certificateId: string, ifMatch: string, options?: CertificateDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: CertificateListByServiceOptionalParams): PagedAsyncIterableIterator; - refreshSecret(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateRefreshSecretOptionalParams): Promise; +export interface AuthorizationServerGetHeaders { + eTag?: string; } // @public -export interface CertificateCollection { - count?: number; - nextLink?: string; - value?: CertificateContract[]; +export interface AuthorizationServerGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface CertificateConfiguration { - certificate?: CertificateInformation; - certificatePassword?: string; - encodedCertificate?: string; - storeName: CertificateConfigurationStoreName; +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & AuthorizationServerContract; + +// @public +export interface AuthorizationServerListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type CertificateConfigurationStoreName = string; +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; // @public -export interface CertificateContract extends Resource { - expirationDate?: Date; - keyVault?: KeyVaultContractProperties; - subject?: string; - thumbprint?: string; +export interface AuthorizationServerListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface CertificateCreateOrUpdateHeaders { +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; + +// @public +export interface AuthorizationServerListSecretsHeaders { eTag?: string; } // @public -export interface CertificateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface AuthorizationServerListSecretsOptionalParams extends coreClient.OperationOptions { } // @public -export interface CertificateCreateOrUpdateParameters { - data?: string; - keyVault?: KeyVaultContractCreateProperties; - password?: string; +export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; + +// @public +export interface AuthorizationServerSecretsContract { + clientSecret?: string; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; } // @public -export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & CertificateContract; +export interface AuthorizationServerUpdateContract extends ProxyResource { + authorizationEndpoint?: string; + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + defaultScope?: string; + description?: string; + displayName?: string; + grantTypes?: GrantType[]; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} // @public -export interface CertificateDeleteOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServerUpdateContractProperties extends AuthorizationServerContractBaseProperties { + authorizationEndpoint?: string; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + displayName?: string; + grantTypes?: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public -export interface CertificateGetEntityTagHeaders { +export interface AuthorizationServerUpdateHeaders { eTag?: string; } // @public -export interface CertificateGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationServerUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; +export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & AuthorizationServerContract; // @public -export interface CertificateGetHeaders { - eTag?: string; -} +export type AuthorizationType = string; // @public -export interface CertificateGetOptionalParams extends coreClient.OperationOptions { +export interface Backend { + createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: BackendDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams): PagedAsyncIterableIterator; + reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendReconnectOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: BackendUpdateOptionalParams): Promise; } // @public -export type CertificateGetResponse = CertificateGetHeaders & CertificateContract; +export interface BackendAuthorizationHeaderCredentials { + parameter: string; + scheme: string; +} // @public -export interface CertificateInformation { - expiry: Date; - subject: string; - thumbprint: string; +export interface BackendBaseParameters { + circuitBreaker?: BackendCircuitBreaker; + credentials?: BackendCredentialsContract; + description?: string; + properties?: BackendProperties; + proxy?: BackendProxyContract; + resourceId?: string; + title?: string; + tls?: BackendTlsProperties; } // @public -export interface CertificateListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface BackendCircuitBreaker { + rules?: CircuitBreakerRule[]; } // @public -export type CertificateListByServiceNextResponse = CertificateCollection; +export interface BackendCollection { + count?: number; + nextLink?: string; + value?: BackendContract[]; +} // @public -export interface CertificateListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - isKeyVaultRefreshFailed?: boolean; - skip?: number; - top?: number; +export interface BackendContract extends ProxyResource { + circuitBreaker?: BackendCircuitBreaker; + credentials?: BackendCredentialsContract; + description?: string; + properties?: BackendProperties; + protocol?: BackendProtocol; + proxy?: BackendProxyContract; + resourceId?: string; + title?: string; + tls?: BackendTlsProperties; + url?: string; } // @public -export type CertificateListByServiceResponse = CertificateCollection; +export interface BackendContractProperties extends BackendBaseParameters { + protocol: BackendProtocol; + url: string; +} // @public -export interface CertificateRefreshSecretHeaders { +export interface BackendCreateOrUpdateHeaders { eTag?: string; } // @public -export interface CertificateRefreshSecretOptionalParams extends coreClient.OperationOptions { +export interface BackendCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & CertificateContract; +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & BackendContract; // @public -export type CertificateSource = string; +export interface BackendCredentialsContract { + authorization?: BackendAuthorizationHeaderCredentials; + certificate?: string[]; + certificateIds?: string[]; + header?: { + [propertyName: string]: string[]; + }; + query?: { + [propertyName: string]: string[]; + }; +} // @public -export type CertificateStatus = string; +export interface BackendDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export type ClientAuthenticationMethod = string; +export interface BackendGetEntityTagHeaders { + eTag?: string; +} // @public -export interface ClientSecretContract { - clientSecret?: string; +export interface BackendGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type ConfigurationIdName = string; +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; // @public -export type Confirmation = string; +export interface BackendGetHeaders { + eTag?: string; +} // @public -export type ConnectionStatus = string; +export interface BackendGetOptionalParams extends coreClient.OperationOptions { +} // @public -export type ConnectivityCheckProtocol = string; +export type BackendGetResponse = BackendGetHeaders & BackendContract; // @public -export interface ConnectivityCheckRequest { - destination: ConnectivityCheckRequestDestination; - preferredIPVersion?: PreferredIPVersion; - protocol?: ConnectivityCheckProtocol; - protocolConfiguration?: ConnectivityCheckRequestProtocolConfiguration; - source: ConnectivityCheckRequestSource; +export interface BackendListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ConnectivityCheckRequestDestination { - address: string; - port: number; -} +export type BackendListByServiceNextResponse = BackendCollection; // @public -export interface ConnectivityCheckRequestProtocolConfiguration { - httpConfiguration?: ConnectivityCheckRequestProtocolConfigurationHttpConfiguration; +export interface BackendListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface ConnectivityCheckRequestProtocolConfigurationHttpConfiguration { - headers?: HttpHeader[]; - method?: Method; - validStatusCodes?: number[]; -} +export type BackendListByServiceResponse = BackendCollection; // @public -export interface ConnectivityCheckRequestSource { - instance?: number; - region: string; +export interface BackendProperties { + serviceFabricCluster?: BackendServiceFabricClusterProperties; } // @public -export interface ConnectivityCheckResponse { - readonly avgLatencyInMs?: number; - readonly connectionStatus?: ConnectionStatus; - readonly hops?: ConnectivityHop[]; - readonly maxLatencyInMs?: number; - readonly minLatencyInMs?: number; - readonly probesFailed?: number; - readonly probesSent?: number; -} +export type BackendProtocol = string; // @public -export interface ConnectivityHop { - readonly address?: string; - readonly id?: string; - readonly issues?: ConnectivityIssue[]; - readonly nextHopIds?: string[]; - readonly resourceId?: string; - readonly type?: string; +export interface BackendProxyContract { + password?: string; + url: string; + username?: string; } // @public -export interface ConnectivityIssue { - readonly context?: { - [propertyName: string]: string; - }[]; - readonly origin?: Origin; - readonly severity?: Severity; - readonly type?: IssueType; +export interface BackendReconnectContract extends ProxyResource { + after?: string; } // @public -export interface ConnectivityStatusContract { - error?: string; - isOptional: boolean; - lastStatusChange: Date; - lastUpdated: Date; - name: string; - resourceType: string; - status: ConnectivityStatusType; +export interface BackendReconnectOptionalParams extends coreClient.OperationOptions { + parameters?: BackendReconnectContract; } // @public -export type ConnectivityStatusType = string; - -// @public -export type ContentFormat = string; +export interface BackendServiceFabricClusterProperties { + clientCertificateId?: string; + clientCertificatethumbprint?: string; + managementEndpoints: string[]; + maxPartitionResolutionRetries?: number; + serverCertificateThumbprints?: string[]; + serverX509Names?: X509CertificateName[]; +} // @public -export interface ContentItem { - createOrUpdate(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, parameters: ContentItemContract, options?: ContentItemCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, ifMatch: string, options?: ContentItemDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface BackendTlsProperties { + validateCertificateChain?: boolean; + validateCertificateName?: boolean; } // @public -export interface ContentItemCollection { - readonly nextLink?: string; - readonly value?: ContentItemContract[]; +export interface BackendUpdateHeaders { + eTag?: string; } // @public -export interface ContentItemContract extends Resource { - properties?: { - [propertyName: string]: any; - }; +export interface BackendUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface ContentItemCreateOrUpdateHeaders { - eTag?: string; +export interface BackendUpdateParameterProperties extends BackendBaseParameters { + protocol?: BackendProtocol; + url?: string; } // @public -export interface ContentItemCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface BackendUpdateParameters { + circuitBreaker?: BackendCircuitBreaker; + credentials?: BackendCredentialsContract; + description?: string; + properties?: BackendProperties; + protocol?: BackendProtocol; + proxy?: BackendProxyContract; + resourceId?: string; + title?: string; + tls?: BackendTlsProperties; + url?: string; } // @public -export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & ContentItemContract; +export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; // @public -export interface ContentItemDeleteOptionalParams extends coreClient.OperationOptions { -} +export type BearerTokenSendingMethod = string; // @public -export interface ContentItemGetEntityTagHeaders { - eTag?: string; -} +export type BearerTokenSendingMethods = string; // @public -export interface ContentItemGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface BodyDiagnosticSettings { + bytes?: number; } // @public -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; +interface Cache_2 { + createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: CacheContract, options?: CacheCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, options?: CacheDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options?: CacheGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, options?: CacheUpdateOptionalParams): Promise; +} +export { Cache_2 as Cache } // @public -export interface ContentItemGetHeaders { - eTag?: string; +export interface CacheCollection { + count?: number; + nextLink?: string; + value?: CacheContract[]; } // @public -export interface ContentItemGetOptionalParams extends coreClient.OperationOptions { +export interface CacheContract extends ProxyResource { + connectionString?: string; + description?: string; + resourceId?: string; + useFromLocation?: string; } // @public -export type ContentItemGetResponse = ContentItemGetHeaders & ContentItemContract; +export interface CacheCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface ContentItemListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface CacheCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type ContentItemListByServiceNextResponse = ContentItemCollection; +export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & CacheContract; // @public -export interface ContentItemListByServiceOptionalParams extends coreClient.OperationOptions { +export interface CacheDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type ContentItemListByServiceResponse = ContentItemCollection; - -// @public -export interface ContentType { - createOrUpdate(resourceGroupName: string, serviceName: string, contentTypeId: string, parameters: ContentTypeContract, options?: ContentTypeCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, contentTypeId: string, ifMatch: string, options?: ContentTypeDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, contentTypeId: string, options?: ContentTypeGetOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: ContentTypeListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface CacheGetEntityTagHeaders { + eTag?: string; } // @public -export interface ContentTypeCollection { - readonly nextLink?: string; - readonly value?: ContentTypeContract[]; +export interface CacheGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface ContentTypeContract extends Resource { - description?: string; - idPropertiesId?: string; - namePropertiesName?: string; - schema?: Record; - version?: string; -} +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; // @public -export interface ContentTypeCreateOrUpdateHeaders { +export interface CacheGetHeaders { eTag?: string; } // @public -export interface ContentTypeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface CacheGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & ContentTypeContract; +export type CacheGetResponse = CacheGetHeaders & CacheContract; // @public -export interface ContentTypeDeleteOptionalParams extends coreClient.OperationOptions { +export interface CacheListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ContentTypeGetHeaders { - eTag?: string; -} +export type CacheListByServiceNextResponse = CacheCollection; // @public -export interface ContentTypeGetOptionalParams extends coreClient.OperationOptions { +export interface CacheListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; } // @public -export type ContentTypeGetResponse = ContentTypeGetHeaders & ContentTypeContract; +export type CacheListByServiceResponse = CacheCollection; // @public -export interface ContentTypeListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface CacheUpdateHeaders { + eTag?: string; } // @public -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +export interface CacheUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ContentTypeListByServiceOptionalParams extends coreClient.OperationOptions { +export interface CacheUpdateParameters { + connectionString?: string; + description?: string; + resourceId?: string; + useFromLocation?: string; } // @public -export type ContentTypeListByServiceResponse = ContentTypeCollection; +export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; // @public -export type CreatedByType = string; - -// @public (undocumented) -export interface DataMasking { - headers?: DataMaskingEntity[]; - queryParams?: DataMaskingEntity[]; -} - -// @public (undocumented) -export interface DataMaskingEntity { - mode?: DataMaskingMode; - value?: string; +export interface Certificate { + createOrUpdate(resourceGroupName: string, serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, options?: CertificateCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, certificateId: string, ifMatch: string, options?: CertificateDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: CertificateListByServiceOptionalParams): PagedAsyncIterableIterator; + refreshSecret(resourceGroupName: string, serviceName: string, certificateId: string, options?: CertificateRefreshSecretOptionalParams): Promise; } // @public -export type DataMaskingMode = string; +export interface CertificateCollection { + count?: number; + nextLink?: string; + value?: CertificateContract[]; +} // @public -export interface DelegationSettings { - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, options?: DelegationSettingsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, options?: DelegationSettingsGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, options?: DelegationSettingsGetEntityTagOptionalParams): Promise; - listSecrets(resourceGroupName: string, serviceName: string, options?: DelegationSettingsListSecretsOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, options?: DelegationSettingsUpdateOptionalParams): Promise; +export interface CertificateConfiguration { + certificate?: CertificateInformation; + certificatePassword?: string; + encodedCertificate?: string; + storeName: CertificateConfigurationStoreName; } // @public -export interface DelegationSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; -} +export type CertificateConfigurationStoreName = string; // @public -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export interface CertificateContract extends ProxyResource { + expirationDate?: Date; + keyVault?: KeyVaultContractProperties; + subject?: string; + thumbprint?: string; +} // @public -export interface DelegationSettingsGetEntityTagHeaders { +export interface CertificateCreateOrUpdateHeaders { eTag?: string; } // @public -export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface CertificateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; +export interface CertificateCreateOrUpdateParameters { + data?: string; + keyVault?: KeyVaultContractCreateProperties; + password?: string; +} // @public -export interface DelegationSettingsGetHeaders { - eTag?: string; -} +export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & CertificateContract; // @public -export interface DelegationSettingsGetOptionalParams extends coreClient.OperationOptions { +export interface CertificateDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & PortalDelegationSettings; +export interface CertificateGetEntityTagHeaders { + eTag?: string; +} // @public -export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions { +export interface CertificateGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; // @public -export interface DelegationSettingsUpdateOptionalParams extends coreClient.OperationOptions { +export interface CertificateGetHeaders { + eTag?: string; } // @public -export interface DeletedServiceContract extends Resource { - deletionDate?: Date; - readonly location?: string; - scheduledPurgeDate?: Date; - serviceId?: string; +export interface CertificateGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface DeletedServices { - beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; - beginPurgeAndWait(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise; - getByName(serviceName: string, location: string, options?: DeletedServicesGetByNameOptionalParams): Promise; - listBySubscription(options?: DeletedServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} +export type CertificateGetResponse = CertificateGetHeaders & CertificateContract; // @public -export interface DeletedServicesCollection { - readonly nextLink?: string; - readonly value?: DeletedServiceContract[]; +export interface CertificateInformation { + expiry: Date; + subject: string; + thumbprint: string; } // @public -export interface DeletedServicesGetByNameOptionalParams extends coreClient.OperationOptions { +export interface CertificateListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +export type CertificateListByServiceNextResponse = CertificateCollection; // @public -export interface DeletedServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface CertificateListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: boolean; + skip?: number; + top?: number; } // @public -export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; +export type CertificateListByServiceResponse = CertificateCollection; // @public -export interface DeletedServicesListBySubscriptionOptionalParams extends coreClient.OperationOptions { +export interface CertificateRefreshSecretHeaders { + eTag?: string; } // @public -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +export interface CertificateRefreshSecretOptionalParams extends coreClient.OperationOptions { +} // @public -export interface DeletedServicesPurgeOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & CertificateContract; // @public -export interface DeployConfigurationParameters { - branch?: string; - force?: boolean; -} +export type CertificateSource = string; // @public -export interface Diagnostic { - createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: DiagnosticDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, options?: DiagnosticUpdateOptionalParams): Promise; -} +export type CertificateStatus = string; // @public -export interface DiagnosticCollection { +export interface CircuitBreakerFailureCondition { count?: number; - nextLink?: string; - value?: DiagnosticContract[]; + errorReasons?: string[]; + interval?: string; + percentage?: number; + statusCodeRanges?: FailureStatusCodeRange[]; } // @public -export interface DiagnosticContract extends Resource { - alwaysLog?: AlwaysLog; - backend?: PipelineDiagnosticSettings; - frontend?: PipelineDiagnosticSettings; - httpCorrelationProtocol?: HttpCorrelationProtocol; - logClientIp?: boolean; - loggerId?: string; - metrics?: boolean; - operationNameFormat?: OperationNameFormat; - sampling?: SamplingSettings; - verbosity?: Verbosity; +export interface CircuitBreakerRule { + failureCondition?: CircuitBreakerFailureCondition; + name?: string; + tripDuration?: string; } // @public -export interface DiagnosticCreateOrUpdateHeaders { - eTag?: string; -} +export type ClientAuthenticationMethod = string; // @public -export interface DiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface ClientSecretContract { + clientSecret?: string; } // @public -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & DiagnosticContract; +export type ConfigurationIdName = string; // @public -export interface DiagnosticDeleteOptionalParams extends coreClient.OperationOptions { -} +export type Confirmation = string; // @public -export interface DiagnosticGetEntityTagHeaders { - eTag?: string; -} +export type ConnectionStatus = string; // @public -export interface DiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { -} +export type ConnectivityCheckProtocol = string; // @public -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +export interface ConnectivityCheckRequest { + destination: ConnectivityCheckRequestDestination; + preferredIPVersion?: PreferredIPVersion; + protocol?: ConnectivityCheckProtocol; + protocolConfiguration?: ConnectivityCheckRequestProtocolConfiguration; + source: ConnectivityCheckRequestSource; +} // @public -export interface DiagnosticGetHeaders { - eTag?: string; +export interface ConnectivityCheckRequestDestination { + address: string; + port: number; } // @public -export interface DiagnosticGetOptionalParams extends coreClient.OperationOptions { +export interface ConnectivityCheckRequestProtocolConfiguration { + httpConfiguration?: ConnectivityCheckRequestProtocolConfigurationHttpConfiguration; } // @public -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +export interface ConnectivityCheckRequestProtocolConfigurationHttpConfiguration { + headers?: HttpHeader[]; + method?: Method; + validStatusCodes?: number[]; +} // @public -export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface ConnectivityCheckRequestSource { + instance?: number; + region: string; } // @public -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +export interface ConnectivityCheckResponse { + readonly avgLatencyInMs?: number; + readonly connectionStatus?: ConnectionStatus; + readonly hops?: ConnectivityHop[]; + readonly maxLatencyInMs?: number; + readonly minLatencyInMs?: number; + readonly probesFailed?: number; + readonly probesSent?: number; +} // @public -export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface ConnectivityHop { + readonly address?: string; + readonly id?: string; + readonly issues?: ConnectivityIssue[]; + readonly nextHopIds?: string[]; + readonly resourceId?: string; + readonly type?: string; } // @public -export type DiagnosticListByServiceResponse = DiagnosticCollection; +export interface ConnectivityIssue { + readonly context?: { + [propertyName: string]: string; + }[]; + readonly origin?: Origin; + readonly severity?: Severity; + readonly type?: IssueType; +} // @public -export interface DiagnosticUpdateHeaders { - eTag?: string; +export interface ConnectivityStatusContract { + error?: string; + isOptional: boolean; + lastStatusChange: Date; + lastUpdated: Date; + name: string; + resourceType: string; + status: ConnectivityStatusType; } // @public -export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOptions { -} +export type ConnectivityStatusType = string; // @public -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & DiagnosticContract; +export type ContentFormat = string; // @public -export interface EmailTemplate { - createOrUpdate(resourceGroupName: string, serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, templateName: TemplateName, ifMatch: string, options?: EmailTemplateDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, templateName: TemplateName, options?: EmailTemplateGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, templateName: TemplateName, options?: EmailTemplateGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateUpdateOptionalParams): Promise; +export interface ContentItem { + createOrUpdate(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, parameters: ContentItemContract, options?: ContentItemCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, ifMatch: string, options?: ContentItemDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, contentTypeId: string, contentItemId: string, options?: ContentItemGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface EmailTemplateCollection { - count?: number; - nextLink?: string; - value?: EmailTemplateContract[]; +export interface ContentItemCollection { + readonly nextLink?: string; + readonly value?: ContentItemContract[]; } // @public -export interface EmailTemplateContract extends Resource { - body?: string; - description?: string; - readonly isDefault?: boolean; - parameters?: EmailTemplateParametersContractProperties[]; - subject?: string; - title?: string; +export interface ContentItemContract extends ProxyResource { + properties?: { + [propertyName: string]: any; + }; } // @public -export interface EmailTemplateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface ContentItemCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ContentItemCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; +export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & ContentItemContract; // @public -export interface EmailTemplateDeleteOptionalParams extends coreClient.OperationOptions { +export interface ContentItemDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface EmailTemplateGetEntityTagHeaders { +export interface ContentItemGetEntityTagHeaders { eTag?: string; } // @public -export interface EmailTemplateGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface ContentItemGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; // @public -export interface EmailTemplateGetHeaders { +export interface ContentItemGetHeaders { eTag?: string; } // @public -export interface EmailTemplateGetOptionalParams extends coreClient.OperationOptions { +export interface ContentItemGetOptionalParams extends coreClient.OperationOptions { } // @public -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & EmailTemplateContract; +export type ContentItemGetResponse = ContentItemGetHeaders & ContentItemContract; // @public -export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface ContentItemListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +export type ContentItemListByServiceNextResponse = ContentItemCollection; // @public -export interface EmailTemplateListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface ContentItemListByServiceOptionalParams extends coreClient.OperationOptions { } // @public -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; +export type ContentItemListByServiceResponse = ContentItemCollection; // @public -export interface EmailTemplateParametersContractProperties { - description?: string; - name?: string; - title?: string; +export interface ContentType { + createOrUpdate(resourceGroupName: string, serviceName: string, contentTypeId: string, parameters: ContentTypeContract, options?: ContentTypeCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, contentTypeId: string, ifMatch: string, options?: ContentTypeDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, contentTypeId: string, options?: ContentTypeGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: ContentTypeListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface EmailTemplateUpdateHeaders { - eTag?: string; +export interface ContentTypeCollection { + readonly nextLink?: string; + readonly value?: ContentTypeContract[]; } // @public -export interface EmailTemplateUpdateOptionalParams extends coreClient.OperationOptions { +export interface ContentTypeContract extends ProxyResource { + description?: string; + idPropertiesId?: string; + namePropertiesName?: string; + schema?: Record; + version?: string; } // @public -export interface EmailTemplateUpdateParameters { - body?: string; - description?: string; - parameters?: EmailTemplateParametersContractProperties[]; - subject?: string; - title?: string; +export interface ContentTypeCreateOrUpdateHeaders { + eTag?: string; } // @public -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & EmailTemplateContract; +export interface ContentTypeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} // @public -export interface EndpointDependency { - domainName?: string; - endpointDetails?: EndpointDetail[]; -} +export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & ContentTypeContract; // @public -export interface EndpointDetail { - port?: number; - region?: string; +export interface ContentTypeDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface ErrorFieldContract { - code?: string; - message?: string; - target?: string; +export interface ContentTypeGetHeaders { + eTag?: string; } // @public -export interface ErrorResponse { - code?: string; - details?: ErrorFieldContract[]; - message?: string; +export interface ContentTypeGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ErrorResponseBody { - code?: string; - details?: ErrorFieldContract[]; - message?: string; +export type ContentTypeGetResponse = ContentTypeGetHeaders & ContentTypeContract; + +// @public +export interface ContentTypeListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ExportApi = string; +export type ContentTypeListByServiceNextResponse = ContentTypeCollection; // @public -export type ExportFormat = string; +export interface ContentTypeListByServiceOptionalParams extends coreClient.OperationOptions { +} // @public -export type ExportResultFormat = string; +export type ContentTypeListByServiceResponse = ContentTypeCollection; // @public -export interface Gateway { - createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, options?: GatewayDeleteOptionalParams): Promise; - 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; - listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; - listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): 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; +export type CreatedByType = string; + +// @public (undocumented) +export interface DataMasking { + headers?: DataMaskingEntity[]; + queryParams?: DataMaskingEntity[]; } -// @public -export interface GatewayApi { - createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiDeleteOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayApiListByServiceOptionalParams): PagedAsyncIterableIterator; +// @public (undocumented) +export interface DataMaskingEntity { + mode?: DataMaskingMode; + value?: string; } // @public -export interface GatewayApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - parameters?: AssociationContract; -} +export type DataMaskingMode = string; // @public -export type GatewayApiCreateOrUpdateResponse = ApiContract; +export interface DelegationSettings { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, options?: DelegationSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, options?: DelegationSettingsGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, options?: DelegationSettingsGetEntityTagOptionalParams): Promise; + listSecrets(resourceGroupName: string, serviceName: string, options?: DelegationSettingsListSecretsOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, options?: DelegationSettingsUpdateOptionalParams): Promise; +} // @public -export interface GatewayApiDeleteOptionalParams extends coreClient.OperationOptions { +export interface DelegationSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface GatewayApiGetEntityTagHeaders { +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; + +// @public +export interface DelegationSettingsGetEntityTagHeaders { eTag?: string; } // @public -export interface GatewayApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; +export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; // @public -export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface DelegationSettingsGetHeaders { + eTag?: string; } // @public -export type GatewayApiListByServiceNextResponse = ApiCollection; +export interface DelegationSettingsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface GatewayApiListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & PortalDelegationSettings; + +// @public +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayApiListByServiceResponse = ApiCollection; +export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; // @public -export interface GatewayCertificateAuthority { - createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, ifMatch: string, options?: GatewayCertificateAuthorityDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, options?: GatewayCertificateAuthorityGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, options?: GatewayCertificateAuthorityGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayCertificateAuthorityListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface DelegationSettingsUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayCertificateAuthorityCollection { - readonly nextLink?: string; - readonly value?: GatewayCertificateAuthorityContract[]; +export interface DeletedServiceContract extends ProxyResource { + deletionDate?: Date; + readonly location?: string; + scheduledPurgeDate?: Date; + serviceId?: string; } // @public -export interface GatewayCertificateAuthorityContract extends Resource { - isTrusted?: boolean; +export interface DeletedServices { + beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; + beginPurgeAndWait(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise; + getByName(serviceName: string, location: string, options?: DeletedServicesGetByNameOptionalParams): Promise; + listBySubscription(options?: DeletedServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } // @public -export interface GatewayCertificateAuthorityCreateOrUpdateHeaders { - eTag?: string; +export interface DeletedServicesCollection { + readonly nextLink?: string; + readonly value?: DeletedServiceContract[]; } // @public -export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface DeletedServicesGetByNameOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & GatewayCertificateAuthorityContract; +export type DeletedServicesGetByNameResponse = DeletedServiceContract; // @public -export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions { +export interface DeletedServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayCertificateAuthorityGetEntityTagHeaders { - eTag?: string; -} +export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; // @public -export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface DeletedServicesListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; +export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; // @public -export interface GatewayCertificateAuthorityGetHeaders { - eTag?: string; +export interface DeletedServicesPurgeHeaders { + // (undocumented) + location?: string; } // @public -export interface GatewayCertificateAuthorityGetOptionalParams extends coreClient.OperationOptions { +export interface DeletedServicesPurgeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & GatewayCertificateAuthorityContract; +export interface DeployConfigurationParameters { + branch?: string; + force?: boolean; +} // @public -export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface Diagnostic { + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: DiagnosticDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: DiagnosticGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, options?: DiagnosticUpdateOptionalParams): Promise; } // @public -export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; +export interface DiagnosticCollection { + count?: number; + nextLink?: string; + value?: DiagnosticContract[]; +} // @public -export interface GatewayCertificateAuthorityListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface DiagnosticContract extends ProxyResource { + alwaysLog?: AlwaysLog; + backend?: PipelineDiagnosticSettings; + frontend?: PipelineDiagnosticSettings; + httpCorrelationProtocol?: HttpCorrelationProtocol; + logClientIp?: boolean; + loggerId?: string; + metrics?: boolean; + operationNameFormat?: OperationNameFormat; + sampling?: SamplingSettings; + verbosity?: Verbosity; } // @public -export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; +export interface DiagnosticCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface GatewayCollection { - count?: number; - readonly nextLink?: string; - readonly value?: GatewayContract[]; +export interface DiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface GatewayContract extends Resource { - description?: string; - locationData?: ResourceLocationDataContract; +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +// @public +export interface DiagnosticDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayCreateOrUpdateHeaders { +export interface DiagnosticGetEntityTagHeaders { eTag?: string; } // @public -export interface GatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface DiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; // @public -export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { +export interface DiagnosticGetHeaders { + eTag?: string; } // @public -export interface GatewayGenerateTokenOptionalParams extends coreClient.OperationOptions { +export interface DiagnosticGetOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayGenerateTokenResponse = GatewayTokenContract; +export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; // @public -export interface GatewayGetEntityTagHeaders { - eTag?: string; +export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions { +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; + +// @public +export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; +export type DiagnosticListByServiceResponse = DiagnosticCollection; // @public -export interface GatewayGetHeaders { +export interface DiagnosticUpdateHeaders { eTag?: string; } // @public -export interface GatewayGetOptionalParams extends coreClient.OperationOptions { +export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & DiagnosticContract; // @public -export interface GatewayHostnameConfiguration { - createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, ifMatch: string, options?: GatewayHostnameConfigurationDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: GatewayHostnameConfigurationGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: GatewayHostnameConfigurationGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayHostnameConfigurationListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface Documentation { + createOrUpdate(resourceGroupName: string, serviceName: string, documentationId: string, parameters: DocumentationContract, options?: DocumentationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, options?: DocumentationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, options?: DocumentationUpdateOptionalParams): Promise; } // @public -export interface GatewayHostnameConfigurationCollection { +export interface DocumentationCollection { readonly nextLink?: string; - readonly value?: GatewayHostnameConfigurationContract[]; + readonly value?: DocumentationContract[]; } // @public -export interface GatewayHostnameConfigurationContract extends Resource { - certificateId?: string; - hostname?: string; - http2Enabled?: boolean; - negotiateClientCertificate?: boolean; - tls10Enabled?: boolean; - tls11Enabled?: boolean; +export interface DocumentationContract extends ProxyResource { + content?: string; + title?: string; } // @public -export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { +export interface DocumentationCreateOrUpdateHeaders { eTag?: string; } // @public -export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & GatewayHostnameConfigurationContract; +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & DocumentationContract; // @public -export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions { +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayHostnameConfigurationGetEntityTagHeaders { +export interface DocumentationGetEntityTagHeaders { eTag?: string; } // @public -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; // @public -export interface GatewayHostnameConfigurationGetHeaders { +export interface DocumentationGetHeaders { eTag?: string; } // @public -export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions { +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; +export type DocumentationGetResponse = DocumentationGetHeaders & DocumentationContract; // @public -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; +export type DocumentationListByServiceNextResponse = DocumentationCollection; // @public -export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +export type DocumentationListByServiceResponse = DocumentationCollection; // @public -export interface GatewayKeyRegenerationRequestContract { - keyType: KeyType_2; +export interface DocumentationUpdateContract { + content?: string; + title?: string; } // @public -export interface GatewayKeysContract { - primary?: string; - secondary?: string; +export interface DocumentationUpdateHeaders { + eTag?: string; } // @public -export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayListByServiceNextResponse = GatewayCollection; +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & DocumentationContract; // @public -export interface GatewayListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface EmailTemplate { + createOrUpdate(resourceGroupName: string, serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, templateName: TemplateName, ifMatch: string, options?: EmailTemplateDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, templateName: TemplateName, options?: EmailTemplateGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, templateName: TemplateName, options?: EmailTemplateGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateUpdateOptionalParams): Promise; } // @public -export type GatewayListByServiceResponse = GatewayCollection; +export interface EmailTemplateCollection { + count?: number; + nextLink?: string; + value?: EmailTemplateContract[]; +} // @public -export interface GatewayListKeysHeaders { - eTag?: string; +export interface EmailTemplateContract extends ProxyResource { + body?: string; + description?: string; + readonly isDefault?: boolean; + parameters?: EmailTemplateParametersContractProperties[]; + subject?: string; + title?: string; } // @public -export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { +export interface EmailTemplateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; // @public -export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +export interface EmailTemplateDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayTokenContract { - value?: string; +export interface EmailTemplateGetEntityTagHeaders { + eTag?: string; } // @public -export interface GatewayTokenRequestContract { - expiry: Date; - keyType: KeyType_2; +export interface EmailTemplateGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayUpdateHeaders { +export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; + +// @public +export interface EmailTemplateGetHeaders { eTag?: string; } // @public -export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions { +export interface EmailTemplateGetOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; +export type EmailTemplateGetResponse = EmailTemplateGetHeaders & EmailTemplateContract; // @public -export interface GenerateSsoUrlResult { - value?: string; +export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export function getContinuationToken(page: unknown): string | undefined; +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; // @public -export interface GlobalSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface EmailTemplateListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface GlobalSchemaCollection { - count?: number; - readonly nextLink?: string; - readonly value?: GlobalSchemaContract[]; -} +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; // @public -export interface GlobalSchemaContract extends Resource { +export interface EmailTemplateParametersContractProperties { description?: string; - document?: Record; - schemaType?: SchemaType; - value?: any; + name?: string; + title?: string; } // @public -export interface GlobalSchemaCreateOrUpdateHeaders { +export interface EmailTemplateUpdateHeaders { eTag?: string; } // @public -export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; - resumeFrom?: string; - updateIntervalInMs?: number; +export interface EmailTemplateUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; +export interface EmailTemplateUpdateParameters { + body?: string; + description?: string; + parameters?: EmailTemplateParametersContractProperties[]; + subject?: string; + title?: string; +} // @public -export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { -} +export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & EmailTemplateContract; // @public -export interface GlobalSchemaGetEntityTagHeaders { - eTag?: string; +export interface EndpointDependency { + domainName?: string; + endpointDetails?: EndpointDetail[]; } // @public -export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface EndpointDetail { + port?: number; + region?: string; } // @public -export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; +export interface ErrorFieldContract { + code?: string; + message?: string; + target?: string; +} // @public -export interface GlobalSchemaGetHeaders { - eTag?: string; +export interface ErrorResponse { + code?: string; + details?: ErrorFieldContract[]; + message?: string; } // @public -export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +export interface ErrorResponseBody { + code?: string; + details?: ErrorFieldContract[]; + message?: string; } // @public -export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & GlobalSchemaContract; +export type ExportApi = string; // @public -export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { -} +export type ExportFormat = string; // @public -export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; +export type ExportResultFormat = string; // @public -export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface FailureStatusCodeRange { + max?: number; + min?: number; } // @public -export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; - -// @public -export type GrantType = string; +export interface Gateway { + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, options?: GatewayDeleteOptionalParams): Promise; + 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; + listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): 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; +} // @public -export interface Group { - createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: GroupCreateParameters, options?: GroupCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, groupId: string, ifMatch: string, options?: GroupDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: GroupListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: GroupUpdateOptionalParams): Promise; +export interface GatewayApi { + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiDeleteOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: GatewayApiGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayApiListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface GroupCollection { - count?: number; - nextLink?: string; - value?: GroupContract[]; +export interface GatewayApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + parameters?: AssociationContract; } // @public -export interface GroupContract extends Resource { - readonly builtIn?: boolean; - description?: string; - displayName?: string; - externalId?: string; - typePropertiesType?: GroupType; -} +export type GatewayApiCreateOrUpdateResponse = ApiContract; // @public -export interface GroupContractProperties { - readonly builtIn?: boolean; - description?: string; - displayName: string; - externalId?: string; - type?: GroupType; +export interface GatewayApiDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GroupCreateOrUpdateHeaders { +export interface GatewayApiGetEntityTagHeaders { eTag?: string; } // @public -export interface GroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface GatewayApiGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & GroupContract; +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; // @public -export interface GroupCreateParameters { - description?: string; - displayName?: string; - externalId?: string; - type?: GroupType; +export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface GroupDeleteOptionalParams extends coreClient.OperationOptions { +export type GatewayApiListByServiceNextResponse = ApiCollection; + +// @public +export interface GatewayApiListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface GroupGetEntityTagHeaders { - eTag?: string; +export type GatewayApiListByServiceResponse = ApiCollection; + +// @public +export interface GatewayCertificateAuthority { + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, ifMatch: string, options?: GatewayCertificateAuthorityDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, options?: GatewayCertificateAuthorityGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, certificateId: string, options?: GatewayCertificateAuthorityGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayCertificateAuthorityListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface GatewayCertificateAuthorityCollection { + readonly nextLink?: string; + readonly value?: GatewayCertificateAuthorityContract[]; } // @public -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; +export interface GatewayCertificateAuthorityContract extends ProxyResource { + isTrusted?: boolean; +} // @public -export interface GroupGetHeaders { +export interface GatewayCertificateAuthorityCreateOrUpdateHeaders { eTag?: string; } // @public -export interface GroupGetOptionalParams extends coreClient.OperationOptions { +export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type GroupGetResponse = GroupGetHeaders & GroupContract; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & GatewayCertificateAuthorityContract; // @public -export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type GroupListByServiceNextResponse = GroupCollection; +export interface GatewayCertificateAuthorityGetEntityTagHeaders { + eTag?: string; +} // @public -export interface GroupListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GroupListByServiceResponse = GroupCollection; +export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; // @public -export type GroupType = "custom" | "system" | "external"; +export interface GatewayCertificateAuthorityGetHeaders { + eTag?: string; +} // @public -export interface GroupUpdateHeaders { - eTag?: string; +export interface GatewayCertificateAuthorityGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface GroupUpdateOptionalParams extends coreClient.OperationOptions { +export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & GatewayCertificateAuthorityContract; + +// @public +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface GroupUpdateParameters { - description?: string; - displayName?: string; - externalId?: string; - type?: GroupType; +export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; + +// @public +export interface GatewayCertificateAuthorityListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; +export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; // @public -export interface GroupUser { - checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserCheckEntityExistsOptionalParams): Promise; - create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserCreateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserDeleteOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupUserListOptionalParams): PagedAsyncIterableIterator; +export interface GatewayCollection { + count?: number; + readonly nextLink?: string; + readonly value?: GatewayContract[]; } // @public -export interface GroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +export interface GatewayContract extends ProxyResource { + description?: string; + locationData?: ResourceLocationDataContract; } // @public -export type GroupUserCheckEntityExistsResponse = { - body: boolean; -}; +export interface GatewayCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface GroupUserCreateOptionalParams extends coreClient.OperationOptions { +export interface GatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type GroupUserCreateResponse = UserContract; +export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; // @public -export interface GroupUserDeleteOptionalParams extends coreClient.OperationOptions { +export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions { +export interface GatewayGenerateTokenOptionalParams extends coreClient.OperationOptions { } // @public -export type GroupUserListNextResponse = UserCollection; +export type GatewayGenerateTokenResponse = GatewayTokenContract; // @public -export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface GatewayGetEntityTagHeaders { + eTag?: string; } // @public -export type GroupUserListResponse = UserCollection; - -// @public -export interface HostnameConfiguration { - certificate?: CertificateInformation; - certificatePassword?: string; - certificateSource?: CertificateSource; - certificateStatus?: CertificateStatus; - defaultSslBinding?: boolean; - encodedCertificate?: string; - hostName: string; - identityClientId?: string; - keyVaultId?: string; - negotiateClientCertificate?: boolean; - type: HostnameType; +export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type HostnameType = string; +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; // @public -export type HttpCorrelationProtocol = string; +export interface GatewayGetHeaders { + eTag?: string; +} // @public -export interface HttpHeader { - name: string; - value: string; +export interface GatewayGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface HttpMessageDiagnostic { - body?: BodyDiagnosticSettings; - dataMasking?: DataMasking; - headers?: string[]; -} +export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; // @public -export interface IdentityProvider { - createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, options?: IdentityProviderCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, options?: IdentityProviderDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: IdentityProviderListByServiceOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderListSecretsOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, options?: IdentityProviderUpdateOptionalParams): Promise; +export interface GatewayHostnameConfiguration { + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, ifMatch: string, options?: GatewayHostnameConfigurationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: GatewayHostnameConfigurationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: GatewayHostnameConfigurationGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayHostnameConfigurationListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface IdentityProviderBaseParameters { - allowedTenants?: string[]; - authority?: string; - passwordResetPolicyName?: string; - profileEditingPolicyName?: string; - signinPolicyName?: string; - signinTenant?: string; - signupPolicyName?: string; - type?: IdentityProviderType; +export interface GatewayHostnameConfigurationCollection { + readonly nextLink?: string; + readonly value?: GatewayHostnameConfigurationContract[]; } // @public -export interface IdentityProviderContract extends Resource { - allowedTenants?: string[]; - authority?: string; - clientId?: string; - clientSecret?: string; - passwordResetPolicyName?: string; - profileEditingPolicyName?: string; - signinPolicyName?: string; - signinTenant?: string; - signupPolicyName?: string; - typePropertiesType?: IdentityProviderType; +export interface GatewayHostnameConfigurationContract extends ProxyResource { + certificateId?: string; + hostname?: string; + http2Enabled?: boolean; + negotiateClientCertificate?: boolean; + tls10Enabled?: boolean; + tls11Enabled?: boolean; } // @public -export interface IdentityProviderContractProperties extends IdentityProviderBaseParameters { - clientId: string; - clientSecret?: string; +export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface IdentityProviderCreateContract extends Resource { - allowedTenants?: string[]; - authority?: string; - clientId?: string; - clientSecret?: string; - passwordResetPolicyName?: string; - profileEditingPolicyName?: string; - signinPolicyName?: string; - signinTenant?: string; - signupPolicyName?: string; - typePropertiesType?: IdentityProviderType; +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface IdentityProviderCreateContractProperties extends IdentityProviderBaseParameters { - clientId: string; - clientSecret: string; +export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & GatewayHostnameConfigurationContract; + +// @public +export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface IdentityProviderCreateOrUpdateHeaders { +export interface GatewayHostnameConfigurationGetEntityTagHeaders { eTag?: string; } // @public -export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & IdentityProviderContract; +export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; // @public -export interface IdentityProviderDeleteOptionalParams extends coreClient.OperationOptions { +export interface GatewayHostnameConfigurationGetHeaders { + eTag?: string; } // @public -export interface IdentityProviderGetEntityTagHeaders { - eTag?: string; +export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions { +export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; + +// @public +export interface GatewayHostnameConfigurationListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; +export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; // @public -export interface IdentityProviderGetHeaders { - eTag?: string; +export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface IdentityProviderGetOptionalParams extends coreClient.OperationOptions { -} +export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; // @public -export type IdentityProviderGetResponse = IdentityProviderGetHeaders & IdentityProviderContract; +export interface GatewayKeyRegenerationRequestContract { + keyType: KeyType_2; +} // @public -export interface IdentityProviderList { - count?: number; - nextLink?: string; - value?: IdentityProviderContract[]; +export interface GatewayKeysContract { + primary?: string; + secondary?: string; } // @public -export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityProviderListByServiceNextResponse = IdentityProviderList; +export type GatewayListByServiceNextResponse = GatewayCollection; // @public -export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions { +export interface GatewayListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type IdentityProviderListByServiceResponse = IdentityProviderList; +export type GatewayListByServiceResponse = GatewayCollection; // @public -export interface IdentityProviderListSecretsHeaders { +export interface GatewayListKeysHeaders { eTag?: string; } // @public -export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions { +export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & ClientSecretContract; +export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; // @public -export type IdentityProviderType = string; +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +} // @public -export interface IdentityProviderUpdateHeaders { - eTag?: string; +export interface GatewayTokenContract { + value?: string; } // @public -export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions { +export interface GatewayTokenRequestContract { + expiry: Date; + keyType: KeyType_2; } // @public -export interface IdentityProviderUpdateParameters { - allowedTenants?: string[]; - authority?: string; - clientId?: string; - clientSecret?: string; - passwordResetPolicyName?: string; - profileEditingPolicyName?: string; - signinPolicyName?: string; - signinTenant?: string; - signupPolicyName?: string; - type?: IdentityProviderType; +export interface GatewayUpdateHeaders { + eTag?: string; } // @public -export interface IdentityProviderUpdateProperties extends IdentityProviderBaseParameters { - clientId?: string; - clientSecret?: string; +export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & IdentityProviderContract; +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; // @public -export interface Issue { - get(resourceGroupName: string, serviceName: string, issueId: string, options?: IssueGetOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: IssueListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface GenerateSsoUrlResult { + value?: string; } // @public -export interface IssueAttachmentCollection { - count?: number; - readonly nextLink?: string; - readonly value?: IssueAttachmentContract[]; -} +export function getContinuationToken(page: unknown): string | undefined; // @public -export interface IssueAttachmentContract extends Resource { - content?: string; - contentFormat?: string; - title?: string; +export interface GlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface IssueCollection { +export interface GlobalSchemaCollection { count?: number; readonly nextLink?: string; - readonly value?: IssueContract[]; + readonly value?: GlobalSchemaContract[]; } // @public -export interface IssueCommentCollection { - count?: number; - readonly nextLink?: string; - readonly value?: IssueCommentContract[]; +export interface GlobalSchemaContract extends ProxyResource { + description?: string; + document?: Record; + schemaType?: SchemaType; + value?: any; } // @public -export interface IssueCommentContract extends Resource { - createdDate?: Date; - text?: string; - userId?: string; +export interface GlobalSchemaCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface IssueContract extends Resource { - apiId?: string; - createdDate?: Date; - description?: string; - state?: State; - title?: string; - userId?: string; +export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface IssueContractBaseProperties { - apiId?: string; - createdDate?: Date; - state?: State; +export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface IssueContractProperties extends IssueContractBaseProperties { - description: string; - title: string; - userId: string; +export interface GlobalSchemaGetEntityTagHeaders { + eTag?: string; } // @public -export interface IssueGetHeaders { +export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; + +// @public +export interface GlobalSchemaGetHeaders { eTag?: string; } // @public -export interface IssueGetOptionalParams extends coreClient.OperationOptions { +export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions { } // @public -export type IssueGetResponse = IssueGetHeaders & IssueContract; +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & GlobalSchemaContract; // @public -export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type IssueListByServiceNextResponse = IssueCollection; +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; // @public -export interface IssueListByServiceOptionalParams extends coreClient.OperationOptions { +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type IssueListByServiceResponse = IssueCollection; +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; // @public -export type IssueType = string; +export type GrantType = string; // @public -export interface IssueUpdateContract { - apiId?: string; - createdDate?: Date; - description?: string; - state?: State; - title?: string; - userId?: string; +export interface GraphQLApiResolver { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, parameters: ResolverContract, options?: GraphQLApiResolverCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, options?: GraphQLApiResolverDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, options?: GraphQLApiResolverUpdateOptionalParams): Promise; } // @public -export interface IssueUpdateContractProperties extends IssueContractBaseProperties { - description?: string; - title?: string; - userId?: string; +export interface GraphQLApiResolverCreateOrUpdateHeaders { + eTag?: string; } // @public -type KeyType_2 = "primary" | "secondary"; -export { KeyType_2 as KeyType } +export interface GraphQLApiResolverCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} // @public -export interface KeyVaultContractCreateProperties { - identityClientId?: string; - secretIdentifier?: string; -} +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; // @public -export interface KeyVaultContractProperties extends KeyVaultContractCreateProperties { - lastStatus?: KeyVaultLastAccessStatusContractProperties; +export interface GraphQLApiResolverDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface KeyVaultLastAccessStatusContractProperties { - code?: string; - message?: string; - timeStampUtc?: Date; +export interface GraphQLApiResolverGetEntityTagHeaders { + eTag?: string; } // @public -export enum KnownAccessIdName { - Access = "access", - GitAccess = "gitAccess" +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownAccessType { - AccessKey = "AccessKey", - SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", - UserAssignedManagedIdentity = "UserAssignedManagedIdentity" -} +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; // @public -export enum KnownAlwaysLog { - AllErrors = "allErrors" +export interface GraphQLApiResolverGetHeaders { + eTag?: string; } // @public -export enum KnownApimIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - UserAssigned = "UserAssigned" +export interface GraphQLApiResolverGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownApiType { - Graphql = "graphql", - Http = "http", - Soap = "soap", - Websocket = "websocket" -} +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & ResolverContract; // @public -export enum KnownApiVersionSetContractDetailsVersioningScheme { - Header = "Header", - Query = "Query", - Segment = "Segment" +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownAppType { - DeveloperPortal = "developerPortal", - Portal = "portal" -} +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; // @public -export enum KnownBackendProtocol { - Http = "http", - Soap = "soap" +export interface GraphQLApiResolverListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export enum KnownBearerTokenSendingMethod { - AuthorizationHeader = "authorizationHeader", - Query = "query" -} +export type GraphQLApiResolverListByApiResponse = ResolverCollection; // @public -export enum KnownBearerTokenSendingMethods { - AuthorizationHeader = "authorizationHeader", - Query = "query" +export interface GraphQLApiResolverPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, ifMatch: string, options?: GraphQLApiResolverPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams): Promise; + listByResolver(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownCertificateConfigurationStoreName { - CertificateAuthority = "CertificateAuthority", - Root = "Root" +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export enum KnownCertificateSource { - BuiltIn = "BuiltIn", - Custom = "Custom", - KeyVault = "KeyVault", - Managed = "Managed" +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export enum KnownCertificateStatus { - Completed = "Completed", - Failed = "Failed", - InProgress = "InProgress" -} +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; // @public -export enum KnownClientAuthenticationMethod { - Basic = "Basic", - Body = "Body" +export interface GraphQLApiResolverPolicyDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownConfigurationIdName { - Configuration = "configuration" +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { + eTag?: string; } // @public -export enum KnownConfirmation { - Invite = "invite", - Signup = "signup" +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownConnectionStatus { - Connected = "Connected", - Degraded = "Degraded", - Disconnected = "Disconnected", - Unknown = "Unknown" -} +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; // @public -export enum KnownConnectivityCheckProtocol { - Http = "HTTP", - Https = "HTTPS", - TCP = "TCP" +export interface GraphQLApiResolverPolicyGetHeaders { + eTag?: string; } // @public -export enum KnownConnectivityStatusType { - Failure = "failure", - Initializing = "initializing", - Success = "success" +export interface GraphQLApiResolverPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; } // @public -export enum KnownContentFormat { - GraphqlLink = "graphql-link", - Openapi = "openapi", - OpenapiJson = "openapi+json", - OpenapiJsonLink = "openapi+json-link", - OpenapiLink = "openapi-link", - SwaggerJson = "swagger-json", - SwaggerLinkJson = "swagger-link-json", - WadlLinkJson = "wadl-link-json", - WadlXml = "wadl-xml", - Wsdl = "wsdl", - WsdlLink = "wsdl-link" -} +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & PolicyContract; // @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownDataMaskingMode { - Hide = "Hide", - Mask = "Mask" -} +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; // @public -export enum KnownExportApi { - True = "true" +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownExportFormat { - Openapi = "openapi-link", - OpenapiJson = "openapi+json-link", - Swagger = "swagger-link", - Wadl = "wadl-link", - Wsdl = "wsdl-link" -} +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; // @public -export enum KnownExportResultFormat { - OpenApi = "openapi-link", - Swagger = "swagger-link-json", - Wadl = "wadl-link-json", - Wsdl = "wsdl-link+xml" +export interface GraphQLApiResolverUpdateHeaders { + eTag?: string; } // @public -export enum KnownGrantType { - AuthorizationCode = "authorizationCode", - ClientCredentials = "clientCredentials", - Implicit = "implicit", - ResourceOwnerPassword = "resourceOwnerPassword" +export interface GraphQLApiResolverUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownHostnameType { - DeveloperPortal = "DeveloperPortal", - Management = "Management", - Portal = "Portal", - Proxy = "Proxy", - Scm = "Scm" -} +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & ResolverContract; // @public -export enum KnownHttpCorrelationProtocol { - Legacy = "Legacy", - None = "None", - W3C = "W3C" +export interface Group { + createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: GroupCreateParameters, options?: GroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, groupId: string, ifMatch: string, options?: GroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: GroupListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: GroupUpdateOptionalParams): Promise; } // @public -export enum KnownIdentityProviderType { - Aad = "aad", - AadB2C = "aadB2C", - Facebook = "facebook", - Google = "google", - Microsoft = "microsoft", - Twitter = "twitter" +export interface GroupCollection { + count?: number; + nextLink?: string; + value?: GroupContract[]; } // @public -export enum KnownIssueType { - AgentStopped = "AgentStopped", - DnsResolution = "DnsResolution", - GuestFirewall = "GuestFirewall", - NetworkSecurityRule = "NetworkSecurityRule", - Platform = "Platform", - PortThrottled = "PortThrottled", - SocketBind = "SocketBind", - Unknown = "Unknown", - UserDefinedRoute = "UserDefinedRoute" +export interface GroupContract extends ProxyResource { + readonly builtIn?: boolean; + description?: string; + displayName?: string; + externalId?: string; + typePropertiesType?: GroupType; } // @public -export enum KnownLoggerType { - ApplicationInsights = "applicationInsights", - AzureEventHub = "azureEventHub", - AzureMonitor = "azureMonitor" +export interface GroupContractProperties { + readonly builtIn?: boolean; + description?: string; + displayName: string; + externalId?: string; + type?: GroupType; } // @public -export enum KnownMethod { - GET = "GET", - Post = "POST" +export interface GroupCreateOrUpdateHeaders { + eTag?: string; } // @public -export enum KnownNotificationName { - AccountClosedPublisher = "AccountClosedPublisher", - BCC = "BCC", - NewApplicationNotificationMessage = "NewApplicationNotificationMessage", - NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", - PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", - QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage", - RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" +export interface GroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export enum KnownOperationNameFormat { - Name = "Name", - Url = "Url" -} +export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & GroupContract; // @public -export enum KnownOrigin { - Inbound = "Inbound", - Local = "Local", - Outbound = "Outbound" +export interface GroupCreateParameters { + description?: string; + displayName?: string; + externalId?: string; + type?: GroupType; } // @public -export enum KnownPlatformVersion { - Mtv1 = "mtv1", - Stv1 = "stv1", - Stv2 = "stv2", - Undetermined = "undetermined" +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownPolicyContentFormat { - Rawxml = "rawxml", - RawxmlLink = "rawxml-link", - Xml = "xml", - XmlLink = "xml-link" +export interface GroupGetEntityTagHeaders { + eTag?: string; } // @public -export enum KnownPolicyExportFormat { - Rawxml = "rawxml", - Xml = "xml" +export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownPolicyIdName { - Policy = "policy" +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; + +// @public +export interface GroupGetHeaders { + eTag?: string; } // @public -export enum KnownPortalRevisionStatus { - Completed = "completed", - Failed = "failed", - Pending = "pending", - Publishing = "publishing" +export interface GroupGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownPreferredIPVersion { - IPv4 = "IPv4" +export type GroupGetResponse = GroupGetHeaders & GroupContract; + +// @public +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GroupListByServiceNextResponse = GroupCollection; + +// @public +export interface GroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GroupListByServiceResponse = GroupCollection; + +// @public +export type GroupType = "custom" | "system" | "external"; + +// @public +export interface GroupUpdateHeaders { + eTag?: string; +} + +// @public +export interface GroupUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GroupUpdateParameters { + description?: string; + displayName?: string; + externalId?: string; + type?: GroupType; +} + +// @public +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; + +// @public +export interface GroupUser { + checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserCheckEntityExistsOptionalParams): Promise; + create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserCreateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: GroupUserDeleteOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, groupId: string, options?: GroupUserListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface GroupUserCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GroupUserCreateResponse = UserContract; + +// @public +export interface GroupUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GroupUserListNextResponse = UserCollection; + +// @public +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GroupUserListResponse = UserCollection; + +// @public +export interface HostnameConfiguration { + certificate?: CertificateInformation; + certificatePassword?: string; + certificateSource?: CertificateSource; + certificateStatus?: CertificateStatus; + defaultSslBinding?: boolean; + encodedCertificate?: string; + hostName: string; + identityClientId?: string; + keyVaultId?: string; + negotiateClientCertificate?: boolean; + type: HostnameType; +} + +// @public +export type HostnameType = string; + +// @public +export type HttpCorrelationProtocol = string; + +// @public +export interface HttpHeader { + name: string; + value: string; +} + +// @public +export interface HttpMessageDiagnostic { + body?: BodyDiagnosticSettings; + dataMasking?: DataMasking; + headers?: string[]; +} + +// @public +export interface IdentityProvider { + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, options?: IdentityProviderCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, options?: IdentityProviderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: IdentityProviderListByServiceOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, options?: IdentityProviderListSecretsOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, options?: IdentityProviderUpdateOptionalParams): Promise; +} + +// @public +export interface IdentityProviderBaseParameters { + allowedTenants?: string[]; + authority?: string; + clientLibrary?: string; + passwordResetPolicyName?: string; + profileEditingPolicyName?: string; + signinPolicyName?: string; + signinTenant?: string; + signupPolicyName?: string; + type?: IdentityProviderType; +} + +// @public +export interface IdentityProviderContract extends ProxyResource { + allowedTenants?: string[]; + authority?: string; + clientId?: string; + clientLibrary?: string; + clientSecret?: string; + passwordResetPolicyName?: string; + profileEditingPolicyName?: string; + signinPolicyName?: string; + signinTenant?: string; + signupPolicyName?: string; + typePropertiesType?: IdentityProviderType; +} + +// @public +export interface IdentityProviderContractProperties extends IdentityProviderBaseParameters { + clientId: string; + clientSecret?: string; +} + +// @public +export interface IdentityProviderCreateContract extends ProxyResource { + allowedTenants?: string[]; + authority?: string; + clientId?: string; + clientLibrary?: string; + clientSecret?: string; + passwordResetPolicyName?: string; + profileEditingPolicyName?: string; + signinPolicyName?: string; + signinTenant?: string; + signupPolicyName?: string; + typePropertiesType?: IdentityProviderType; +} + +// @public +export interface IdentityProviderCreateContractProperties extends IdentityProviderBaseParameters { + clientId: string; + clientSecret: string; +} + +// @public +export interface IdentityProviderCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & IdentityProviderContract; + +// @public +export interface IdentityProviderDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IdentityProviderGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; + +// @public +export interface IdentityProviderGetHeaders { + eTag?: string; +} + +// @public +export interface IdentityProviderGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & IdentityProviderContract; + +// @public +export interface IdentityProviderList { + count?: number; + nextLink?: string; + value?: IdentityProviderContract[]; +} + +// @public +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; + +// @public +export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IdentityProviderListByServiceResponse = IdentityProviderList; + +// @public +export interface IdentityProviderListSecretsHeaders { + eTag?: string; +} + +// @public +export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & ClientSecretContract; + +// @public +export type IdentityProviderType = string; + +// @public +export interface IdentityProviderUpdateHeaders { + eTag?: string; +} + +// @public +export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IdentityProviderUpdateParameters { + allowedTenants?: string[]; + authority?: string; + clientId?: string; + clientLibrary?: string; + clientSecret?: string; + passwordResetPolicyName?: string; + profileEditingPolicyName?: string; + signinPolicyName?: string; + signinTenant?: string; + signupPolicyName?: string; + type?: IdentityProviderType; +} + +// @public +export interface IdentityProviderUpdateProperties extends IdentityProviderBaseParameters { + clientId?: string; + clientSecret?: string; +} + +// @public +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & IdentityProviderContract; + +// @public +export interface Issue { + get(resourceGroupName: string, serviceName: string, issueId: string, options?: IssueGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: IssueListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IssueAttachmentCollection { + count?: number; + readonly nextLink?: string; + readonly value?: IssueAttachmentContract[]; +} + +// @public +export interface IssueAttachmentContract extends ProxyResource { + content?: string; + contentFormat?: string; + title?: string; +} + +// @public +export interface IssueCollection { + count?: number; + readonly nextLink?: string; + readonly value?: IssueContract[]; +} + +// @public +export interface IssueCommentCollection { + count?: number; + readonly nextLink?: string; + readonly value?: IssueCommentContract[]; +} + +// @public +export interface IssueCommentContract extends ProxyResource { + createdDate?: Date; + text?: string; + userId?: string; +} + +// @public +export interface IssueContract extends ProxyResource { + apiId?: string; + createdDate?: Date; + description?: string; + state?: State; + title?: string; + userId?: string; +} + +// @public +export interface IssueContractBaseProperties { + apiId?: string; + createdDate?: Date; + state?: State; +} + +// @public +export interface IssueContractProperties extends IssueContractBaseProperties { + description: string; + title: string; + userId: string; +} + +// @public +export interface IssueGetHeaders { + eTag?: string; +} + +// @public +export interface IssueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IssueGetResponse = IssueGetHeaders & IssueContract; + +// @public +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IssueListByServiceNextResponse = IssueCollection; + +// @public +export interface IssueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type IssueListByServiceResponse = IssueCollection; + +// @public +export type IssueType = string; + +// @public +export interface IssueUpdateContract { + apiId?: string; + createdDate?: Date; + description?: string; + state?: State; + title?: string; + userId?: string; +} + +// @public +export interface IssueUpdateContractProperties extends IssueContractBaseProperties { + description?: string; + title?: string; + userId?: string; +} + +// @public +type KeyType_2 = "primary" | "secondary"; +export { KeyType_2 as KeyType } + +// @public +export interface KeyVaultContractCreateProperties { + identityClientId?: string; + secretIdentifier?: string; +} + +// @public +export interface KeyVaultContractProperties extends KeyVaultContractCreateProperties { + lastStatus?: KeyVaultLastAccessStatusContractProperties; +} + +// @public +export interface KeyVaultLastAccessStatusContractProperties { + code?: string; + message?: string; + timeStampUtc?: Date; +} + +// @public +export type KeyVaultRefreshState = string; + +// @public +export enum KnownAccessIdName { + Access = "access", + GitAccess = "gitAccess" +} + +// @public +export enum KnownAccessType { + AccessKey = "AccessKey", + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + UserAssignedManagedIdentity = "UserAssignedManagedIdentity" +} + +// @public +export enum KnownAlwaysLog { + AllErrors = "allErrors" +} + +// @public +export enum KnownApimIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + UserAssigned = "UserAssigned" +} + +// @public +export enum KnownApiType { + Graphql = "graphql", + Http = "http", + Soap = "soap", + Websocket = "websocket" +} + +// @public +export enum KnownAppType { + DeveloperPortal = "developerPortal", + Portal = "portal" +} + +// @public +export enum KnownAuthorizationType { + OAuth2 = "OAuth2" +} + +// @public +export enum KnownBackendProtocol { + Http = "http", + Soap = "soap" +} + +// @public +export enum KnownBearerTokenSendingMethod { + AuthorizationHeader = "authorizationHeader", + Query = "query" +} + +// @public +export enum KnownBearerTokenSendingMethods { + AuthorizationHeader = "authorizationHeader", + Query = "query" +} + +// @public +export enum KnownCertificateConfigurationStoreName { + CertificateAuthority = "CertificateAuthority", + Root = "Root" +} + +// @public +export enum KnownCertificateSource { + BuiltIn = "BuiltIn", + Custom = "Custom", + KeyVault = "KeyVault", + Managed = "Managed" +} + +// @public +export enum KnownCertificateStatus { + Completed = "Completed", + Failed = "Failed", + InProgress = "InProgress" +} + +// @public +export enum KnownClientAuthenticationMethod { + Basic = "Basic", + Body = "Body" +} + +// @public +export enum KnownConfigurationIdName { + Configuration = "configuration" +} + +// @public +export enum KnownConfirmation { + Invite = "invite", + Signup = "signup" +} + +// @public +export enum KnownConnectionStatus { + Connected = "Connected", + Degraded = "Degraded", + Disconnected = "Disconnected", + Unknown = "Unknown" +} + +// @public +export enum KnownConnectivityCheckProtocol { + Http = "HTTP", + Https = "HTTPS", + TCP = "TCP" +} + +// @public +export enum KnownConnectivityStatusType { + Failure = "failure", + Initializing = "initializing", + Success = "success" +} + +// @public +export enum KnownContentFormat { + GraphqlLink = "graphql-link", + Openapi = "openapi", + OpenapiJson = "openapi+json", + OpenapiJsonLink = "openapi+json-link", + OpenapiLink = "openapi-link", + SwaggerJson = "swagger-json", + SwaggerLinkJson = "swagger-link-json", + WadlLinkJson = "wadl-link-json", + WadlXml = "wadl-xml", + Wsdl = "wsdl", + WsdlLink = "wsdl-link" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownDataMaskingMode { + Hide = "Hide", + Mask = "Mask" +} + +// @public +export enum KnownExportApi { + True = "true" +} + +// @public +export enum KnownExportFormat { + Openapi = "openapi-link", + OpenapiJson = "openapi+json-link", + Swagger = "swagger-link", + Wadl = "wadl-link", + Wsdl = "wsdl-link" +} + +// @public +export enum KnownExportResultFormat { + OpenApi = "openapi-link", + Swagger = "swagger-link-json", + Wadl = "wadl-link-json", + Wsdl = "wsdl-link+xml" +} + +// @public +export enum KnownGrantType { + AuthorizationCode = "authorizationCode", + ClientCredentials = "clientCredentials", + Implicit = "implicit", + ResourceOwnerPassword = "resourceOwnerPassword" +} + +// @public +export enum KnownHostnameType { + DeveloperPortal = "DeveloperPortal", + Management = "Management", + Portal = "Portal", + Proxy = "Proxy", + Scm = "Scm" +} + +// @public +export enum KnownHttpCorrelationProtocol { + Legacy = "Legacy", + None = "None", + W3C = "W3C" +} + +// @public +export enum KnownIdentityProviderType { + Aad = "aad", + AadB2C = "aadB2C", + Facebook = "facebook", + Google = "google", + Microsoft = "microsoft", + Twitter = "twitter" +} + +// @public +export enum KnownIssueType { + AgentStopped = "AgentStopped", + DnsResolution = "DnsResolution", + GuestFirewall = "GuestFirewall", + NetworkSecurityRule = "NetworkSecurityRule", + Platform = "Platform", + PortThrottled = "PortThrottled", + SocketBind = "SocketBind", + Unknown = "Unknown", + UserDefinedRoute = "UserDefinedRoute" +} + +// @public +export enum KnownKeyVaultRefreshState { + False = "false", + True = "true" +} + +// @public +export enum KnownLoggerType { + ApplicationInsights = "applicationInsights", + AzureEventHub = "azureEventHub", + AzureMonitor = "azureMonitor" +} + +// @public +export enum KnownMethod { + GET = "GET", + Post = "POST" +} + +// @public +export enum KnownNatGatewayState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownNotificationName { + AccountClosedPublisher = "AccountClosedPublisher", + BCC = "BCC", + NewApplicationNotificationMessage = "NewApplicationNotificationMessage", + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage", + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" +} + +// @public +export enum KnownOAuth2GrantType { + AuthorizationCode = "AuthorizationCode", + ClientCredentials = "ClientCredentials" +} + +// @public +export enum KnownOperationNameFormat { + Name = "Name", + Url = "Url" +} + +// @public +export enum KnownOrigin { + Inbound = "Inbound", + Local = "Local", + Outbound = "Outbound" +} + +// @public +export enum KnownPlatformVersion { + Mtv1 = "mtv1", + Stv1 = "stv1", + Stv2 = "stv2", + Stv21 = "stv2.1", + Undetermined = "undetermined" +} + +// @public +export enum KnownPolicyContentFormat { + Rawxml = "rawxml", + RawxmlLink = "rawxml-link", + Xml = "xml", + XmlLink = "xml-link" +} + +// @public +export enum KnownPolicyExportFormat { + Rawxml = "rawxml", + Xml = "xml" +} + +// @public +export enum KnownPolicyFragmentContentFormat { + Rawxml = "rawxml", + Xml = "xml" +} + +// @public +export enum KnownPolicyIdName { + Policy = "policy" +} + +// @public +export enum KnownPortalRevisionStatus { + Completed = "completed", + Failed = "failed", + Pending = "pending", + Publishing = "publishing" +} + +// @public +export enum KnownPortalSettingsCspMode { + Disabled = "disabled", + Enabled = "enabled", + ReportOnly = "reportOnly" +} + +// @public +export enum KnownPreferredIPVersion { + IPv4 = "IPv4" } // @public @@ -4459,3264 +5298,5801 @@ export enum KnownPrivateEndpointConnectionProvisioningState { } // @public -export enum KnownPrivateEndpointServiceConnectionStatus { - Approved = "Approved", - Pending = "Pending", - Rejected = "Rejected" +export enum KnownPrivateEndpointServiceConnectionStatus { + Approved = "Approved", + Pending = "Pending", + Rejected = "Rejected" +} + +// @public +export enum KnownProtocol { + Http = "http", + Https = "https", + Ws = "ws", + Wss = "wss" +} + +// @public +export enum KnownPublicNetworkAccess { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownResourceSkuCapacityScaleType { + Automatic = "automatic", + Manual = "manual", + None = "none" +} + +// @public +export enum KnownSamplingType { + Fixed = "fixed" +} + +// @public +export enum KnownSchemaType { + Json = "json", + Xml = "xml" +} + +// @public +export enum KnownSettingsTypeName { + Public = "public" +} + +// @public +export enum KnownSeverity { + Error = "Error", + Warning = "Warning" +} + +// @public +export enum KnownSkuType { + Basic = "Basic", + Consumption = "Consumption", + Developer = "Developer", + Isolated = "Isolated", + Premium = "Premium", + Standard = "Standard" +} + +// @public +export enum KnownSoapApiType { + GraphQL = "graphql", + SoapPassThrough = "soap", + SoapToRest = "http", + WebSocket = "websocket" +} + +// @public +export enum KnownState { + Closed = "closed", + Open = "open", + Proposed = "proposed", + Removed = "removed", + Resolved = "resolved" +} + +// @public +export enum KnownTemplateName { + AccountClosedDeveloper = "accountClosedDeveloper", + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", + EmailChangeIdentityDefault = "emailChangeIdentityDefault", + InviteUserNotificationMessage = "inviteUserNotificationMessage", + NewCommentNotificationMessage = "newCommentNotificationMessage", + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", + NewIssueNotificationMessage = "newIssueNotificationMessage", + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", + PasswordResetIdentityDefault = "passwordResetIdentityDefault", + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +} + +// @public +export enum KnownTranslateRequiredQueryParametersConduct { + Query = "query", + Template = "template" +} + +// @public +export enum KnownUserState { + Active = "active", + Blocked = "blocked", + Deleted = "deleted", + Pending = "pending" +} + +// @public +export enum KnownVerbosity { + Error = "error", + Information = "information", + Verbose = "verbose" +} + +// @public +export enum KnownVersioningScheme { + Header = "Header", + Query = "Query", + Segment = "Segment" +} + +// @public +export enum KnownVirtualNetworkType { + External = "External", + Internal = "Internal", + None = "None" +} + +// @public +export interface Logger { + createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options?: LoggerDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, options?: LoggerUpdateOptionalParams): Promise; +} + +// @public +export interface LoggerCollection { + count?: number; + nextLink?: string; + value?: LoggerContract[]; +} + +// @public +export interface LoggerContract extends ProxyResource { + credentials?: { + [propertyName: string]: string; + }; + description?: string; + isBuffered?: boolean; + loggerType?: LoggerType; + resourceId?: string; +} + +// @public +export interface LoggerCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface LoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & LoggerContract; + +// @public +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LoggerGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; + +// @public +export interface LoggerGetHeaders { + eTag?: string; +} + +// @public +export interface LoggerGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; + +// @public +export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LoggerListByServiceNextResponse = LoggerCollection; + +// @public +export interface LoggerListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type LoggerListByServiceResponse = LoggerCollection; + +// @public +export type LoggerType = string; + +// @public +export interface LoggerUpdateContract { + credentials?: { + [propertyName: string]: string; + }; + description?: string; + isBuffered?: boolean; + loggerType?: LoggerType; +} + +// @public +export interface LoggerUpdateHeaders { + eTag?: string; +} + +// @public +export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; + +// @public +export type Method = string; + +// @public +export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; + +// @public +export interface NamedValue { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise; + beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; + beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: NamedValueDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: NamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; + listValue(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueListValueOptionalParams): Promise; +} + +// @public +export interface NamedValueCollection { + count?: number; + nextLink?: string; + value?: NamedValueContract[]; +} + +// @public +export interface NamedValueContract extends ProxyResource { + displayName?: string; + keyVault?: KeyVaultContractProperties; + secret?: boolean; + tags?: string[]; + value?: string; +} + +// @public +export interface NamedValueContractProperties extends NamedValueEntityBaseParameters { + displayName: string; + keyVault?: KeyVaultContractProperties; + value?: string; +} + +// @public +export interface NamedValueCreateContract extends ProxyResource { + displayName?: string; + keyVault?: KeyVaultContractCreateProperties; + secret?: boolean; + tags?: string[]; + value?: string; +} + +// @public +export interface NamedValueCreateContractProperties extends NamedValueEntityBaseParameters { + displayName: string; + keyVault?: KeyVaultContractCreateProperties; + value?: string; +} + +// @public +export interface NamedValueCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface NamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface NamedValueDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface NamedValueEntityBaseParameters { + secret?: boolean; + tags?: string[]; +} + +// @public +export interface NamedValueGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; + +// @public +export interface NamedValueGetHeaders { + eTag?: string; +} + +// @public +export interface NamedValueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; + +// @public +export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamedValueListByServiceNextResponse = NamedValueCollection; + +// @public +export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: boolean; + skip?: number; + top?: number; +} + +// @public +export type NamedValueListByServiceResponse = NamedValueCollection; + +// @public +export interface NamedValueListValueHeaders { + eTag?: string; +} + +// @public +export interface NamedValueListValueOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NamedValueListValueResponse = NamedValueListValueHeaders & NamedValueSecretContract; + +// @public +export interface NamedValueRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface NamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface NamedValueSecretContract { + value?: string; +} + +// @public +export interface NamedValueUpdateHeaders { + eTag?: string; +} + +// @public +export interface NamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface NamedValueUpdateParameterProperties extends NamedValueEntityBaseParameters { + displayName?: string; + keyVault?: KeyVaultContractCreateProperties; + value?: string; +} + +// @public +export interface NamedValueUpdateParameters { + displayName?: string; + keyVault?: KeyVaultContractCreateProperties; + secret?: boolean; + tags?: string[]; + value?: string; +} + +// @public +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & NamedValueContract; + +// @public +export type NatGatewayState = string; + +// @public +export interface NetworkStatus { + listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: NetworkStatusListByLocationOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: NetworkStatusListByServiceOptionalParams): Promise; +} + +// @public +export interface NetworkStatusContract { + connectivityStatus: ConnectivityStatusContract[]; + dnsServers: string[]; +} + +// @public +export interface NetworkStatusContractByLocation { + location?: string; + networkStatus?: NetworkStatusContract; +} + +// @public +export interface NetworkStatusListByLocationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkStatusListByLocationResponse = NetworkStatusContract; + +// @public +export interface NetworkStatusListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; + +// @public +interface Notification_2 { + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: NotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +} +export { Notification_2 as Notification } + +// @public +export interface NotificationCollection { + count?: number; + nextLink?: string; + value?: NotificationContract[]; +} + +// @public +export interface NotificationContract extends ProxyResource { + description?: string; + recipients?: RecipientsContractProperties; + title?: string; +} + +// @public +export interface NotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type NotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface NotificationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationGetResponse = NotificationContract; + +// @public +export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface NotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type NotificationListByServiceResponse = NotificationCollection; + +// @public +export type NotificationName = string; + +// @public +export interface NotificationRecipientEmail { + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationRecipientEmailListByNotificationOptionalParams): Promise; +} + +// @public +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +// @public +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface NotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; + +// @public +export interface NotificationRecipientUser { + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationRecipientUserListByNotificationOptionalParams): Promise; +} + +// @public +export interface NotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface NotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface NotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; + +// @public +export interface OAuth2AuthenticationSettingsContract { + authorizationServerId?: string; + scope?: string; +} + +// @public +export type OAuth2GrantType = string; + +// @public +export interface OpenIdAuthenticationSettingsContract { + bearerTokenSendingMethods?: BearerTokenSendingMethods[]; + openidProviderId?: string; +} + +// @public +export interface OpenIdConnectProvider { + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: OpenidConnectProviderContract, options?: OpenIdConnectProviderCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, opid: string, ifMatch: string, options?: OpenIdConnectProviderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: OpenIdConnectProviderListByServiceOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderListSecretsOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, options?: OpenIdConnectProviderUpdateOptionalParams): Promise; +} + +// @public +export interface OpenIdConnectProviderCollection { + count?: number; + nextLink?: string; + value?: OpenidConnectProviderContract[]; +} + +// @public +export interface OpenidConnectProviderContract extends ProxyResource { + clientId?: string; + clientSecret?: string; + description?: string; + displayName?: string; + metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface OpenIdConnectProviderCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & OpenidConnectProviderContract; + +// @public +export interface OpenIdConnectProviderDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface OpenIdConnectProviderGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; + +// @public +export interface OpenIdConnectProviderGetHeaders { + eTag?: string; +} + +// @public +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & OpenidConnectProviderContract; + +// @public +export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; + +// @public +export interface OpenIdConnectProviderListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; + +// @public +export interface OpenIdConnectProviderListSecretsHeaders { + eTag?: string; +} + +// @public +export interface OpenIdConnectProviderListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & ClientSecretContract; + +// @public +export interface OpenidConnectProviderUpdateContract { + clientId?: string; + clientSecret?: string; + description?: string; + displayName?: string; + metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface OpenIdConnectProviderUpdateHeaders { + eTag?: string; +} + +// @public +export interface OpenIdConnectProviderUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & OpenidConnectProviderContract; + +// @public +export interface Operation { + display?: OperationDisplay; + name?: string; + origin?: string; + properties?: Record; +} + +// @public +export interface OperationCollection { + count?: number; + readonly nextLink?: string; + readonly value?: OperationContract[]; +} + +// @public +export interface OperationContract extends ProxyResource { + description?: string; + displayName?: string; + method?: string; + policies?: string; + request?: RequestContract; + responses?: ResponseContract[]; + templateParameters?: ParameterContract[]; + urlTemplate?: string; +} + +// @public +export interface OperationContractProperties extends OperationEntityBaseContract { + displayName: string; + method: string; + urlTemplate: string; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface OperationEntityBaseContract { + description?: string; + policies?: string; + request?: RequestContract; + responses?: ResponseContract[]; + templateParameters?: ParameterContract[]; +} + +// @public +export interface OperationListByTagsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationListByTagsNextResponse = TagResourceCollection; + +// @public +export interface OperationListByTagsOptionalParams extends coreClient.OperationOptions { + filter?: string; + includeNotTaggedOperations?: boolean; + skip?: number; + top?: number; +} + +// @public +export type OperationListByTagsResponse = TagResourceCollection; + +// @public +export interface OperationListResult { + nextLink?: string; + value?: Operation[]; +} + +// @public +export type OperationNameFormat = string; + +// @public +export interface OperationOperations { + listByTags(resourceGroupName: string, serviceName: string, apiId: string, options?: OperationListByTagsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationResultContract extends ProxyResource { + readonly actionLog?: OperationResultLogItemContract[]; + error?: ErrorResponseBody; + idPropertiesId?: string; + resultInfo?: string; + started?: Date; + status?: AsyncOperationStatus; + updated?: Date; +} + +// @public +export interface OperationResultLogItemContract { + action?: string; + objectKey?: string; + objectType?: string; +} + +// @public +export interface OperationTagResourceContractProperties { + readonly apiName?: string; + readonly apiRevision?: string; + readonly apiVersion?: string; + readonly description?: string; + id?: string; + readonly method?: string; + readonly name?: string; + readonly urlTemplate?: string; +} + +// @public +export interface OperationUpdateContract { + description?: string; + displayName?: string; + method?: string; + policies?: string; + request?: RequestContract; + responses?: ResponseContract[]; + templateParameters?: ParameterContract[]; + urlTemplate?: string; +} + +// @public +export interface OperationUpdateContractProperties extends OperationEntityBaseContract { + displayName?: string; + method?: string; + urlTemplate?: string; +} + +// @public +export type Origin = string; + +// @public +export interface OutboundEnvironmentEndpoint { + category?: string; + endpoints?: EndpointDependency[]; +} + +// @public +export interface OutboundEnvironmentEndpointList { + readonly nextLink?: string; + value: OutboundEnvironmentEndpoint[]; +} + +// @public +export interface OutboundNetworkDependenciesEndpoints { + listByService(resourceGroupName: string, serviceName: string, options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams): Promise; +} + +// @public +export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; + +// @public +export interface ParameterContract { + defaultValue?: string; + description?: string; + examples?: { + [propertyName: string]: ParameterExampleContract; + }; + name: string; + required?: boolean; + schemaId?: string; + type: string; + typeName?: string; + values?: string[]; +} + +// @public +export interface ParameterExampleContract { + description?: string; + externalValue?: string; + summary?: string; + value?: any; +} + +// @public +export interface PerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + +// @public +export interface PipelineDiagnosticSettings { + request?: HttpMessageDiagnostic; + response?: HttpMessageDiagnostic; +} + +// @public +export type PlatformVersion = string; + +// @public +export interface Policy { + createOrUpdate(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, options?: PolicyCreateOrUpdateOptionalParams): Promise; + 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): PagedAsyncIterableIterator; +} + +// @public +export interface PolicyCollection { + count?: number; + nextLink?: string; + value?: PolicyContract[]; +} + +// @public +export type PolicyContentFormat = string; + +// @public +export interface PolicyContract extends ProxyResource { + format?: PolicyContentFormat; + value?: string; +} + +// @public +export interface PolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyDescription { + listByService(resourceGroupName: string, serviceName: string, options?: PolicyDescriptionListByServiceOptionalParams): Promise; +} + +// @public +export interface PolicyDescriptionCollection { + count?: number; + value?: PolicyDescriptionContract[]; +} + +// @public +export interface PolicyDescriptionContract extends ProxyResource { + readonly description?: string; + readonly scope?: number; +} + +// @public +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { + scope?: PolicyScopeContract; +} + +// @public +export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; + +// @public +export type PolicyExportFormat = string; + +// @public +export interface PolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise, PolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise; + 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): PagedAsyncIterableIterator; + listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface PolicyFragmentCollection { + count?: number; + nextLink?: string; + value?: PolicyFragmentContract[]; +} + +// @public +export type PolicyFragmentContentFormat = string; + +// @public +export interface PolicyFragmentContract extends ProxyResource { + description?: string; + format?: PolicyFragmentContentFormat; + value?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +// @public +export interface PolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @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; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface PolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListReferencesResponse = ResourceCollection; + +// @public +export interface PolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; + +// @public +export interface PolicyGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +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 { +} + +// @public +export type PolicyListByServiceResponse = PolicyCollection; + +// @public +export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; + +// @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): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; +} + +// @public +export interface PortalConfigCollection { + readonly nextLink?: string; + value?: PortalConfigContract[]; +} + +// @public +export interface PortalConfigContract extends ProxyResource { + cors?: PortalConfigCorsProperties; + csp?: PortalConfigCspProperties; + delegation?: PortalConfigDelegationProperties; + enableBasicAuth?: boolean; + // (undocumented) + signin?: PortalConfigPropertiesSignin; + // (undocumented) + signup?: PortalConfigPropertiesSignup; +} + +// @public +export interface PortalConfigCorsProperties { + allowedOrigins?: string[]; +} + +// @public +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + +// @public +export interface PortalConfigCspProperties { + allowedSources?: string[]; + mode?: PortalSettingsCspMode; + reportUri?: string[]; +} + +// @public (undocumented) +export interface PortalConfigDelegationProperties { + delegateRegistration?: boolean; + delegateSubscription?: boolean; + delegationUrl?: string; + validationKey?: string; +} + +// @public +export interface PortalConfigGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; + +// @public +export interface PortalConfigGetHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions { +} + +// @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 { +} + +// @public +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +// @public (undocumented) +export interface PortalConfigPropertiesSignin { + require?: boolean; +} + +// @public (undocumented) +export interface PortalConfigPropertiesSignup { + termsOfService?: PortalConfigTermsOfServiceProperties; +} + +// @public +export interface PortalConfigTermsOfServiceProperties { + requireConsent?: boolean; + text?: string; +} + +// @public +export interface PortalConfigUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigUpdateResponse = PortalConfigContract; + +// @public +export interface PortalDelegationSettings extends ProxyResource { + subscriptions?: SubscriptionsDelegationSettingsProperties; + url?: string; + userRegistration?: RegistrationDelegationSettingsProperties; + validationKey?: string; +} + +// @public +export interface PortalRevision { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PortalRevisionCollection { + readonly nextLink?: string; + readonly value?: PortalRevisionContract[]; +} + +// @public +export interface PortalRevisionContract extends ProxyResource { + readonly createdDateTime?: Date; + description?: string; + isCurrent?: boolean; + readonly status?: PortalRevisionStatus; + readonly statusDetails?: string; + readonly updatedDateTime?: Date; +} + +// @public +export interface PortalRevisionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PortalRevisionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & PortalRevisionContract; + +// @public +export interface PortalRevisionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PortalRevisionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; + +// @public +export interface PortalRevisionGetHeaders { + eTag?: string; +} + +// @public +export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & PortalRevisionContract; + +// @public +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; + +// @public +export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; + +// @public +export type PortalRevisionStatus = string; + +// @public +export interface PortalRevisionUpdateHeaders { + eTag?: string; +} + +// @public +export interface PortalRevisionUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & PortalRevisionContract; + +// @public +export interface PortalSettings { + listByService(resourceGroupName: string, serviceName: string, options?: PortalSettingsListByServiceOptionalParams): Promise; +} + +// @public +export interface PortalSettingsCollection { + count?: number; + value?: PortalSettingsContract[]; +} + +// @public +export interface PortalSettingsContract extends ProxyResource { + enabled?: boolean; + subscriptions?: SubscriptionsDelegationSettingsProperties; + termsOfService?: TermsOfServiceProperties; + url?: string; + userRegistration?: RegistrationDelegationSettingsProperties; + validationKey?: string; +} + +// @public +export type PortalSettingsCspMode = string; + +// @public +export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; + +// @public +export interface PortalSettingValidationKeyContract { + validationKey?: string; +} + +// @public +export interface PortalSigninSettings extends ProxyResource { + enabled?: boolean; +} + +// @public +export interface PortalSignupSettings extends ProxyResource { + enabled?: boolean; + termsOfService?: TermsOfServiceProperties; +} + +// @public +export type PreferredIPVersion = string; + +// @public +export interface PrivateEndpoint { + readonly id?: string; +} + +// @public +export interface PrivateEndpointConnection extends Resource { + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +// @public +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + location?: string; +} + +// @public +export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionDeleteHeaders { + location?: string; +} + +// @public +export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; + +// @public +export interface PrivateEndpointConnectionListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; + +// @public +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; +} + +// @public +export interface PrivateEndpointConnectionOperations { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise; + getByName(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetByNameOptionalParams): Promise; + getPrivateLinkResource(resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListByServiceOptionalParams): PagedAsyncIterableIterator; + listPrivateLinkResources(resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams): Promise; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnectionRequest { + id?: string; + properties?: PrivateEndpointConnectionRequestProperties; +} + +// @public +export interface PrivateEndpointConnectionRequestProperties { + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; +} + +// @public +export type PrivateEndpointServiceConnectionStatus = string; + +// @public +export interface PrivateLinkResource extends Resource { + readonly groupId?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; +} + +// @public +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface Product { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: ProductContract, options?: ProductCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: ProductDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: ProductListByServiceOptionalParams): PagedAsyncIterableIterator; + listByTags(resourceGroupName: string, serviceName: string, options?: ProductListByTagsOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: ProductUpdateOptionalParams): Promise; +} + +// @public +export interface ProductApi { + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiDeleteOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiCreateOrUpdateResponse = ApiContract; + +// @public +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 { +} + +// @public +export type ProductApiListByProductNextResponse = ApiCollection; + +// @public +export interface ProductApiListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductApiListByProductResponse = ApiCollection; + +// @public +export interface ProductCollection { + count?: number; + nextLink?: string; + value?: ProductContract[]; +} + +// @public +export interface ProductContract extends ProxyResource { + approvalRequired?: boolean; + description?: string; + displayName?: string; + state?: ProductState; + subscriptionRequired?: boolean; + subscriptionsLimit?: number; + terms?: string; +} + +// @public +export interface ProductContractProperties extends ProductEntityBaseParameters { + displayName: string; +} + +// @public +export interface ProductCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & ProductContract; + +// @public +export interface ProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} + +// @public +export interface ProductEntityBaseParameters { + approvalRequired?: boolean; + description?: string; + state?: ProductState; + subscriptionRequired?: boolean; + subscriptionsLimit?: number; + terms?: string; +} + +// @public +export interface ProductGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; + +// @public +export interface ProductGetHeaders { + eTag?: string; +} + +// @public +export interface ProductGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGetResponse = ProductGetHeaders & ProductContract; + +// @public +export interface ProductGroup { + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupDeleteOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupCreateOrUpdateResponse = GroupContract; + +// @public +export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +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 interface ProductGroupLinkCollection { + count?: number; + nextLink?: string; + value?: ProductGroupLinkContract[]; +} + +// @public +export interface ProductGroupLinkContract extends ProxyResource { + groupId?: string; +} + +// @public +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +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; + tags?: string; + top?: number; +} + +// @public +export type ProductListByServiceResponse = ProductCollection; + +// @public +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductListByTagsNextResponse = TagResourceCollection; + +// @public +export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { + filter?: string; + includeNotTaggedProducts?: boolean; + skip?: number; + top?: number; +} + +// @public +export type ProductListByTagsResponse = TagResourceCollection; + +// @public +export interface ProductPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: ProductPolicyCreateOrUpdateOptionalParams): Promise; + 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): PagedAsyncIterableIterator; +} + +// @public +export interface ProductPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; + +// @public +export interface ProductPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface ProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @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 { +} + +// @public +export type ProductPolicyListByProductResponse = PolicyCollection; + +// @public +export type ProductState = "notPublished" | "published"; + +// @public +export interface ProductSubscriptions { + list(resourceGroupName: string, serviceName: string, productId: string, options?: ProductSubscriptionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; + +// @public +export interface ProductSubscriptionsListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductSubscriptionsListResponse = SubscriptionCollection; + +// @public +export interface ProductTagResourceContractProperties extends ProductEntityBaseParameters { + id?: string; + name: string; +} + +// @public +export interface ProductUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductUpdateParameters { + approvalRequired?: boolean; + description?: string; + displayName?: string; + state?: ProductState; + subscriptionRequired?: boolean; + subscriptionsLimit?: number; + terms?: string; +} + +// @public +export interface ProductUpdateProperties extends ProductEntityBaseParameters { + displayName?: string; +} + +// @public +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; + +// @public +export interface ProductWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: WikiContract, options?: ProductWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: ProductWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ProductWikiUpdateOptionalParams): Promise; +} + +// @public +export interface ProductWikiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & WikiContract; + +// @public +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductWikiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; + +// @public +export interface ProductWikiGetHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; + +// @public +export interface ProductWikis { + list(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikisListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductWikisListHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & WikiCollection; + +// @public +export interface ProductWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; + +// @public +export interface ProductWikiUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; + +// @public +export type Protocol = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export type PublicNetworkAccess = string; + +// @public +export interface QuotaByCounterKeys { + listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options?: QuotaByCounterKeysListByServiceOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, options?: QuotaByCounterKeysUpdateOptionalParams): Promise; +} + +// @public +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; + +// @public +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; + +// @public +export interface QuotaByPeriodKeys { + get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, options?: QuotaByPeriodKeysGetOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, options?: QuotaByPeriodKeysUpdateOptionalParams): Promise; +} + +// @public +export interface QuotaByPeriodKeysGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; + +// @public +export interface QuotaByPeriodKeysUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; + +// @public +export interface QuotaCounterCollection { + count?: number; + nextLink?: string; + value?: QuotaCounterContract[]; +} + +// @public +export interface QuotaCounterContract { + counterKey: string; + periodEndTime: Date; + periodKey: string; + periodStartTime: Date; + value?: QuotaCounterValueContractProperties; +} + +// @public +export interface QuotaCounterValueContract { + callsCount?: number; + kbTransferred?: number; +} + +// @public +export interface QuotaCounterValueContractProperties { + callsCount?: number; + kbTransferred?: number; +} + +// @public +export interface QuotaCounterValueUpdateContract { + callsCount?: number; + kbTransferred?: number; +} + +// @public +export interface RecipientEmailCollection { + count?: number; + nextLink?: string; + value?: RecipientEmailContract[]; +} + +// @public +export interface RecipientEmailContract extends ProxyResource { + email?: string; +} + +// @public +export interface RecipientsContractProperties { + emails?: string[]; + users?: string[]; +} + +// @public +export interface RecipientUserCollection { + count?: number; + nextLink?: string; + value?: RecipientUserContract[]; +} + +// @public +export interface RecipientUserContract extends ProxyResource { + userId?: string; +} + +// @public +export interface Region { + listByService(resourceGroupName: string, serviceName: string, options?: RegionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RegionContract { + isDeleted?: boolean; + isMasterRegion?: boolean; + readonly name?: string; +} + +// @public +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegionListByServiceNextResponse = RegionListResult; + +// @public +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RegionListByServiceResponse = RegionListResult; + +// @public +export interface RegionListResult { + count?: number; + nextLink?: string; + value?: RegionContract[]; +} + +// @public +export interface RegistrationDelegationSettingsProperties { + enabled?: boolean; +} + +// @public +export interface RemotePrivateEndpointConnectionWrapper { + readonly groupIds?: string[]; + id?: string; + name?: string; + privateEndpoint?: ArmIdWrapper; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: string; + type?: string; +} + +// @public +export interface ReportCollection { + count?: number; + nextLink?: string; + value?: ReportRecordContract[]; +} + +// @public +export interface ReportRecordContract { + apiId?: string; + apiRegion?: string; + apiTimeAvg?: number; + apiTimeMax?: number; + apiTimeMin?: number; + bandwidth?: number; + cacheHitCount?: number; + cacheMissCount?: number; + callCountBlocked?: number; + callCountFailed?: number; + callCountOther?: number; + callCountSuccess?: number; + callCountTotal?: number; + country?: string; + interval?: string; + name?: string; + operationId?: string; + readonly productId?: string; + region?: string; + serviceTimeAvg?: number; + serviceTimeMax?: number; + serviceTimeMin?: number; + subscriptionId?: string; + timestamp?: Date; + readonly userId?: string; + zip?: string; +} + +// @public +export interface Reports { + listByApi(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByApiOptionalParams): PagedAsyncIterableIterator; + listByGeo(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByGeoOptionalParams): PagedAsyncIterableIterator; + listByOperation(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByOperationOptionalParams): PagedAsyncIterableIterator; + listByProduct(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByProductOptionalParams): PagedAsyncIterableIterator; + listByRequest(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByRequestOptionalParams): PagedAsyncIterableIterator; + listBySubscription(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, options?: ReportsListByTimeOptionalParams): PagedAsyncIterableIterator; + listByUser(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByUserOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ReportsListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByApiNextResponse = ReportCollection; + +// @public +export interface ReportsListByApiOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListByApiResponse = ReportCollection; + +// @public +export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByGeoNextResponse = ReportCollection; + +// @public +export interface ReportsListByGeoOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type ReportsListByGeoResponse = ReportCollection; + +// @public +export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByOperationNextResponse = ReportCollection; + +// @public +export interface ReportsListByOperationOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListByOperationResponse = ReportCollection; + +// @public +export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByProductNextResponse = ReportCollection; + +// @public +export interface ReportsListByProductOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListByProductResponse = ReportCollection; + +// @public +export interface ReportsListByRequestOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type ReportsListByRequestResponse = RequestReportCollection; + +// @public +export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListBySubscriptionNextResponse = ReportCollection; + +// @public +export interface ReportsListBySubscriptionOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListBySubscriptionResponse = ReportCollection; + +// @public +export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByTimeNextResponse = ReportCollection; + +// @public +export interface ReportsListByTimeOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListByTimeResponse = ReportCollection; + +// @public +export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ReportsListByUserNextResponse = ReportCollection; + +// @public +export interface ReportsListByUserOptionalParams extends coreClient.OperationOptions { + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type ReportsListByUserResponse = ReportCollection; + +// @public +export interface RepresentationContract { + contentType: string; + examples?: { + [propertyName: string]: ParameterExampleContract; + }; + formParameters?: ParameterContract[]; + schemaId?: string; + typeName?: string; +} + +// @public +export interface RequestContract { + description?: string; + headers?: ParameterContract[]; + queryParameters?: ParameterContract[]; + representations?: RepresentationContract[]; +} + +// @public +export interface RequestReportCollection { + count?: number; + value?: RequestReportRecordContract[]; +} + +// @public +export interface RequestReportRecordContract { + apiId?: string; + apiRegion?: string; + apiTime?: number; + backendResponseCode?: string; + cache?: string; + ipAddress?: string; + method?: string; + operationId?: string; + readonly productId?: string; + requestId?: string; + requestSize?: number; + responseCode?: number; + responseSize?: number; + serviceTime?: number; + subscriptionId?: string; + timestamp?: Date; + url?: string; + readonly userId?: string; +} + +// @public +export interface ResolverCollection { + count?: number; + readonly nextLink?: string; + readonly value?: ResolverContract[]; } // @public -export enum KnownProtocol { - Http = "http", - Https = "https", - Ws = "ws", - Wss = "wss" +export interface ResolverContract extends ProxyResource { + description?: string; + displayName?: string; + path?: string; } // @public -export enum KnownPublicNetworkAccess { - Disabled = "Disabled", - Enabled = "Enabled" +export interface ResolverResultContract extends ProxyResource { + readonly actionLog?: ResolverResultLogItemContract[]; + error?: ErrorResponseBody; + idPropertiesId?: string; + resultInfo?: string; + started?: Date; + status?: AsyncResolverStatus; + updated?: Date; } // @public -export enum KnownResourceSkuCapacityScaleType { - Automatic = "automatic", - Manual = "manual", - None = "none" +export interface ResolverResultLogItemContract { + action?: string; + objectKey?: string; + objectType?: string; } // @public -export enum KnownSamplingType { - Fixed = "fixed" +export interface ResolverUpdateContract { + description?: string; + displayName?: string; + path?: string; } // @public -export enum KnownSchemaType { - Json = "json", - Xml = "xml" +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly type?: string; } // @public -export enum KnownSettingsTypeName { - Public = "public" +export interface ResourceCollection { + count?: number; + nextLink?: string; + value?: ResourceCollectionValueItem[]; +} + +// @public (undocumented) +export interface ResourceCollectionValueItem extends ProxyResource { } // @public -export enum KnownSeverity { - Error = "Error", - Warning = "Warning" +export interface ResourceLocationDataContract { + city?: string; + countryOrRegion?: string; + district?: string; + name: string; } // @public -export enum KnownSkuType { - Basic = "Basic", - Consumption = "Consumption", - Developer = "Developer", - Isolated = "Isolated", - Premium = "Premium", - Standard = "Standard" +export interface ResourceSku { + name?: SkuType; } // @public -export enum KnownSoapApiType { - GraphQL = "graphql", - SoapPassThrough = "soap", - SoapToRest = "http", - WebSocket = "websocket" +export interface ResourceSkuCapacity { + readonly default?: number; + readonly maximum?: number; + readonly minimum?: number; + readonly scaleType?: ResourceSkuCapacityScaleType; } // @public -export enum KnownState { - Closed = "closed", - Open = "open", - Proposed = "proposed", - Removed = "removed", - Resolved = "resolved" +export type ResourceSkuCapacityScaleType = string; + +// @public +export interface ResourceSkuResult { + readonly capacity?: ResourceSkuCapacity; + readonly resourceType?: string; + readonly sku?: ResourceSku; } // @public -export enum KnownTemplateName { - AccountClosedDeveloper = "accountClosedDeveloper", - ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", - ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", - EmailChangeIdentityDefault = "emailChangeIdentityDefault", - InviteUserNotificationMessage = "inviteUserNotificationMessage", - NewCommentNotificationMessage = "newCommentNotificationMessage", - NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", - NewIssueNotificationMessage = "newIssueNotificationMessage", - PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", - PasswordResetIdentityDefault = "passwordResetIdentityDefault", - PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", - QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", - RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", - RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +export interface ResourceSkuResults { + nextLink?: string; + value: ResourceSkuResult[]; } // @public -export enum KnownUserState { - Active = "active", - Blocked = "blocked", - Deleted = "deleted", - Pending = "pending" +export interface ResponseContract { + description?: string; + headers?: ParameterContract[]; + representations?: RepresentationContract[]; + statusCode: number; } // @public -export enum KnownVerbosity { - Error = "error", - Information = "information", - Verbose = "verbose" +export interface SamplingSettings { + percentage?: number; + samplingType?: SamplingType; } // @public -export enum KnownVersioningScheme { - Header = "Header", - Query = "Query", - Segment = "Segment" +export type SamplingType = string; + +// @public +export interface SaveConfigurationParameter { + branch?: string; + force?: boolean; +} + +// @public +export interface SchemaCollection { + count?: number; + readonly nextLink?: string; + readonly value?: SchemaContract[]; +} + +// @public +export interface SchemaContract extends ProxyResource { + components?: Record; + contentType?: string; + definitions?: Record; + value?: string; +} + +// @public +export type SchemaType = string; + +// @public +export type SettingsTypeName = string; + +// @public +export type Severity = string; + +// @public +export interface SignInSettings { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, options?: SignInSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, options?: SignInSettingsGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, options?: SignInSettingsGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalSigninSettings, options?: SignInSettingsUpdateOptionalParams): Promise; +} + +// @public +export interface SignInSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; + +// @public +export interface SignInSettingsGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownVirtualNetworkType { - External = "External", - Internal = "Internal", - None = "None" -} +export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; + +// @public +export interface SignInSettingsGetHeaders { + eTag?: string; +} + +// @public +export interface SignInSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & PortalSigninSettings; + +// @public +export interface SignInSettingsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SignUpSettings { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, options?: SignUpSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, options?: SignUpSettingsGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, options?: SignUpSettingsGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalSignupSettings, options?: SignUpSettingsUpdateOptionalParams): Promise; +} + +// @public +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; + +// @public +export interface SignUpSettingsGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; + +// @public +export interface SignUpSettingsGetHeaders { + eTag?: string; +} + +// @public +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & PortalSignupSettings; + +// @public +export interface SignUpSettingsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SkuType = string; + +// @public +export type SoapApiType = string; // @public -export interface Logger { - createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options?: LoggerDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options?: LoggerGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, options?: LoggerUpdateOptionalParams): Promise; +export type State = string; + +// @public +export interface Subscription { + createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: SubscriptionCreateParameters, options?: SubscriptionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, sid: string, ifMatch: string, options?: SubscriptionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionGetEntityTagOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, options?: SubscriptionListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: SubscriptionUpdateOptionalParams): Promise; } // @public -export interface LoggerCollection { +export interface SubscriptionCollection { count?: number; nextLink?: string; - value?: LoggerContract[]; + value?: SubscriptionContract[]; } // @public -export interface LoggerContract extends Resource { - credentials?: { - [propertyName: string]: string; - }; - description?: string; - isBuffered?: boolean; - loggerType?: LoggerType; - resourceId?: string; +export interface SubscriptionContract extends ProxyResource { + allowTracing?: boolean; + readonly createdDate?: Date; + displayName?: string; + endDate?: Date; + expirationDate?: Date; + notificationDate?: Date; + ownerId?: string; + primaryKey?: string; + scope?: string; + secondaryKey?: string; + startDate?: Date; + state?: SubscriptionState; + stateComment?: string; } // @public -export interface LoggerCreateOrUpdateHeaders { +export interface SubscriptionCreateOrUpdateHeaders { eTag?: string; } // @public -export interface LoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; ifMatch?: string; + notify?: boolean; } // @public -export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & LoggerContract; +export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & SubscriptionContract; // @public -export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionCreateParameters { + allowTracing?: boolean; + displayName?: string; + ownerId?: string; + primaryKey?: string; + scope?: string; + secondaryKey?: string; + state?: SubscriptionState; } // @public -export interface LoggerGetEntityTagHeaders { +export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SubscriptionGetEntityTagHeaders { eTag?: string; } // @public -export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; // @public -export interface LoggerGetHeaders { +export interface SubscriptionGetHeaders { eTag?: string; } // @public -export interface LoggerGetOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions { } // @public -export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; +export type SubscriptionGetResponse = SubscriptionGetHeaders & SubscriptionContract; // @public -export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionKeyParameterNamesContract { + header?: string; + query?: string; } // @public -export type LoggerListByServiceNextResponse = LoggerCollection; +export interface SubscriptionKeysContract { + primaryKey?: string; + secondaryKey?: string; +} // @public -export interface LoggerListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type LoggerListByServiceResponse = LoggerCollection; +export type SubscriptionListNextResponse = SubscriptionCollection; // @public -export type LoggerType = string; +export interface SubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} // @public -export interface LoggerUpdateContract { - credentials?: { - [propertyName: string]: string; - }; - description?: string; - isBuffered?: boolean; - loggerType?: LoggerType; -} +export type SubscriptionListResponse = SubscriptionCollection; // @public -export interface LoggerUpdateHeaders { +export interface SubscriptionListSecretsHeaders { eTag?: string; } // @public -export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions { +export interface SubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { } // @public -export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; +export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & SubscriptionKeysContract; // @public -export type Method = string; +export interface SubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} // @public -export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; +export interface SubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} // @public -export interface NamedValue { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise; - beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; - beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: NamedValueDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: NamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; - listValue(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueListValueOptionalParams): Promise; +export interface SubscriptionsDelegationSettingsProperties { + enabled?: boolean; } // @public -export interface NamedValueCollection { - count?: number; - nextLink?: string; - value?: NamedValueContract[]; -} +export type SubscriptionState = "suspended" | "active" | "expired" | "submitted" | "rejected" | "cancelled"; // @public -export interface NamedValueContract extends Resource { - displayName?: string; - keyVault?: KeyVaultContractProperties; - secret?: boolean; - tags?: string[]; - value?: string; +export interface SubscriptionUpdateHeaders { + eTag?: string; } // @public -export interface NamedValueContractProperties extends NamedValueEntityBaseParameters { - displayName: string; - keyVault?: KeyVaultContractProperties; - value?: string; +export interface SubscriptionUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + notify?: boolean; } // @public -export interface NamedValueCreateContract extends Resource { +export interface SubscriptionUpdateParameters { + allowTracing?: boolean; displayName?: string; - keyVault?: KeyVaultContractCreateProperties; - secret?: boolean; - tags?: string[]; - value?: string; + expirationDate?: Date; + ownerId?: string; + primaryKey?: string; + scope?: string; + secondaryKey?: string; + state?: SubscriptionState; + stateComment?: string; } // @public -export interface NamedValueCreateContractProperties extends NamedValueEntityBaseParameters { - displayName: string; - keyVault?: KeyVaultContractCreateProperties; - value?: string; -} +export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & SubscriptionContract; // @public -export interface NamedValueCreateOrUpdateHeaders { - eTag?: string; +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; } // @public -export interface NamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; - resumeFrom?: string; - updateIntervalInMs?: number; +export interface Tag { + assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagAssignToApiOptionalParams): Promise; + assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagAssignToOperationOptionalParams): Promise; + assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagAssignToProductOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, options?: TagCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, options?: TagDeleteOptionalParams): Promise; + detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagDetachFromApiOptionalParams): Promise; + detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagDetachFromOperationOptionalParams): Promise; + detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagDetachFromProductOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, options?: TagGetOptionalParams): Promise; + getByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagGetByApiOptionalParams): Promise; + getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagGetByOperationOptionalParams): Promise; + getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagGetByProductOptionalParams): Promise; + getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: TagGetEntityStateOptionalParams): Promise; + getEntityStateByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagGetEntityStateByApiOptionalParams): Promise; + getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagGetEntityStateByOperationOptionalParams): Promise; + getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagGetEntityStateByProductOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: TagListByApiOptionalParams): PagedAsyncIterableIterator; + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: TagListByOperationOptionalParams): PagedAsyncIterableIterator; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: TagListByProductOptionalParams): PagedAsyncIterableIterator; + listByService(resourceGroupName: string, serviceName: string, options?: TagListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: TagUpdateOptionalParams): Promise; } // @public -export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & NamedValueContract; +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 NamedValueDeleteOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkCollection { + count?: number; + nextLink?: string; + value?: TagApiLinkContract[]; } // @public -export interface NamedValueEntityBaseParameters { - secret?: boolean; - tags?: string[]; +export interface TagApiLinkContract extends ProxyResource { + apiId?: string; } // @public -export interface NamedValueGetEntityTagHeaders { - eTag?: string; +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { -} +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; // @public -export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface NamedValueGetHeaders { +export interface TagApiLinkGetHeaders { eTag?: string; } // @public -export interface NamedValueGetOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; // @public -export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type NamedValueListByServiceNextResponse = NamedValueCollection; +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; // @public -export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { filter?: string; - isKeyVaultRefreshFailed?: boolean; skip?: number; top?: number; } // @public -export type NamedValueListByServiceResponse = NamedValueCollection; +export type TagApiLinkListByProductResponse = TagApiLinkCollection; // @public -export interface NamedValueListValueHeaders { +export interface TagAssignToApiHeaders { eTag?: string; } // @public -export interface NamedValueListValueOptionalParams extends coreClient.OperationOptions { +export interface TagAssignToApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +// @public +export interface TagAssignToOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToOperationResponse = TagContract; + +// @public +export interface TagAssignToProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToProductResponse = TagContract; + +// @public +export interface TagCollection { + count?: number; + nextLink?: string; + value?: TagContract[]; } // @public -export type NamedValueListValueResponse = NamedValueListValueHeaders & NamedValueSecretContract; +export interface TagContract extends ProxyResource { + displayName?: string; +} // @public -export interface NamedValueRefreshSecretHeaders { +export interface TagCreateOrUpdateHeaders { eTag?: string; } // @public -export interface NamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface TagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & NamedValueContract; +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; // @public -export interface NamedValueSecretContract { - value?: string; +export interface TagCreateUpdateParameters { + displayName?: string; } // @public -export interface NamedValueUpdateHeaders { - eTag?: string; +export interface TagDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface NamedValueUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface TagDescriptionBaseProperties { + description?: string; + externalDocsDescription?: string; + externalDocsUrl?: string; } // @public -export interface NamedValueUpdateParameterProperties extends NamedValueEntityBaseParameters { - displayName?: string; - keyVault?: KeyVaultContractCreateProperties; - value?: string; +export interface TagDescriptionCollection { + count?: number; + nextLink?: string; + value?: TagDescriptionContract[]; } // @public -export interface NamedValueUpdateParameters { +export interface TagDescriptionContract extends ProxyResource { + description?: string; displayName?: string; - keyVault?: KeyVaultContractCreateProperties; - secret?: boolean; - tags?: string[]; - value?: string; + externalDocsDescription?: string; + externalDocsUrl?: string; + tagId?: string; } // @public -export type NamedValueUpdateResponse = NamedValueUpdateHeaders & NamedValueContract; +export interface TagDescriptionContractProperties extends TagDescriptionBaseProperties { + displayName?: string; + tagId?: string; +} // @public -export interface NetworkStatus { - listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: NetworkStatusListByLocationOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: NetworkStatusListByServiceOptionalParams): Promise; +export interface TagDescriptionCreateParameters { + description?: string; + externalDocsDescription?: string; + externalDocsUrl?: string; } // @public -export interface NetworkStatusContract { - connectivityStatus: ConnectivityStatusContract[]; - dnsServers: string[]; +export interface TagDetachFromApiOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkStatusContractByLocation { - location?: string; - networkStatus?: NetworkStatusContract; +export interface TagDetachFromOperationOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkStatusListByLocationOptionalParams extends coreClient.OperationOptions { +export interface TagDetachFromProductOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkStatusListByLocationResponse = NetworkStatusContract; +export interface TagGetByApiHeaders { + eTag?: string; +} // @public -export interface NetworkStatusListByServiceOptionalParams extends coreClient.OperationOptions { +export interface TagGetByApiOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; +export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; // @public -interface Notification_2 { - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationGetOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: NotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface TagGetByOperationHeaders { + eTag?: string; } -export { Notification_2 as Notification } // @public -export interface NotificationCollection { - count?: number; - nextLink?: string; - value?: NotificationContract[]; +export interface TagGetByOperationOptionalParams extends coreClient.OperationOptions { } // @public -export interface NotificationContract extends Resource { - description?: string; - recipients?: RecipientsContractProperties; - title?: string; -} +export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; // @public -export interface NotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface TagGetByProductHeaders { + eTag?: string; } // @public -export type NotificationCreateOrUpdateResponse = NotificationContract; - -// @public -export interface NotificationGetOptionalParams extends coreClient.OperationOptions { +export interface TagGetByProductOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationGetResponse = NotificationContract; +export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; // @public -export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface TagGetEntityStateByApiHeaders { + eTag?: string; } // @public -export type NotificationListByServiceNextResponse = NotificationCollection; - -// @public -export interface NotificationListByServiceOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; +export interface TagGetEntityStateByApiOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationListByServiceResponse = NotificationCollection; +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; // @public -export type NotificationName = string; +export interface TagGetEntityStateByOperationHeaders { + eTag?: string; +} // @public -export interface NotificationRecipientEmail { - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, notificationName: NotificationName, email: string, options?: NotificationRecipientEmailDeleteOptionalParams): Promise; - listByNotification(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationRecipientEmailListByNotificationOptionalParams): Promise; +export interface TagGetEntityStateByOperationOptionalParams extends coreClient.OperationOptions { } // @public -export interface NotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { -} +export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; // @public -export type NotificationRecipientEmailCheckEntityExistsResponse = { - body: boolean; -}; +export interface TagGetEntityStateByProductHeaders { + eTag?: string; +} // @public -export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface TagGetEntityStateByProductOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; +export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; // @public -export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +export interface TagGetEntityStateHeaders { + eTag?: string; } // @public -export interface NotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +export interface TagGetEntityStateOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; // @public -export interface NotificationRecipientUser { - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserCheckEntityExistsOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, notificationName: NotificationName, userId: string, options?: NotificationRecipientUserDeleteOptionalParams): Promise; - listByNotification(resourceGroupName: string, serviceName: string, notificationName: NotificationName, options?: NotificationRecipientUserListByNotificationOptionalParams): Promise; +export interface TagGetHeaders { + eTag?: string; } // @public -export interface NotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +export interface TagGetOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +export type TagGetResponse = TagGetHeaders & TagContract; // @public -export interface NotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface TagListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; - -// @public -export interface NotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { -} +export type TagListByApiNextResponse = TagCollection; // @public -export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +export interface TagListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; +export type TagListByApiResponse = TagCollection; // @public -export interface OAuth2AuthenticationSettingsContract { - authorizationServerId?: string; - scope?: string; +export interface TagListByOperationNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OpenIdAuthenticationSettingsContract { - bearerTokenSendingMethods?: BearerTokenSendingMethods[]; - openidProviderId?: string; -} +export type TagListByOperationNextResponse = TagCollection; // @public -export interface OpenIdConnectProvider { - createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: OpenidConnectProviderContract, options?: OpenIdConnectProviderCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, opid: string, ifMatch: string, options?: OpenIdConnectProviderDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: OpenIdConnectProviderListByServiceOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: OpenIdConnectProviderListSecretsOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, options?: OpenIdConnectProviderUpdateOptionalParams): Promise; +export interface TagListByOperationOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface OpenIdConnectProviderCollection { - count?: number; - nextLink?: string; - value?: OpenidConnectProviderContract[]; -} +export type TagListByOperationResponse = TagCollection; // @public -export interface OpenidConnectProviderContract extends Resource { - clientId?: string; - clientSecret?: string; - description?: string; - displayName?: string; - metadataEndpoint?: string; +export interface TagListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OpenIdConnectProviderCreateOrUpdateHeaders { - eTag?: string; -} +export type TagListByProductNextResponse = TagCollection; // @public -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface TagListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & OpenidConnectProviderContract; +export type TagListByProductResponse = TagCollection; // @public -export interface OpenIdConnectProviderDeleteOptionalParams extends coreClient.OperationOptions { +export interface TagListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OpenIdConnectProviderGetEntityTagHeaders { - eTag?: string; -} +export type TagListByServiceNextResponse = TagCollection; // @public -export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface TagListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + scope?: string; + skip?: number; + top?: number; } // @public -export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; +export type TagListByServiceResponse = TagCollection; // @public -export interface OpenIdConnectProviderGetHeaders { - eTag?: string; +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 OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions { +export interface TagOperationLinkCollection { + count?: number; + nextLink?: string; + value?: TagOperationLinkContract[]; } // @public -export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & OpenidConnectProviderContract; - -// @public -export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface TagOperationLinkContract extends ProxyResource { + operationId?: string; } // @public -export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface OpenIdConnectProviderListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; -} +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; // @public -export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface OpenIdConnectProviderListSecretsHeaders { +export interface TagOperationLinkGetHeaders { eTag?: string; } // @public -export interface OpenIdConnectProviderListSecretsOptionalParams extends coreClient.OperationOptions { +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & ClientSecretContract; +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & TagOperationLinkContract; // @public -export interface OpenidConnectProviderUpdateContract { - clientId?: string; - clientSecret?: string; - description?: string; - displayName?: string; - metadataEndpoint?: string; +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OpenIdConnectProviderUpdateHeaders { - eTag?: string; -} +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; // @public -export interface OpenIdConnectProviderUpdateOptionalParams extends coreClient.OperationOptions { +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & OpenidConnectProviderContract; +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; // @public -export interface Operation { - display?: OperationDisplay; - name?: string; - origin?: string; - properties?: Record; +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 OperationCollection { +export interface TagProductLinkCollection { count?: number; - readonly nextLink?: string; - readonly value?: OperationContract[]; + nextLink?: string; + value?: TagProductLinkContract[]; } // @public -export interface OperationContract extends Resource { - description?: string; - displayName?: string; - method?: string; - policies?: string; - request?: RequestContract; - responses?: ResponseContract[]; - templateParameters?: ParameterContract[]; - urlTemplate?: string; +export interface TagProductLinkContract extends ProxyResource { + productId?: string; } // @public -export interface OperationContractProperties extends OperationEntityBaseContract { - displayName: string; - method: string; - urlTemplate: string; +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationEntityBaseContract { - description?: string; - policies?: string; - request?: RequestContract; - responses?: ResponseContract[]; - templateParameters?: ParameterContract[]; +export interface TagProductLinkGetHeaders { + eTag?: string; } // @public -export interface OperationListByTagsNextOptionalParams extends coreClient.OperationOptions { +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationListByTagsNextResponse = TagResourceCollection; +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & TagProductLinkContract; // @public -export interface OperationListByTagsOptionalParams extends coreClient.OperationOptions { - filter?: string; - includeNotTaggedOperations?: boolean; - skip?: number; - top?: number; +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationListByTagsResponse = TagResourceCollection; +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; // @public -export interface OperationListResult { - nextLink?: string; - value?: Operation[]; +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type OperationNameFormat = string; +export type TagProductLinkListByProductResponse = TagProductLinkCollection; // @public -export interface OperationOperations { - listByTags(resourceGroupName: string, serviceName: string, apiId: string, options?: OperationListByTagsOptionalParams): PagedAsyncIterableIterator; +export interface TagResource { + listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OperationResultContract extends Resource { - readonly actionLog?: OperationResultLogItemContract[]; - error?: ErrorResponseBody; - idPropertiesId?: string; - resultInfo?: string; - started?: Date; - status?: AsyncOperationStatus; - updated?: Date; +export interface TagResourceCollection { + count?: number; + nextLink?: string; + value?: TagResourceContract[]; } // @public -export interface OperationResultLogItemContract { - action?: string; - objectKey?: string; - objectType?: string; +export interface TagResourceContract { + api?: ApiTagResourceContractProperties; + operation?: OperationTagResourceContractProperties; + product?: ProductTagResourceContractProperties; + tag: TagResourceContractProperties; } // @public -export interface OperationTagResourceContractProperties { - readonly apiName?: string; - readonly apiRevision?: string; - readonly apiVersion?: string; - readonly description?: string; +export interface TagResourceContractProperties { id?: string; - readonly method?: string; - readonly name?: string; - readonly urlTemplate?: string; + name?: string; } // @public -export interface OperationUpdateContract { - description?: string; - displayName?: string; - method?: string; - policies?: string; - request?: RequestContract; - responses?: ResponseContract[]; - templateParameters?: ParameterContract[]; - urlTemplate?: string; +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationUpdateContractProperties extends OperationEntityBaseContract { - displayName?: string; - method?: string; - urlTemplate?: string; -} +export type TagResourceListByServiceNextResponse = TagResourceCollection; // @public -export type Origin = string; +export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} // @public -export interface OutboundEnvironmentEndpoint { - category?: string; - endpoints?: EndpointDependency[]; -} +export type TagResourceListByServiceResponse = TagResourceCollection; // @public -export interface OutboundEnvironmentEndpointList { - readonly nextLink?: string; - value: OutboundEnvironmentEndpoint[]; +export interface TagUpdateHeaders { + eTag?: string; } // @public -export interface OutboundNetworkDependenciesEndpoints { - listByService(resourceGroupName: string, serviceName: string, options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams): Promise; +export interface TagUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams extends coreClient.OperationOptions { -} +export type TagUpdateResponse = TagUpdateHeaders & TagContract; // @public -export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; +export type TemplateName = string; // @public -export interface ParameterContract { - defaultValue?: string; - description?: string; - examples?: { - [propertyName: string]: ParameterExampleContract; - }; - name: string; - required?: boolean; - schemaId?: string; - type: string; - typeName?: string; - values?: string[]; +export interface TenantAccess { + create(resourceGroupName: string, serviceName: string, accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, options?: TenantAccessCreateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: TenantAccessListByServiceOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, options?: TenantAccessUpdateOptionalParams): Promise; } // @public -export interface ParameterExampleContract { - description?: string; - externalValue?: string; - summary?: string; - value?: any; +export interface TenantAccessCreateHeaders { + eTag?: string; } // @public -export interface PerformConnectivityCheckAsyncOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface TenantAccessCreateOptionalParams extends coreClient.OperationOptions { } // @public -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; +export type TenantAccessCreateResponse = TenantAccessCreateHeaders & AccessInformationContract; // @public -export interface PipelineDiagnosticSettings { - request?: HttpMessageDiagnostic; - response?: HttpMessageDiagnostic; +export interface TenantAccessGetEntityTagHeaders { + eTag?: string; } // @public -export type PlatformVersion = string; +export interface TenantAccessGetEntityTagOptionalParams extends coreClient.OperationOptions { +} // @public -export interface Policy { - createOrUpdate(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, options?: PolicyCreateOrUpdateOptionalParams): Promise; - 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; +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; + +// @public +export interface TenantAccessGetHeaders { + eTag?: string; } // @public -export interface PolicyCollection { - count?: number; - nextLink?: string; - value?: PolicyContract[]; +export interface TenantAccessGetOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyContentFormat = string; +export type TenantAccessGetResponse = TenantAccessGetHeaders & AccessInformationContract; // @public -export interface PolicyContract extends Resource { - format?: PolicyContentFormat; - value?: string; +export interface TenantAccessGit { + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams): Promise; } // @public -export interface PolicyCreateOrUpdateHeaders { - eTag?: string; +export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { } // @public -export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & PolicyContract; +export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions { -} +export type TenantAccessListByServiceNextResponse = AccessInformationCollection; // @public -export interface PolicyDescription { - listByService(resourceGroupName: string, serviceName: string, options?: PolicyDescriptionListByServiceOptionalParams): Promise; +export interface TenantAccessListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; } // @public -export interface PolicyDescriptionCollection { - count?: number; - value?: PolicyDescriptionContract[]; -} +export type TenantAccessListByServiceResponse = AccessInformationCollection; // @public -export interface PolicyDescriptionContract extends Resource { - readonly description?: string; - readonly scope?: number; +export interface TenantAccessListSecretsHeaders { + eTag?: string; } // @public -export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - scope?: PolicyScopeContract; +export interface TenantAccessListSecretsOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & AccessInformationSecretsContract; // @public -export type PolicyExportFormat = string; +export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PolicyGetEntityTagHeaders { +export interface TenantAccessRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TenantAccessUpdateHeaders { eTag?: string; } // @public -export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface TenantAccessUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & AccessInformationContract; // @public -export interface PolicyGetHeaders { - eTag?: string; +export interface TenantConfiguration { + beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; + beginDeployAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise; + beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; + beginSaveAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise; + beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; + beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise; + getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } // @public -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { - format?: PolicyExportFormat; +export interface TenantConfigurationDeployHeaders { + // (undocumented) + location?: string; } // @public -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type PolicyIdName = string; +export type TenantConfigurationDeployResponse = OperationResultContract; // @public -export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { +export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyListByServiceResponse = PolicyCollection; - -// @public -export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; +export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; // @public -export interface PortalDelegationSettings extends Resource { - subscriptions?: SubscriptionsDelegationSettingsProperties; - url?: string; - userRegistration?: RegistrationDelegationSettingsProperties; - validationKey?: string; +export interface TenantConfigurationSaveHeaders { + // (undocumented) + location?: string; } // @public -export interface PortalRevision { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PortalRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PortalRevisionCollection { - readonly nextLink?: string; - readonly value?: PortalRevisionContract[]; -} +export type TenantConfigurationSaveResponse = OperationResultContract; // @public -export interface PortalRevisionContract extends Resource { - readonly createdDateTime?: Date; - description?: string; - isCurrent?: boolean; - readonly status?: PortalRevisionStatus; - readonly statusDetails?: string; - readonly updatedDateTime?: Date; +export interface TenantConfigurationSyncStateContract extends ProxyResource { + branch?: string; + commitId?: string; + configurationChangeDate?: Date; + isExport?: boolean; + isGitEnabled?: boolean; + isSynced?: boolean; + lastOperationId?: string; + syncDate?: Date; } // @public -export interface PortalRevisionCreateOrUpdateHeaders { - eTag?: string; +export interface TenantConfigurationValidateHeaders { + // (undocumented) + location?: string; } // @public -export interface PortalRevisionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & PortalRevisionContract; +export type TenantConfigurationValidateResponse = OperationResultContract; // @public -export interface PortalRevisionGetEntityTagHeaders { - eTag?: string; +export interface TenantSettings { + get(resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, options?: TenantSettingsGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: TenantSettingsListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PortalRevisionGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface TenantSettingsCollection { + readonly nextLink?: string; + readonly value?: TenantSettingsContract[]; } // @public -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export interface TenantSettingsContract extends ProxyResource { + settings?: { + [propertyName: string]: string; + }; +} // @public -export interface PortalRevisionGetHeaders { +export interface TenantSettingsGetHeaders { eTag?: string; } // @public -export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions { +export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & PortalRevisionContract; +export type TenantSettingsGetResponse = TenantSettingsGetHeaders & TenantSettingsContract; // @public -export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface TenantSettingsListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; +export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; // @public -export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { +export interface TenantSettingsListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; - skip?: number; - top?: number; } // @public -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; - -// @public -export type PortalRevisionStatus = string; +export type TenantSettingsListByServiceResponse = TenantSettingsCollection; // @public -export interface PortalRevisionUpdateHeaders { - eTag?: string; +export interface TermsOfServiceProperties { + consentRequired?: boolean; + enabled?: boolean; + text?: string; } // @public -export interface PortalRevisionUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface TokenBodyParameterContract { + name: string; + value: string; } // @public -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & PortalRevisionContract; +export type TranslateRequiredQueryParametersConduct = string; // @public -export interface PortalSettings { - listByService(resourceGroupName: string, serviceName: string, options?: PortalSettingsListByServiceOptionalParams): Promise; +export interface User { + 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; + getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: UserTokenParameters, options?: UserGetSharedAccessTokenOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: UserListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, parameters: UserUpdateParameters, options?: UserUpdateOptionalParams): Promise; } // @public -export interface PortalSettingsCollection { +export interface UserCollection { count?: number; - value?: PortalSettingsContract[]; + nextLink?: string; + value?: UserContract[]; } // @public -export interface PortalSettingsContract extends Resource { - enabled?: boolean; - subscriptions?: SubscriptionsDelegationSettingsProperties; - termsOfService?: TermsOfServiceProperties; - url?: string; - userRegistration?: RegistrationDelegationSettingsProperties; - validationKey?: string; +export interface UserConfirmationPassword { + send(resourceGroupName: string, serviceName: string, userId: string, options?: UserConfirmationPasswordSendOptionalParams): Promise; } // @public -export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions { +export interface UserConfirmationPasswordSendOptionalParams extends coreClient.OperationOptions { + appType?: AppType; } // @public -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; +export interface UserContract extends ProxyResource { + email?: string; + firstName?: string; + readonly groups?: GroupContractProperties[]; + identities?: UserIdentityContract[]; + lastName?: string; + note?: string; + registrationDate?: Date; + state?: UserState; +} // @public -export interface PortalSettingValidationKeyContract { - validationKey?: string; +export interface UserContractProperties extends UserEntityBaseParameters { + email?: string; + firstName?: string; + readonly groups?: GroupContractProperties[]; + lastName?: string; + registrationDate?: Date; } // @public -export interface PortalSigninSettings extends Resource { - enabled?: boolean; +export interface UserCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface PortalSignupSettings extends Resource { - enabled?: boolean; - termsOfService?: TermsOfServiceProperties; +export interface UserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + notify?: boolean; } // @public -export type PreferredIPVersion = string; +export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & UserContract; // @public -export interface PrivateEndpoint { - readonly id?: string; +export interface UserCreateParameterProperties extends UserEntityBaseParameters { + appType?: AppType; + confirmation?: Confirmation; + email: string; + firstName: string; + lastName: string; + password?: string; } // @public -export interface PrivateEndpointConnection extends Resource { - privateEndpoint?: PrivateEndpoint; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +export interface UserCreateParameters { + appType?: AppType; + confirmation?: Confirmation; + email?: string; + firstName?: string; + identities?: UserIdentityContract[]; + lastName?: string; + note?: string; + password?: string; + state?: UserState; } // @public -export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface UserDeleteOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + deleteSubscriptions?: boolean; + notify?: boolean; } // @public -export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; - -// @public -export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface UserEntityBaseParameters { + identities?: UserIdentityContract[]; + note?: string; + state?: UserState; } // @public -export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions { +export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; // @public -export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams extends coreClient.OperationOptions { +export interface UserGetEntityTagHeaders { + eTag?: string; } // @public -export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; - -// @public -export interface PrivateEndpointConnectionListByServiceOptionalParams extends coreClient.OperationOptions { +export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +export type UserGetEntityTagResponse = UserGetEntityTagHeaders; // @public -export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions { +export interface UserGetHeaders { + eTag?: string; } // @public -export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +export interface UserGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PrivateEndpointConnectionListResult { - value?: PrivateEndpointConnection[]; -} +export type UserGetResponse = UserGetHeaders & UserContract; // @public -export interface PrivateEndpointConnectionOperations { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise; - getByName(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetByNameOptionalParams): Promise; - getPrivateLinkResource(resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListByServiceOptionalParams): PagedAsyncIterableIterator; - listPrivateLinkResources(resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams): Promise; +export interface UserGetSharedAccessTokenOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionProvisioningState = string; +export type UserGetSharedAccessTokenResponse = UserTokenResult; // @public -export interface PrivateEndpointConnectionRequest { - id?: string; - properties?: PrivateEndpointConnectionRequestProperties; +export interface UserGroup { + list(resourceGroupName: string, serviceName: string, userId: string, options?: UserGroupListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PrivateEndpointConnectionRequestProperties { - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointServiceConnectionStatus = string; +export type UserGroupListNextResponse = GroupCollection; // @public -export interface PrivateLinkResource extends Resource { - readonly groupId?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; +export interface UserGroupListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface PrivateLinkResourceListResult { - value?: PrivateLinkResource[]; -} +export type UserGroupListResponse = GroupCollection; // @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; +export interface UserIdentities { + list(resourceGroupName: string, serviceName: string, userId: string, options?: UserIdentitiesListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface Product { - createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: ProductContract, options?: ProductCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: ProductDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: ProductListByServiceOptionalParams): PagedAsyncIterableIterator; - listByTags(resourceGroupName: string, serviceName: string, options?: ProductListByTagsOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: ProductUpdateOptionalParams): Promise; +export interface UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProductApi { - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiCheckEntityExistsOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: ProductApiDeleteOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiListByProductOptionalParams): PagedAsyncIterableIterator; -} +export type UserIdentitiesListNextResponse = UserIdentityCollection; // @public -export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +export interface UserIdentitiesListOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductApiCheckEntityExistsResponse = { - body: boolean; -}; +export type UserIdentitiesListResponse = UserIdentityCollection; // @public -export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface UserIdentityCollection { + count?: number; + nextLink?: string; + value?: UserIdentityContract[]; } // @public -export type ProductApiCreateOrUpdateResponse = ApiContract; +export interface UserIdentityContract { + id?: string; + provider?: string; +} -// @public -export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions { +// @public (undocumented) +export interface UserIdentityProperties { + clientId?: string; + principalId?: string; } // @public -export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { +export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductApiListByProductNextResponse = ApiCollection; +export type UserListByServiceNextResponse = UserCollection; // @public -export interface ProductApiListByProductOptionalParams extends coreClient.OperationOptions { +export interface UserListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; filter?: string; skip?: number; top?: number; } // @public -export type ProductApiListByProductResponse = ApiCollection; +export type UserListByServiceResponse = UserCollection; // @public -export interface ProductCollection { - count?: number; - nextLink?: string; - value?: ProductContract[]; +export type UserState = string; + +// @public +export interface UserSubscription { + get(resourceGroupName: string, serviceName: string, userId: string, sid: string, options?: UserSubscriptionGetOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, userId: string, options?: UserSubscriptionListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ProductContract extends Resource { - approvalRequired?: boolean; - description?: string; - displayName?: string; - state?: ProductState; - subscriptionRequired?: boolean; - subscriptionsLimit?: number; - terms?: string; +export interface UserSubscriptionGetHeaders { + eTag?: string; } // @public -export interface ProductContractProperties extends ProductEntityBaseParameters { - displayName: string; +export interface UserSubscriptionGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProductCreateOrUpdateHeaders { - eTag?: string; +export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & SubscriptionContract; + +// @public +export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export type UserSubscriptionListNextResponse = SubscriptionCollection; + +// @public +export interface UserSubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & ProductContract; +export type UserSubscriptionListResponse = SubscriptionCollection; // @public -export interface ProductDeleteOptionalParams extends coreClient.OperationOptions { - deleteSubscriptions?: boolean; +export interface UserTokenParameters { + expiry?: Date; + keyType?: KeyType_2; } // @public -export interface ProductEntityBaseParameters { - approvalRequired?: boolean; - description?: string; - state?: ProductState; - subscriptionRequired?: boolean; - subscriptionsLimit?: number; - terms?: string; +export interface UserTokenResult { + value?: string; } // @public -export interface ProductGetEntityTagHeaders { +export interface UserUpdateHeaders { eTag?: string; } // @public -export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface UserUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; +export interface UserUpdateParameters { + email?: string; + firstName?: string; + identities?: UserIdentityContract[]; + lastName?: string; + note?: string; + password?: string; + state?: UserState; +} // @public -export interface ProductGetHeaders { - eTag?: string; +export interface UserUpdateParametersProperties extends UserEntityBaseParameters { + email?: string; + firstName?: string; + lastName?: string; + password?: string; } // @public -export interface ProductGetOptionalParams extends coreClient.OperationOptions { -} +export type UserUpdateResponse = UserUpdateHeaders & UserContract; // @public -export type ProductGetResponse = ProductGetHeaders & ProductContract; +export type Verbosity = string; // @public -export interface ProductGroup { - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupCheckEntityExistsOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: ProductGroupDeleteOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupListByProductOptionalParams): PagedAsyncIterableIterator; -} +export type VersioningScheme = string; // @public -export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +export interface VirtualNetworkConfiguration { + readonly subnetname?: string; + subnetResourceId?: string; + readonly vnetid?: string; } // @public -export type ProductGroupCheckEntityExistsResponse = { - body: boolean; -}; +export type VirtualNetworkType = string; // @public -export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface WikiCollection { + readonly nextLink?: string; + readonly value?: WikiContract[]; } // @public -export type ProductGroupCreateOrUpdateResponse = GroupContract; +export interface WikiContract extends ProxyResource { + documents?: WikiDocumentationContract[]; +} // @public -export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions { +export interface WikiDocumentationContract { + documentationId?: string; } // @public -export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { +export interface WikiUpdateContract { + documents?: WikiDocumentationContract[]; } // @public -export type ProductGroupListByProductNextResponse = GroupCollection; +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 ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +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 type ProductGroupListByProductResponse = GroupCollection; +export interface WorkspaceApiCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ProductListByServiceNextResponse = ProductCollection; +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & ApiContract; // @public -export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { - expandGroups?: boolean; - filter?: string; - skip?: number; - tags?: string; - top?: number; +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { + deleteRevisions?: boolean; } // @public -export type ProductListByServiceResponse = ProductCollection; +export interface WorkspaceApiExport { + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, format: ExportFormat, exportParam: ExportApi, options?: WorkspaceApiExportGetOptionalParams): Promise; +} // @public -export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductListByTagsNextResponse = TagResourceCollection; +export type WorkspaceApiExportGetResponse = ApiExportResult; // @public -export interface ProductListByTagsOptionalParams extends coreClient.OperationOptions { - filter?: string; - includeNotTaggedProducts?: boolean; - skip?: number; - top?: number; +export interface WorkspaceApiGetEntityTagHeaders { + eTag?: string; } // @public -export type ProductListByTagsResponse = TagResourceCollection; +export interface WorkspaceApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ProductPolicy { - createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: ProductPolicyCreateOrUpdateOptionalParams): Promise; - 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; -} +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; // @public -export interface ProductPolicyCreateOrUpdateHeaders { +export interface WorkspaceApiGetHeaders { eTag?: string; } // @public -export interface ProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface WorkspaceApiGetOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & PolicyContract; +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; // @public -export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProductPolicyGetEntityTagHeaders { - eTag?: string; -} +export type WorkspaceApiListByServiceNextResponse = ApiCollection; // @public -export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + expandApiVersionSet?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; } // @public -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +export type WorkspaceApiListByServiceResponse = ApiCollection; // @public -export interface ProductPolicyGetHeaders { - eTag?: string; +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 ProductPolicyGetOptionalParams extends coreClient.OperationOptions { - format?: PolicyExportFormat; +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + eTag?: string; } // @public -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; - -// @public -export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type ProductPolicyListByProductResponse = PolicyCollection; +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; // @public -export type ProductState = "notPublished" | "published"; +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ProductSubscriptions { - list(resourceGroupName: string, serviceName: string, productId: string, options?: ProductSubscriptionsListOptionalParams): PagedAsyncIterableIterator; +export interface WorkspaceApiOperationGetEntityTagHeaders { + eTag?: string; } // @public -export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; // @public -export interface ProductSubscriptionsListOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface WorkspaceApiOperationGetHeaders { + eTag?: string; } // @public -export type ProductSubscriptionsListResponse = SubscriptionCollection; +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ProductTagResourceContractProperties extends ProductEntityBaseParameters { - id?: string; - name: string; -} +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & OperationContract; // @public -export interface ProductUpdateHeaders { - eTag?: string; +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ProductUpdateOptionalParams extends coreClient.OperationOptions { -} +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; // @public -export interface ProductUpdateParameters { - approvalRequired?: boolean; - description?: string; - displayName?: string; - state?: ProductState; - subscriptionRequired?: boolean; - subscriptionsLimit?: number; - terms?: string; +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 ProductUpdateProperties extends ProductEntityBaseParameters { - displayName?: string; +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} // @public -export type Protocol = string; +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; // @public -export type PublicNetworkAccess = string; +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface QuotaByCounterKeys { - listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options?: QuotaByCounterKeysListByServiceOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, options?: QuotaByCounterKeysUpdateOptionalParams): Promise; +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + eTag?: string; } // @public -export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; // @public -export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationPolicyGetHeaders { + eTag?: string; } // @public -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} // @public -export interface QuotaByPeriodKeys { - get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, options?: QuotaByPeriodKeysGetOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, options?: QuotaByPeriodKeysUpdateOptionalParams): Promise; -} +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & PolicyContract; // @public -export interface QuotaByPeriodKeysGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; // @public -export interface QuotaByPeriodKeysUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; // @public -export interface QuotaCounterCollection { - count?: number; - nextLink?: string; - value?: QuotaCounterContract[]; +export interface WorkspaceApiOperationUpdateHeaders { + eTag?: string; } // @public -export interface QuotaCounterContract { - counterKey: string; - periodEndTime: Date; - periodKey: string; - periodStartTime: Date; - value?: QuotaCounterValueContractProperties; +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface QuotaCounterValueContract { - callsCount?: number; - kbTransferred?: number; -} +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & OperationContract; // @public -export interface QuotaCounterValueContractProperties { - callsCount?: number; - kbTransferred?: number; +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 QuotaCounterValueUpdateContract { - callsCount?: number; - kbTransferred?: number; +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface RecipientEmailCollection { - count?: number; - nextLink?: string; - value?: RecipientEmailContract[]; +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface RecipientEmailContract extends Resource { - email?: string; -} +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; // @public -export interface RecipientsContractProperties { - emails?: string[]; - users?: string[]; +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface RecipientUserCollection { - count?: number; - nextLink?: string; - value?: RecipientUserContract[]; +export interface WorkspaceApiPolicyGetEntityTagHeaders { + eTag?: string; } // @public -export interface RecipientUserContract extends Resource { - userId?: string; +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface Region { - listByService(resourceGroupName: string, serviceName: string, options?: RegionListByServiceOptionalParams): PagedAsyncIterableIterator; -} +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; // @public -export interface RegionContract { - isDeleted?: boolean; - isMasterRegion?: boolean; - readonly name?: string; +export interface WorkspaceApiPolicyGetHeaders { + eTag?: string; } // @public -export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; } // @public -export type RegionListByServiceNextResponse = RegionListResult; +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & PolicyContract; // @public -export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export type RegionListByServiceResponse = RegionListResult; +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; // @public -export interface RegionListResult { - count?: number; - nextLink?: string; - value?: RegionContract[]; +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions { } // @public -export interface RegistrationDelegationSettingsProperties { - enabled?: boolean; +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 RemotePrivateEndpointConnectionWrapper { - readonly groupIds?: string[]; - id?: string; - name?: string; - privateEndpoint?: ArmIdWrapper; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - readonly provisioningState?: string; - type?: string; +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface ReportCollection { - count?: number; - nextLink?: string; - value?: ReportRecordContract[]; +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface ReportRecordContract { - apiId?: string; - apiRegion?: string; - apiTimeAvg?: number; - apiTimeMax?: number; - apiTimeMin?: number; - bandwidth?: number; - cacheHitCount?: number; - cacheMissCount?: number; - callCountBlocked?: number; - callCountFailed?: number; - callCountOther?: number; - callCountSuccess?: number; - callCountTotal?: number; - country?: string; - interval?: string; - name?: string; - operationId?: string; - readonly productId?: string; - region?: string; - serviceTimeAvg?: number; - serviceTimeMax?: number; - serviceTimeMin?: number; - subscriptionId?: string; - timestamp?: Date; - readonly userId?: string; - zip?: string; +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface Reports { - listByApi(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByApiOptionalParams): PagedAsyncIterableIterator; - listByGeo(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByGeoOptionalParams): PagedAsyncIterableIterator; - listByOperation(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByOperationOptionalParams): PagedAsyncIterableIterator; - listByProduct(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByProductOptionalParams): PagedAsyncIterableIterator; - listByRequest(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByRequestOptionalParams): PagedAsyncIterableIterator; - listBySubscription(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, options?: ReportsListByTimeOptionalParams): PagedAsyncIterableIterator; - listByUser(resourceGroupName: string, serviceName: string, filter: string, options?: ReportsListByUserOptionalParams): PagedAsyncIterableIterator; +export interface WorkspaceApiReleaseGetEntityTagHeaders { + eTag?: string; } // @public -export interface ReportsListByApiNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type ReportsListByApiNextResponse = ReportCollection; +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; // @public -export interface ReportsListByApiOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; +export interface WorkspaceApiReleaseGetHeaders { + eTag?: string; } // @public -export type ReportsListByApiResponse = ReportCollection; +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions { +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ReportsListByGeoNextResponse = ReportCollection; +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; // @public -export interface ReportsListByGeoOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; skip?: number; top?: number; } // @public -export type ReportsListByGeoResponse = ReportCollection; +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; // @public -export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiReleaseUpdateHeaders { + eTag?: string; } // @public -export type ReportsListByOperationNextResponse = ReportCollection; +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ReportsListByOperationOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; -} +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; // @public -export type ReportsListByOperationResponse = ReportCollection; +export interface WorkspaceApiRevision { + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ReportsListByProductNextResponse = ReportCollection; +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; // @public -export interface ReportsListByProductOptionalParams extends coreClient.OperationOptions { - orderby?: string; +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; skip?: number; top?: number; } // @public -export type ReportsListByProductResponse = ReportCollection; +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; // @public -export interface ReportsListByRequestOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; +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 type ReportsListByRequestResponse = RequestReportCollection; +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ReportsListBySubscriptionNextResponse = ReportCollection; +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; // @public -export interface ReportsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; } // @public -export type ReportsListBySubscriptionResponse = ReportCollection; +export interface WorkspaceApiSchemaGetEntityTagHeaders { + eTag?: string; +} // @public -export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type ReportsListByTimeNextResponse = ReportCollection; +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; // @public -export interface ReportsListByTimeOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; +export interface WorkspaceApiSchemaGetHeaders { + eTag?: string; } // @public -export type ReportsListByTimeResponse = ReportCollection; +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions { +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ReportsListByUserNextResponse = ReportCollection; +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; // @public -export interface ReportsListByUserOptionalParams extends coreClient.OperationOptions { - orderby?: string; +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; skip?: number; top?: number; } // @public -export type ReportsListByUserResponse = ReportCollection; +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; // @public -export interface RepresentationContract { - contentType: string; - examples?: { - [propertyName: string]: ParameterExampleContract; - }; - formParameters?: ParameterContract[]; - schemaId?: string; - typeName?: string; +export interface WorkspaceApiUpdateHeaders { + eTag?: string; } // @public -export interface RequestContract { - description?: string; - headers?: ParameterContract[]; - queryParameters?: ParameterContract[]; - representations?: RepresentationContract[]; +export interface WorkspaceApiUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface RequestReportCollection { - count?: number; - value?: RequestReportRecordContract[]; +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 RequestReportRecordContract { - apiId?: string; - apiRegion?: string; - apiTime?: number; - backendResponseCode?: string; - cache?: string; - ipAddress?: string; - method?: string; - operationId?: string; - readonly productId?: string; - requestId?: string; - requestSize?: number; - responseCode?: number; - responseSize?: number; - serviceTime?: number; - subscriptionId?: string; - timestamp?: Date; - url?: string; - readonly userId?: string; +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly type?: string; +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface ResourceLocationDataContract { - city?: string; - countryOrRegion?: string; - district?: string; - name: string; +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface ResourceSku { - name?: SkuType; +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + eTag?: string; } // @public -export interface ResourceSkuCapacity { - readonly default?: number; - readonly maximum?: number; - readonly minimum?: number; - readonly scaleType?: ResourceSkuCapacityScaleType; +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceSkuCapacityScaleType = string; +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; // @public -export interface ResourceSkuResult { - readonly capacity?: ResourceSkuCapacity; - readonly resourceType?: string; - readonly sku?: ResourceSku; +export interface WorkspaceApiVersionSetGetHeaders { + eTag?: string; } // @public -export interface ResourceSkuResults { - nextLink?: string; - value: ResourceSkuResult[]; +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ResponseContract { - description?: string; - headers?: ParameterContract[]; - representations?: RepresentationContract[]; - statusCode: number; -} +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; // @public -export interface SamplingSettings { - percentage?: number; - samplingType?: SamplingType; +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SamplingType = string; +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; // @public -export interface SaveConfigurationParameter { - branch?: string; - force?: boolean; +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface SchemaCollection { - count?: number; - readonly nextLink?: string; - readonly value?: SchemaContract[]; +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetUpdateHeaders { + eTag?: string; } // @public -export interface SchemaContract extends Resource { - components?: Record; - contentType?: string; - definitions?: Record; - value?: string; +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type SchemaType = string; +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; // @public -export type SettingsTypeName = string; +export interface WorkspaceCollection { + count?: number; + nextLink?: string; + value?: WorkspaceContract[]; +} // @public -export type Severity = string; +export interface WorkspaceContract extends ProxyResource { + description?: string; + displayName?: string; +} // @public -export interface SignInSettings { - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, options?: SignInSettingsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, options?: SignInSettingsGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, options?: SignInSettingsGetEntityTagOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalSigninSettings, options?: SignInSettingsUpdateOptionalParams): Promise; +export interface WorkspaceCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface SignInSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & WorkspaceContract; // @public -export interface SignInSettingsGetEntityTagHeaders { +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGetEntityTagHeaders { eTag?: string; } // @public -export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; // @public -export interface SignInSettingsGetHeaders { +export interface WorkspaceGetHeaders { eTag?: string; } // @public -export interface SignInSettingsGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & PortalSigninSettings; +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; // @public -export interface SignInSettingsUpdateOptionalParams extends coreClient.OperationOptions { +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 SignUpSettings { - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, options?: SignUpSettingsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, options?: SignUpSettingsGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, options?: SignUpSettingsGetEntityTagOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, ifMatch: string, parameters: PortalSignupSettings, options?: SignUpSettingsUpdateOptionalParams): Promise; +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; // @public -export interface SignUpSettingsGetEntityTagHeaders { +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { eTag?: string; } // @public -export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; // @public -export interface SignUpSettingsGetHeaders { +export interface WorkspaceGlobalSchemaGetHeaders { eTag?: string; } // @public -export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & PortalSignupSettings; +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & GlobalSchemaContract; // @public -export interface SignUpSettingsUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SkuType = string; +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; // @public -export type SoapApiType = string; +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} // @public -export type State = string; +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; // @public -export interface Subscription { - createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: SubscriptionCreateParameters, options?: SubscriptionCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, sid: string, ifMatch: string, options?: SubscriptionDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionGetEntityTagOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: SubscriptionListOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionListSecretsOptionalParams): Promise; - regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionRegeneratePrimaryKeyOptionalParams): Promise; - regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: SubscriptionRegenerateSecondaryKeyOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: SubscriptionUpdateOptionalParams): Promise; +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 SubscriptionCollection { - count?: number; - nextLink?: string; - value?: SubscriptionContract[]; +export interface WorkspaceGroupCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface SubscriptionContract extends Resource { - allowTracing?: boolean; - readonly createdDate?: Date; - displayName?: string; - endDate?: Date; - expirationDate?: Date; - notificationDate?: Date; - ownerId?: string; - primaryKey?: string; - scope?: string; - secondaryKey?: string; - startDate?: Date; - state?: SubscriptionState; - stateComment?: string; +export interface WorkspaceGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface SubscriptionCreateOrUpdateHeaders { - eTag?: string; -} +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & GroupContract; // @public -export interface SubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - appType?: AppType; - ifMatch?: string; - notify?: boolean; +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & SubscriptionContract; +export interface WorkspaceGroupGetEntityTagHeaders { + eTag?: string; +} // @public -export interface SubscriptionCreateParameters { - allowTracing?: boolean; - displayName?: string; - ownerId?: string; - primaryKey?: string; - scope?: string; - secondaryKey?: string; - state?: SubscriptionState; +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions { -} +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; // @public -export interface SubscriptionGetEntityTagHeaders { +export interface WorkspaceGroupGetHeaders { eTag?: string; } // @public -export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & GroupContract; // @public -export interface SubscriptionGetHeaders { - eTag?: string; +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions { +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; + +// @public +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type SubscriptionGetResponse = SubscriptionGetHeaders & SubscriptionContract; +export type WorkspaceGroupListByServiceResponse = GroupCollection; // @public -export interface SubscriptionKeyParameterNamesContract { - header?: string; - query?: string; +export interface WorkspaceGroupUpdateHeaders { + eTag?: string; } // @public -export interface SubscriptionKeysContract { - primaryKey?: string; - secondaryKey?: string; +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions { +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 type SubscriptionListNextResponse = SubscriptionCollection; +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} // @public -export interface SubscriptionListOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export type WorkspaceGroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions { } // @public -export type SubscriptionListResponse = SubscriptionCollection; +export type WorkspaceGroupUserCreateResponse = UserContract; // @public -export interface SubscriptionListSecretsHeaders { - eTag?: string; +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface SubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & SubscriptionKeysContract; +export type WorkspaceGroupUserListNextResponse = UserCollection; // @public -export interface SubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface SubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { -} +export type WorkspaceGroupUserListResponse = UserCollection; // @public -export interface SubscriptionsDelegationSettingsProperties { - enabled?: boolean; +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SubscriptionState = "suspended" | "active" | "expired" | "submitted" | "rejected" | "cancelled"; +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; // @public -export interface SubscriptionUpdateHeaders { - eTag?: string; +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface SubscriptionUpdateOptionalParams extends coreClient.OperationOptions { - appType?: AppType; - notify?: boolean; -} +export type WorkspaceListByServiceResponse = WorkspaceCollection; // @public -export interface SubscriptionUpdateParameters { - allowTracing?: boolean; - displayName?: string; - expirationDate?: Date; - ownerId?: string; - primaryKey?: string; - scope?: string; - secondaryKey?: string; - state?: SubscriptionState; - stateComment?: string; +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 type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & SubscriptionContract; +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + eTag?: string; +} // @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface Tag { - assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagAssignToApiOptionalParams): Promise; - assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagAssignToOperationOptionalParams): Promise; - assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagAssignToProductOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, options?: TagCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, options?: TagDeleteOptionalParams): Promise; - detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagDetachFromApiOptionalParams): Promise; - detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagDetachFromOperationOptionalParams): Promise; - detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagDetachFromProductOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, tagId: string, options?: TagGetOptionalParams): Promise; - getByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagGetByApiOptionalParams): Promise; - getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagGetByOperationOptionalParams): Promise; - getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagGetByProductOptionalParams): Promise; - getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: TagGetEntityStateOptionalParams): Promise; - getEntityStateByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: TagGetEntityStateByApiOptionalParams): Promise; - getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: TagGetEntityStateByOperationOptionalParams): Promise; - getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: TagGetEntityStateByProductOptionalParams): Promise; - listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: TagListByApiOptionalParams): PagedAsyncIterableIterator; - listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: TagListByOperationOptionalParams): PagedAsyncIterableIterator; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: TagListByProductOptionalParams): PagedAsyncIterableIterator; - listByService(resourceGroupName: string, serviceName: string, options?: TagListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: TagUpdateOptionalParams): Promise; +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagAssignToApiHeaders { +export interface WorkspaceNamedValueGetEntityTagHeaders { eTag?: string; } // @public -export interface TagAssignToApiOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; // @public -export interface TagAssignToOperationOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceNamedValueGetHeaders { + eTag?: string; } // @public -export type TagAssignToOperationResponse = TagContract; +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface TagAssignToProductOptionalParams extends coreClient.OperationOptions { +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TagAssignToProductResponse = TagContract; +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; // @public -export interface TagCollection { - count?: number; - nextLink?: string; - value?: TagContract[]; +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: KeyVaultRefreshState; + skip?: number; + top?: number; } // @public -export interface TagContract extends Resource { - displayName?: string; -} +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; // @public -export interface TagCreateOrUpdateHeaders { +export interface WorkspaceNamedValueListValueHeaders { eTag?: string; } // @public -export interface TagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions { } // @public -export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; // @public -export interface TagCreateUpdateParameters { - displayName?: string; +export interface WorkspaceNamedValueRefreshSecretHeaders { + eTag?: string; } // @public -export interface TagDeleteOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceNamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface TagDescriptionBaseProperties { - description?: string; - externalDocsDescription?: string; - externalDocsUrl?: string; +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueUpdateHeaders { + eTag?: string; } // @public -export interface TagDescriptionCollection { - count?: number; - nextLink?: string; - value?: TagDescriptionContract[]; +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface TagDescriptionContract extends Resource { - description?: string; - displayName?: string; - externalDocsDescription?: string; - externalDocsUrl?: string; - tagId?: string; +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 TagDescriptionContractProperties extends TagDescriptionBaseProperties { - displayName?: string; - tagId?: string; +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface TagDescriptionCreateParameters { - description?: string; - externalDocsDescription?: string; - externalDocsUrl?: string; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagDetachFromApiOptionalParams extends coreClient.OperationOptions { +export type WorkspaceNotificationGetResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagDetachFromOperationOptionalParams extends coreClient.OperationOptions { +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; } // @public -export interface TagDetachFromProductOptionalParams extends coreClient.OperationOptions { +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 TagGetByApiHeaders { - eTag?: string; +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagGetByApiOptionalParams extends coreClient.OperationOptions { +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; // @public -export interface TagGetByOperationHeaders { - eTag?: string; +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagGetByOperationOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { } // @public -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; // @public -export interface TagGetByProductHeaders { - eTag?: string; +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 TagGetByProductOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { } // @public -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; // @public -export interface TagGetEntityStateByApiHeaders { - eTag?: string; +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagGetEntityStateByApiOptionalParams extends coreClient.OperationOptions { +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} // @public -export interface TagGetEntityStateByOperationHeaders { +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 TagGetEntityStateByOperationOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; // @public -export interface TagGetEntityStateByProductHeaders { +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 { eTag?: string; } // @public -export interface TagGetEntityStateByProductOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; // @public -export interface TagGetEntityStateHeaders { +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagHeaders { eTag?: string; } // @public -export interface TagGetEntityStateOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; // @public -export interface TagGetHeaders { +export interface WorkspacePolicyFragmentGetHeaders { eTag?: string; } // @public -export interface TagGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; } // @public -export type TagGetResponse = TagGetHeaders & TagContract; +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; // @public -export interface TagListByApiNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TagListByApiNextResponse = TagCollection; +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; // @public -export interface TagListByApiOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; + orderby?: string; skip?: number; top?: number; } // @public -export type TagListByApiResponse = TagCollection; +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; // @public -export interface TagListByOperationNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; } // @public -export type TagListByOperationNextResponse = TagCollection; +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; // @public -export interface TagListByOperationOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface WorkspacePolicyGetEntityTagHeaders { + eTag?: string; } // @public -export type TagListByOperationResponse = TagCollection; +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} // @public -export interface TagListByProductNextOptionalParams extends coreClient.OperationOptions { +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyGetHeaders { + eTag?: string; } // @public -export type TagListByProductNextResponse = TagCollection; +export interface WorkspacePolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} // @public -export interface TagListByProductOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TagListByProductResponse = TagCollection; +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; // @public -export interface TagListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions { } // @public -export type TagListByServiceNextResponse = TagCollection; +export type WorkspacePolicyListByApiResponse = PolicyCollection; // @public -export interface TagListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - scope?: string; - skip?: number; - top?: number; +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 type TagListByServiceResponse = TagCollection; +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 TagResource { - listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagResourceCollection { - count?: number; - nextLink?: string; - value?: TagResourceContract[]; +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagResourceContract { - api?: ApiTagResourceContractProperties; - operation?: OperationTagResourceContractProperties; - product?: ProductTagResourceContractProperties; - tag: TagResourceContractProperties; +export interface WorkspaceProductApiLinkGetHeaders { + eTag?: string; } // @public -export interface TagResourceContractProperties { - id?: string; - name?: string; +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions { +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TagResourceListByServiceNextResponse = TagResourceCollection; +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; // @public -export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type TagResourceListByServiceResponse = TagResourceCollection; +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; // @public -export interface TagUpdateHeaders { +export interface WorkspaceProductCreateOrUpdateHeaders { eTag?: string; } // @public -export interface TagUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type TagUpdateResponse = TagUpdateHeaders & TagContract; +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & ProductContract; // @public -export type TemplateName = string; +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} // @public -export interface TenantAccess { - create(resourceGroupName: string, serviceName: string, accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, options?: TenantAccessCreateOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: TenantAccessListByServiceOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessListSecretsOptionalParams): Promise; - regeneratePrimaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessRegeneratePrimaryKeyOptionalParams): Promise; - regenerateSecondaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessRegenerateSecondaryKeyOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, options?: TenantAccessUpdateOptionalParams): Promise; +export interface WorkspaceProductGetEntityTagHeaders { + eTag?: string; } // @public -export interface TenantAccessCreateHeaders { +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; + +// @public +export interface WorkspaceProductGetHeaders { eTag?: string; } // @public -export interface TenantAccessCreateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantAccessCreateResponse = TenantAccessCreateHeaders & AccessInformationContract; +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & ProductContract; // @public -export interface TenantAccessGetEntityTagHeaders { - eTag?: string; +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 TenantAccessGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; // @public -export interface TenantAccessGetHeaders { +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductGroupLinkGetHeaders { eTag?: string; } // @public -export interface TenantAccessGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantAccessGetResponse = TenantAccessGetHeaders & AccessInformationContract; +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; // @public -export interface TenantAccessGit { - regeneratePrimaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams): Promise; - regenerateSecondaryKey(resourceGroupName: string, serviceName: string, accessName: AccessIdName, options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams): Promise; +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { -} +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; // @public -export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions { +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantAccessListByServiceNextResponse = AccessInformationCollection; +export type WorkspaceProductListByServiceNextResponse = ProductCollection; // @public -export interface TenantAccessListByServiceOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; filter?: string; + skip?: number; + tags?: string; + top?: number; } // @public -export type TenantAccessListByServiceResponse = AccessInformationCollection; +export type WorkspaceProductListByServiceResponse = ProductCollection; // @public -export interface TenantAccessListSecretsHeaders { +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 TenantAccessListSecretsOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & AccessInformationSecretsContract; +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagHeaders { + eTag?: string; +} // @public -export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface TenantAccessRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { -} +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; // @public -export interface TenantAccessUpdateHeaders { +export interface WorkspaceProductPolicyGetHeaders { eTag?: string; } // @public -export interface TenantAccessUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; } // @public -export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & AccessInformationContract; +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & PolicyContract; // @public -export interface TenantConfiguration { - beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; - beginDeployAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise; - beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; - beginSaveAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise; - beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; - beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise; - getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { } // @public -export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; // @public -export type TenantConfigurationDeployResponse = OperationResultContract; +export interface WorkspaceProductUpdateHeaders { + eTag?: string; +} // @public -export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & ProductContract; // @public -export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +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 type TenantConfigurationSaveResponse = OperationResultContract; - -// @public -export interface TenantConfigurationSyncStateContract extends Resource { - branch?: string; - commitId?: string; - configurationChangeDate?: Date; - isExport?: boolean; - isGitEnabled?: boolean; - isSynced?: boolean; - lastOperationId?: string; - syncDate?: Date; +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + ifMatch?: string; + notify?: boolean; } // @public -export type TenantConfigurationValidateResponse = OperationResultContract; +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; // @public -export interface TenantSettings { - get(resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, options?: TenantSettingsGetOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: TenantSettingsListByServiceOptionalParams): PagedAsyncIterableIterator; +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface TenantSettingsCollection { - readonly nextLink?: string; - readonly value?: TenantSettingsContract[]; +export interface WorkspaceSubscriptionGetEntityTagHeaders { + eTag?: string; } // @public -export interface TenantSettingsContract extends Resource { - settings?: { - [propertyName: string]: string; - }; +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface TenantSettingsGetHeaders { +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; + +// @public +export interface WorkspaceSubscriptionGetHeaders { eTag?: string; } // @public -export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantSettingsGetResponse = TenantSettingsGetHeaders & TenantSettingsContract; +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & SubscriptionContract; // @public -export interface TenantSettingsListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; // @public -export interface TenantSettingsListByServiceOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { filter?: string; + skip?: number; + top?: number; } // @public -export type TenantSettingsListByServiceResponse = TenantSettingsCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; // @public -export interface TermsOfServiceProperties { - consentRequired?: boolean; - enabled?: boolean; - text?: string; +export interface WorkspaceSubscriptionListSecretsHeaders { + eTag?: string; } // @public -export interface TokenBodyParameterContract { - name: string; - value: string; +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { } // @public -export interface User { - 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; - getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: UserTokenParameters, options?: UserGetSharedAccessTokenOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: UserListByServiceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, parameters: UserUpdateParameters, options?: UserUpdateOptionalParams): Promise; +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; + +// @public +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserCollection { - count?: number; - nextLink?: string; - value?: UserContract[]; +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserConfirmationPassword { - send(resourceGroupName: string, serviceName: string, userId: string, options?: UserConfirmationPasswordSendOptionalParams): Promise; +export interface WorkspaceSubscriptionUpdateHeaders { + eTag?: string; } // @public -export interface UserConfirmationPasswordSendOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { appType?: AppType; + notify?: boolean; } // @public -export interface UserContract extends Resource { - email?: string; - firstName?: string; - readonly groups?: GroupContractProperties[]; - identities?: UserIdentityContract[]; - lastName?: string; - note?: string; - registrationDate?: Date; - state?: UserState; -} +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; // @public -export interface UserContractProperties extends UserEntityBaseParameters { - email?: string; - firstName?: string; - readonly groups?: GroupContractProperties[]; - lastName?: string; - registrationDate?: Date; +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 UserCreateOrUpdateHeaders { - eTag?: string; +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 UserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; - notify?: boolean; +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & UserContract; +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; // @public -export interface UserCreateParameterProperties extends UserEntityBaseParameters { - appType?: AppType; - confirmation?: Confirmation; - email: string; - firstName: string; - lastName: string; - password?: string; +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserCreateParameters { - appType?: AppType; - confirmation?: Confirmation; - email?: string; - firstName?: string; - identities?: UserIdentityContract[]; - lastName?: string; - note?: string; - password?: string; - state?: UserState; +export interface WorkspaceTagApiLinkGetHeaders { + eTag?: string; } // @public -export interface UserDeleteOptionalParams extends coreClient.OperationOptions { - appType?: AppType; - deleteSubscriptions?: boolean; - notify?: boolean; +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserEntityBaseParameters { - identities?: UserIdentityContract[]; - note?: string; - state?: UserState; +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions { +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; // @public -export interface UserGetEntityTagHeaders { +export interface WorkspaceTagCreateOrUpdateHeaders { eTag?: string; } // @public -export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type UserGetEntityTagResponse = UserGetEntityTagHeaders; +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & TagContract; // @public -export interface UserGetHeaders { +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagGetEntityStateHeaders { eTag?: string; } // @public -export interface UserGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions { } // @public -export type UserGetResponse = UserGetHeaders & UserContract; +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; // @public -export interface UserGetSharedAccessTokenOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagGetHeaders { + eTag?: string; } // @public -export type UserGetSharedAccessTokenResponse = UserTokenResult; +export interface WorkspaceTagGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface UserGroup { - list(resourceGroupName: string, serviceName: string, userId: string, options?: UserGroupListOptionalParams): PagedAsyncIterableIterator; -} +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; // @public -export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type UserGroupListNextResponse = GroupCollection; +export type WorkspaceTagListByServiceNextResponse = TagCollection; // @public -export interface UserGroupListOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; + scope?: string; skip?: number; top?: number; } // @public -export type UserGroupListResponse = GroupCollection; +export type WorkspaceTagListByServiceResponse = TagCollection; // @public -export interface UserIdentities { - list(resourceGroupName: string, serviceName: string, userId: string, options?: UserIdentitiesListOptionalParams): PagedAsyncIterableIterator; +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 UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type UserIdentitiesListNextResponse = UserIdentityCollection; +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; // @public -export interface UserIdentitiesListOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type UserIdentitiesListResponse = UserIdentityCollection; - -// @public -export interface UserIdentityCollection { - count?: number; - nextLink?: string; - value?: UserIdentityContract[]; +export interface WorkspaceTagOperationLinkGetHeaders { + eTag?: string; } // @public -export interface UserIdentityContract { - id?: string; - provider?: string; +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface UserIdentityProperties { - clientId?: string; - principalId?: string; -} +// @public +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; // @public -export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type UserListByServiceNextResponse = UserCollection; +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; // @public -export interface UserListByServiceOptionalParams extends coreClient.OperationOptions { - expandGroups?: boolean; +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type UserListByServiceResponse = UserCollection; +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; // @public -export type UserState = string; +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 UserSubscription { - get(resourceGroupName: string, serviceName: string, userId: string, sid: string, options?: UserSubscriptionGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, userId: string, options?: UserSubscriptionListOptionalParams): PagedAsyncIterableIterator; +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserSubscriptionGetHeaders { - eTag?: string; -} +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; // @public -export interface UserSubscriptionGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & SubscriptionContract; +export interface WorkspaceTagProductLinkGetHeaders { + eTag?: string; +} // @public -export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions { } // @public -export type UserSubscriptionListNextResponse = SubscriptionCollection; +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; // @public -export interface UserSubscriptionListOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { } // @public -export type UserSubscriptionListResponse = SubscriptionCollection; +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; // @public -export interface UserTokenParameters { - expiry?: Date; - keyType?: KeyType_2; +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface UserTokenResult { - value?: string; -} +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; // @public -export interface UserUpdateHeaders { +export interface WorkspaceTagUpdateHeaders { eTag?: string; } // @public -export interface UserUpdateOptionalParams extends coreClient.OperationOptions { +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface UserUpdateParameters { - email?: string; - firstName?: string; - identities?: UserIdentityContract[]; - lastName?: string; - note?: string; - password?: string; - state?: UserState; -} +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & TagContract; // @public -export interface UserUpdateParametersProperties extends UserEntityBaseParameters { - email?: string; - firstName?: string; - lastName?: string; - password?: string; +export interface WorkspaceUpdateHeaders { + eTag?: string; } // @public -export type UserUpdateResponse = UserUpdateHeaders & UserContract; - -// @public -export type Verbosity = string; - -// @public -export type VersioningScheme = string; - -// @public -export interface VirtualNetworkConfiguration { - readonly subnetname?: string; - subnetResourceId?: string; - readonly vnetid?: string; +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type VirtualNetworkType = string; +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & WorkspaceContract; // @public export interface X509CertificateName { diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 6c22a4e01e78..e853c822117d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -14,8 +14,12 @@ import { SendRequest } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "./lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "./lroImpl"; import { ApiImpl, ApiRevisionImpl, @@ -23,6 +27,8 @@ import { ApiOperationImpl, ApiOperationPolicyImpl, TagImpl, + GraphQLApiResolverImpl, + GraphQLApiResolverPolicyImpl, ApiProductImpl, ApiPolicyImpl, ApiSchemaImpl, @@ -32,8 +38,14 @@ import { ApiIssueAttachmentImpl, ApiTagDescriptionImpl, OperationOperationsImpl, + ApiWikiImpl, + ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, + AuthorizationProviderImpl, + AuthorizationImpl, + AuthorizationLoginLinksImpl, + AuthorizationAccessPolicyImpl, AuthorizationServerImpl, BackendImpl, CacheImpl, @@ -45,6 +57,7 @@ import { ApiManagementServiceSkusImpl, ApiManagementServiceImpl, DiagnosticImpl, + DocumentationImpl, EmailTemplateImpl, GatewayImpl, GatewayHostnameConfigurationImpl, @@ -64,6 +77,8 @@ import { OutboundNetworkDependenciesEndpointsImpl, PolicyImpl, PolicyDescriptionImpl, + PolicyFragmentImpl, + PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, SignInSettingsImpl, @@ -75,6 +90,10 @@ import { ProductGroupImpl, ProductSubscriptionsImpl, ProductPolicyImpl, + ProductWikiImpl, + ProductWikisImpl, + ProductApiLinkImpl, + ProductGroupLinkImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -84,6 +103,9 @@ import { ApiManagementSkusImpl, SubscriptionImpl, TagResourceImpl, + TagApiLinkImpl, + TagOperationLinkImpl, + TagProductLinkImpl, TenantAccessImpl, TenantAccessGitImpl, TenantConfigurationImpl, @@ -91,7 +113,35 @@ import { UserGroupImpl, UserSubscriptionImpl, UserIdentitiesImpl, - UserConfirmationPasswordImpl + UserConfirmationPasswordImpl, + 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 { Api, @@ -100,6 +150,8 @@ import { ApiOperation, ApiOperationPolicy, Tag, + GraphQLApiResolver, + GraphQLApiResolverPolicy, ApiProduct, ApiPolicy, ApiSchema, @@ -109,8 +161,14 @@ import { ApiIssueAttachment, ApiTagDescription, OperationOperations, + ApiWiki, + ApiWikis, ApiExport, ApiVersionSet, + AuthorizationProvider, + Authorization, + AuthorizationLoginLinks, + AuthorizationAccessPolicy, AuthorizationServer, Backend, Cache, @@ -122,6 +180,7 @@ import { ApiManagementServiceSkus, ApiManagementService, Diagnostic, + Documentation, EmailTemplate, Gateway, GatewayHostnameConfiguration, @@ -141,6 +200,8 @@ import { OutboundNetworkDependenciesEndpoints, Policy, PolicyDescription, + PolicyFragment, + PortalConfig, PortalRevision, PortalSettings, SignInSettings, @@ -152,6 +213,10 @@ import { ProductGroup, ProductSubscriptions, ProductPolicy, + ProductWiki, + ProductWikis, + ProductApiLink, + ProductGroupLink, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -161,6 +226,9 @@ import { ApiManagementSkus, Subscription, TagResource, + TagApiLink, + TagOperationLink, + TagProductLink, TenantAccess, TenantAccessGit, TenantConfiguration, @@ -168,7 +236,35 @@ import { UserGroup, UserSubscription, UserIdentities, - UserConfirmationPassword + UserConfirmationPassword, + 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"; @@ -187,8 +283,7 @@ 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 Subscription credentials which uniquely identify Microsoft Azure subscription. - * The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -212,7 +307,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/9.0.1`; + const packageDetails = `azsdk-js-arm-apimanagement/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,13 +360,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-01"; + this.apiVersion = options.apiVersion || "2022-09-01-preview"; this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); this.apiOperation = new ApiOperationImpl(this); this.apiOperationPolicy = new ApiOperationPolicyImpl(this); this.tag = new TagImpl(this); + this.graphQLApiResolver = new GraphQLApiResolverImpl(this); + this.graphQLApiResolverPolicy = new GraphQLApiResolverPolicyImpl(this); this.apiProduct = new ApiProductImpl(this); this.apiPolicy = new ApiPolicyImpl(this); this.apiSchema = new ApiSchemaImpl(this); @@ -281,8 +378,14 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiIssueAttachment = new ApiIssueAttachmentImpl(this); this.apiTagDescription = new ApiTagDescriptionImpl(this); this.operationOperations = new OperationOperationsImpl(this); + this.apiWiki = new ApiWikiImpl(this); + this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(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); @@ -294,6 +397,7 @@ 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( @@ -319,6 +423,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); + this.policyFragment = new PolicyFragmentImpl(this); + this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); @@ -332,6 +438,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productGroup = new ProductGroupImpl(this); this.productSubscriptions = new ProductSubscriptionsImpl(this); 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); @@ -341,6 +451,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); @@ -349,6 +462,40 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(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); } @@ -383,7 +530,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -394,8 +541,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PerformConnectivityCheckAsyncResponse > > { @@ -405,7 +552,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { ): Promise => { return this.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -438,20 +585,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, connectivityCheckRequestParams, options }, - performConnectivityCheckAsyncOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: performConnectivityCheckAsyncOperationSpec + }); + const poller = await createHttpPoller< + PerformConnectivityCheckAsyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -460,7 +610,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -486,6 +636,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiOperation: ApiOperation; apiOperationPolicy: ApiOperationPolicy; tag: Tag; + graphQLApiResolver: GraphQLApiResolver; + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; apiProduct: ApiProduct; apiPolicy: ApiPolicy; apiSchema: ApiSchema; @@ -495,8 +647,14 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiIssueAttachment: ApiIssueAttachment; apiTagDescription: ApiTagDescription; operationOperations: OperationOperations; + apiWiki: ApiWiki; + apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; + authorizationProvider: AuthorizationProvider; + authorization: Authorization; + authorizationLoginLinks: AuthorizationLoginLinks; + authorizationAccessPolicy: AuthorizationAccessPolicy; authorizationServer: AuthorizationServer; backend: Backend; cache: Cache; @@ -508,6 +666,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementServiceSkus: ApiManagementServiceSkus; apiManagementService: ApiManagementService; diagnostic: Diagnostic; + documentation: Documentation; emailTemplate: EmailTemplate; gateway: Gateway; gatewayHostnameConfiguration: GatewayHostnameConfiguration; @@ -527,6 +686,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints; policy: Policy; policyDescription: PolicyDescription; + policyFragment: PolicyFragment; + portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; signInSettings: SignInSettings; @@ -538,6 +699,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { productGroup: ProductGroup; productSubscriptions: ProductSubscriptions; productPolicy: ProductPolicy; + productWiki: ProductWiki; + productWikis: ProductWikis; + productApiLink: ProductApiLink; + productGroupLink: ProductGroupLink; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -547,6 +712,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; @@ -555,6 +723,34 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; + 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); diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 0696e3f8c99d..51667785a6ea 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -33,7 +33,7 @@ export interface ApiVersionSetContractDetails { /** Description of API Version Set. */ description?: string; /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; + versioningScheme?: VersioningScheme; /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ versionQueryName?: string; /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ @@ -83,6 +83,10 @@ export interface AuthenticationSettingsContract { oAuth2?: OAuth2AuthenticationSettingsContract; /** OpenID Connect Authentication Settings */ openid?: OpenIdAuthenticationSettingsContract; + /** Collection of OAuth2 authentication settings included into this API. */ + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; + /** Collection of Open ID Connect authentication settings included into this API. */ + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; } /** API OAuth2 Authentication settings details. */ @@ -237,6 +241,8 @@ export interface ApiCreateOrUpdateParameter { * * `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; } /** Criteria to limit import of WSDL to a subset of the document. */ @@ -510,6 +516,32 @@ export interface TagCollection { nextLink?: string; } +/** Paged Resolver list representation. */ +export interface ResolverCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ResolverContract[]; + /** Total record count number across all pages. */ + count?: number; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** GraphQL API Resolver Update Contract details. */ +export interface ResolverUpdateContract { + /** Resolver Name. */ + displayName?: string; + /** Path is type/field being resolved. */ + path?: string; + /** Description of the resolver. May include HTML formatting tags. */ + description?: string; +} + /** Paged Products list representation. */ export interface ProductCollection { /** Page values. */ @@ -783,6 +815,32 @@ export interface OperationTagResourceContractProperties { readonly urlTemplate?: string; } +/** Wiki documentation details. */ +export interface WikiDocumentationContract { + /** Documentation Identifier */ + documentationId?: string; +} + +/** Wiki update contract details. */ +export interface WikiUpdateContract { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; +} + +/** Paged Wiki list representation. */ +export interface WikiCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: WikiContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** API Export result. */ export interface ApiExportResult { /** ResourceId of the API which was exported. */ @@ -833,6 +891,76 @@ export interface ApiVersionSetUpdateParameters { versioningScheme?: VersioningScheme; } +/** 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; +} + +/** Authorization Provider oauth2 grant types settings */ +export interface AuthorizationProviderOAuth2GrantTypes { + /** OAuth2 authorization code grant parameters */ + authorizationCode?: { [propertyName: string]: string }; + /** OAuth2 client credential grant parameters */ + clientCredentials?: { [propertyName: string]: string }; +} + +/** Paged Authorization list representation. */ +export interface AuthorizationCollection { + /** Page values. */ + value?: AuthorizationContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Authorization error details. */ +export interface AuthorizationError { + /** Error code */ + code?: string; + /** Error message */ + message?: string; +} + +/** Authorization login request contract. */ +export interface AuthorizationLoginRequestContract { + /** The redirect URL after login has completed. */ + postLoginRedirectUrl?: string; +} + +/** Authorization login response contract. */ +export interface AuthorizationLoginResponseContract { + /** The login link */ + loginLink?: string; +} + +/** Authorization confirm consent code request contract. */ +export interface AuthorizationConfirmConsentCodeRequestContract { + /** The consent code from the authorization server after authorizing and consenting. */ + consentCode?: string; +} + +/** Paged Authorization Access Policy list representation. */ +export interface AuthorizationAccessPolicyCollection { + /** Page values. */ + value?: AuthorizationAccessPolicyContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged OAuth2 Authorization Servers list representation. */ export interface AuthorizationServerCollection { /** Page values. */ @@ -901,16 +1029,18 @@ export interface BackendBaseParameters { title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; } /** Properties specific to the Backend Type. */ @@ -983,22 +1113,62 @@ 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 update parameters. */ export interface BackendUpdateParameters { /** Backend Title. */ title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -1435,12 +1605,19 @@ export interface ApiManagementServiceBaseProperties { virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ + /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ customProperties?: { [propertyName: string]: string }; /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ certificates?: CertificateConfiguration[]; /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; + /** + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outboundPublicIPAddresses?: string[]; /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ disableGateway?: boolean; /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ @@ -1472,7 +1649,7 @@ export interface HostnameConfiguration { encodedCertificate?: string; /** Certificate Password. */ certificatePassword?: string; - /** Specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. If a client does not send the SNI header, then this will be the certificate that will be challenged. The property is useful if a service has multiple custom hostname enabled and it needs to decide on the default ssl certificate. The setting only applied to Proxy Hostname Type. */ + /** Specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. If a client does not send the SNI header, then this will be the certificate that will be challenged. The property is useful if a service has multiple custom hostname enabled and it needs to decide on the default ssl certificate. The setting only applied to gateway Hostname Type. */ defaultSslBinding?: boolean; /** Specify true to always negotiate client certificate on the hostname. Default Value is false. */ negotiateClientCertificate?: boolean; @@ -1537,6 +1714,13 @@ export interface AdditionalLocation { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly gatewayRegionalUrl?: string; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; + /** + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outboundPublicIPAddresses?: string[]; /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location. */ disableGateway?: boolean; /** @@ -1730,6 +1914,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. */ @@ -1958,6 +2164,8 @@ export interface IdentityProviderBaseParameters { profileEditingPolicyName?: string; /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; } /** Parameters supplied to update Identity Provider */ @@ -1978,6 +2186,8 @@ export interface IdentityProviderUpdateParameters { profileEditingPolicyName?: string; /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; /** 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. */ @@ -2150,6 +2360,10 @@ export interface OpenidConnectProviderUpdateContract { clientId?: string; /** Client Secret of developer console which is the client application. */ clientSecret?: string; + /** If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; } /** Collection of Outbound Environment Endpoints */ @@ -2187,14 +2401,90 @@ export interface EndpointDetail { region?: string; } -/** Descriptions of APIM policies. */ +/** Descriptions of API Management policies. */ export interface PolicyDescriptionCollection { - /** Descriptions of APIM policies. */ + /** Descriptions of API Management policies. */ value?: PolicyDescriptionContract[]; /** Total record count number. */ count?: number; } +/** The response of the get policy fragments operation. */ +export interface PolicyFragmentCollection { + /** Policy fragment contract value. */ + value?: PolicyFragmentContract[]; + /** Total record count number. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** A collection of resources. */ +export interface ResourceCollection { + /** A collection of resources. */ + value?: ResourceCollectionValueItem[]; + /** Total record count number. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** The collection of the developer portal configurations. */ +export interface PortalConfigCollection { + /** The developer portal configurations. */ + value?: PortalConfigContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +export interface PortalConfigPropertiesSignin { + /** Redirect anonymous users to the sign-in page. */ + require?: boolean; +} + +export interface PortalConfigPropertiesSignup { + /** Terms of service settings. */ + termsOfService?: PortalConfigTermsOfServiceProperties; +} + +/** Terms of service contract properties. */ +export interface PortalConfigTermsOfServiceProperties { + /** A terms of service text. */ + text?: string; + /** Ask user for consent to the terms of service. */ + requireConsent?: boolean; +} + +export interface PortalConfigDelegationProperties { + /** Enable or disable delegation for user registration. */ + delegateRegistration?: boolean; + /** Enable or disable delegation for product subscriptions. */ + delegateSubscription?: boolean; + /** A delegation endpoint URL. */ + delegationUrl?: string; + /** A base64-encoded validation key to ensure requests originate from Azure API Management service. */ + validationKey?: string; +} + +/** The developer portal Cross-Origin Resource Sharing (CORS) settings. */ +export interface PortalConfigCorsProperties { + /** Allowed origins, e.g. `https://trusted.com`. */ + allowedOrigins?: string[]; +} + +/** The developer portal Content Security Policy (CSP) settings. */ +export interface PortalConfigCspProperties { + /** The mode of the developer portal Content Security Policy (CSP). */ + mode?: PortalSettingsCspMode; + /** The URLs used by the browser to report CSP violations. */ + reportUri?: string[]; + /** Allowed sources, e.g. `*.trusted.com`, `trusted.com`, `https://`. */ + allowedSources?: string[]; +} + /** Paged list of portal revisions. */ export interface PortalRevisionCollection { /** @@ -2209,9 +2499,9 @@ export interface PortalRevisionCollection { readonly nextLink?: string; } -/** Descriptions of APIM policies. */ +/** Descriptions of API Management policies. */ export interface PortalSettingsCollection { - /** Descriptions of APIM policies. */ + /** Descriptions of API Management policies. */ value?: PortalSettingsContract[]; /** Total record count number. */ count?: number; @@ -2308,6 +2598,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. */ @@ -2426,7 +2736,7 @@ export interface ReportRecordContract { callCountSuccess?: number; /** Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests */ callCountBlocked?: number; - /** Number of calls failed due to proxy or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600 */ + /** Number of calls failed due to gateway or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600 */ callCountFailed?: number; /** Number of other calls. */ callCountOther?: number; @@ -2796,6 +3106,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 { /** @@ -2943,6 +3283,16 @@ export interface UserTokenResult { value?: 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; +} + /** Object used to create an API Revision or Version based on an existing API Revision */ export interface ApiRevisionInfoContract { /** Resource identifier of API to be used to create the revision from. */ @@ -2963,6 +3313,16 @@ export interface QuotaCounterValueContract { kbTransferred?: number; } +/** Log of the entity being created, updated or deleted. */ +export interface ResolverResultLogItemContract { + /** The type of entity contract. */ + objectType?: string; + /** Action like create/update/delete. */ + action?: string; + /** Identifier of the entity being created/updated/deleted. */ + objectKey?: string; +} + /** API Entity Properties */ export interface ApiContractProperties extends ApiEntityBaseContract { /** API identifier of the source API. */ @@ -3006,85 +3366,52 @@ export interface ApiTagResourceContractProperties protocols?: Protocol[]; } -/** API details. */ -export interface ApiContract extends Resource { - /** 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; - /** Type of API. */ - apiType?: ApiType; - /** Describes the revision of the API. If no value is provided, default revision 1 is created */ - apiRevision?: string; - /** Indicates the version identifier of the API if the API is versioned */ - apiVersion?: string; - /** Indicates if API revision is current api revision. */ - isCurrent?: boolean; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection extends Resource { + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Indicates if API revision is accessible via the gateway. + * The provisioning state of the private endpoint connection resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isOnline?: boolean; - /** Description of the API Revision. */ - apiRevisionDescription?: string; - /** Description of the API Version. */ - apiVersionDescription?: string; - /** A resource identifier for the related ApiVersionSet. */ - apiVersionSetId?: string; - /** Specifies whether an API or Product subscription is required for accessing the API. */ - subscriptionRequired?: boolean; - /** A URL to the Terms of Service for the API. MUST be in the format of a URL. */ - termsOfServiceUrl?: string; - /** Contact information for the API. */ - contact?: ApiContactInformation; - /** License information for the API. */ - license?: ApiLicenseInformation; - /** 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; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** ApiRelease details. */ -export interface ApiReleaseContract extends Resource { - /** Identifier of the API the release belongs to. */ - apiId?: string; +/** A private link resource */ +export interface PrivateLinkResource extends Resource { /** - * The time the API was released. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. + * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDateTime?: Date; + readonly groupId?: string; /** - * The time the API release was updated. + * The private link resource required member names. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedDateTime?: Date; - /** Release Notes */ - notes?: string; -} - -/** API Operation details. */ -export interface OperationContract extends Resource { - /** Collection of URL template parameters. */ - templateParameters?: ParameterContract[]; - /** Description of the operation. May include HTML formatting tags. */ - description?: string; - /** An entity containing request details. */ - request?: RequestContract; - /** Array of Operation responses. */ - responses?: ResponseContract[]; - /** Operation Policies */ - policies?: string; + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + 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. */ @@ -3093,82 +3420,40 @@ export interface OperationContract extends Resource { urlTemplate?: string; } -/** Policy Contract details. */ -export interface PolicyContract extends Resource { - /** Contents of the Policy as defined by the format. */ - value?: string; - /** Format of the policyContent. */ - format?: PolicyContentFormat; +/** Product profile. */ +export interface ProductContractProperties extends ProductEntityBaseParameters { + /** Product name. */ + displayName: string; } -/** Tag Contract details. */ -export interface TagContract extends Resource { - /** Tag 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; } -/** Product details. */ -export interface ProductContract extends Resource { - /** Product description. May include HTML formatting tags. */ - description?: string; - /** Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. */ - terms?: string; - /** Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. */ - subscriptionRequired?: boolean; - /** whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. */ - approvalRequired?: boolean; - /** Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. */ - subscriptionsLimit?: number; - /** whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. */ - state?: ProductState; +/** Parameters supplied to the Update Product operation. */ +export interface ProductUpdateProperties extends ProductEntityBaseParameters { /** Product name. */ displayName?: string; } -/** API Schema Contract details. */ -export interface SchemaContract extends Resource { - /** 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`. */ - contentType?: 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. */ - definitions?: Record; - /** Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise. */ - components?: Record; -} - -/** Diagnostic details. */ -export interface DiagnosticContract extends Resource { - /** Specifies for what type of messages sampling settings should not apply. */ - alwaysLog?: AlwaysLog; - /** Resource Id of a target logger. */ - loggerId?: string; - /** Sampling settings for Diagnostic. */ - sampling?: SamplingSettings; - /** Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. */ - frontend?: PipelineDiagnosticSettings; - /** Diagnostic settings for incoming/outgoing HTTP messages to the Backend */ - backend?: PipelineDiagnosticSettings; - /** Log the ClientIP. Default is false. */ - logClientIp?: boolean; - /** Sets correlation protocol to use for Application Insights diagnostics. */ - httpCorrelationProtocol?: HttpCorrelationProtocol; - /** The verbosity level applied to traces emitted by trace policies. */ - verbosity?: Verbosity; - /** The format of the Operation Name for Application Insights telemetries. Default is Name. */ - operationNameFormat?: OperationNameFormat; - /** Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings. */ - metrics?: boolean; +/** 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 details. */ -export interface IssueContract extends Resource { - /** Date and time when the issue was created. */ - createdDate?: Date; - /** Status of the issue. */ - state?: State; - /** A resource identifier for the API the issue was created for. */ - apiId?: string; +/** Issue contract Update Properties. */ +export interface IssueUpdateContractProperties + extends IssueContractBaseProperties { /** The issue title. */ title?: string; /** Text describing the issue. */ @@ -3177,114 +3462,63 @@ export interface IssueContract extends Resource { userId?: string; } -/** Issue Comment Contract details. */ -export interface IssueCommentContract extends Resource { - /** Comment text. */ - text?: string; - /** Date and time when the comment was created. */ - createdDate?: Date; - /** A resource identifier for the user who left the comment. */ - userId?: string; -} - -/** Issue Attachment Contract details. */ -export interface IssueAttachmentContract extends Resource { - /** Filename by which the binary data will be saved. */ - title?: string; - /** Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property. */ - contentFormat?: string; - /** An HTTP link or Base64-encoded binary data. */ - content?: string; -} - -/** Contract details. */ -export interface TagDescriptionContract extends Resource { - /** Description of the Tag. */ - description?: string; - /** Absolute URL of external resources describing the tag. */ - externalDocsUrl?: string; - /** Description of the external resources describing the tag. */ - externalDocsDescription?: 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; } -/** API Version Set Contract details. */ -export interface ApiVersionSetContract extends Resource { - /** Description of API Version Set. */ - description?: string; - /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ - versionQueryName?: string; - /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ - versionHeaderName?: 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. */ -export interface AuthorizationServerContract extends Resource { - /** 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; +/** External OAuth authorization server settings Properties. */ +export interface AuthorizationServerContractProperties + extends AuthorizationServerContractBaseProperties { /** User-friendly authorization server name. */ - displayName?: string; + 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; + clientRegistrationEndpoint: string; /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint?: string; + authorizationEndpoint: string; /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes?: GrantType[]; + grantTypes: GrantType[]; /** Client or app id registered with this authorization server. */ - clientId?: string; + 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 settings. */ -export interface AuthorizationServerUpdateContract extends Resource { - /** 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; +/** 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. */ @@ -3297,784 +3531,216 @@ export interface AuthorizationServerUpdateContract extends Resource { clientSecret?: string; } -/** Backend details. */ -export interface BackendContract extends Resource { - /** Backend Title. */ - title?: string; - /** Backend Description. */ - description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ - resourceId?: string; - /** Backend Properties contract */ - properties?: BackendProperties; - /** Backend Credentials Contract Properties */ - credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ - proxy?: BackendProxyContract; - /** Backend TLS Properties */ - tls?: BackendTlsProperties; +/** 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; } -/** Reconnect request parameters. */ -export interface BackendReconnectContract extends Resource { - /** Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ - after?: string; +/** KeyVault contract details. */ +export interface KeyVaultContractProperties + extends KeyVaultContractCreateProperties { + /** Last time sync and refresh status of secret from key vault. */ + lastStatus?: KeyVaultLastAccessStatusContractProperties; } -/** Cache details. */ -export interface CacheContract extends Resource { - /** Cache description */ - description?: string; - /** Runtime connection string to cache */ - connectionString?: string; - /** Location identifier to use cache from (should be either 'default' or valid Azure region identifier) */ - useFromLocation?: string; - /** Original uri of entity in external system cache points to */ - resourceId?: string; -} - -/** Certificate details. */ -export interface CertificateContract extends Resource { - /** Subject attribute of the certificate. */ - subject?: string; - /** Thumbprint of the certificate. */ - thumbprint?: string; - /** - * Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - expirationDate?: Date; - /** KeyVault location details of the certificate. */ - keyVault?: KeyVaultContractProperties; -} - -/** Content type contract details. */ -export interface ContentTypeContract extends Resource { - /** Content type identifier */ - idPropertiesId?: string; - /** Content type name. Must be 1 to 250 characters long. */ - namePropertiesName?: string; - /** Content type description. */ - description?: string; - /** Content type schema. */ - schema?: Record; - /** Content type version. */ - version?: string; +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; } -/** Content type contract details. */ -export interface ContentItemContract extends Resource { - /** Properties of the content item. */ - properties?: { [propertyName: string]: any }; +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceUpdateProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail?: string; + /** Publisher name. */ + publisherName?: string; } -/** Deleted API Management Service information. */ -export interface DeletedServiceContract extends Resource { +/** 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; /** - * API Management Service Master Location. + * 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 location?: string; - /** Fully-qualified API Management Service Resource ID */ - serviceId?: string; - /** UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ - scheduledPurgeDate?: Date; - /** UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ - deletionDate?: Date; -} - -/** Email Template details. */ -export interface EmailTemplateContract extends Resource { - /** Subject of the Template. */ - subject?: string; - /** Email Template Body. This should be a valid XDocument */ - body?: string; - /** Title of the Template. */ - title?: string; - /** Description of the Email Template. */ - description?: string; + readonly systemData?: SystemData; + /** Resource location. */ + location: string; /** - * Whether the template is the default template provided by API Management or has been edited. + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; - /** Email Template Parameter values. */ - parameters?: EmailTemplateParametersContractProperties[]; -} - -/** Gateway details. */ -export interface GatewayContract extends Resource { - /** Gateway location. */ - locationData?: ResourceLocationDataContract; - /** Gateway description */ - description?: string; -} - -/** Gateway hostname configuration details. */ -export interface GatewayHostnameConfigurationContract extends Resource { - /** Hostname value. Supports valid domain name, partial or full wildcard */ - hostname?: string; - /** Identifier of Certificate entity that will be used for TLS connection establishment */ - certificateId?: string; - /** Determines whether gateway requests client certificate */ - negotiateClientCertificate?: boolean; - /** Specifies if TLS 1.0 is supported */ - tls10Enabled?: boolean; - /** Specifies if TLS 1.1 is supported */ - tls11Enabled?: boolean; - /** Specifies if HTTP/2.0 is supported */ - http2Enabled?: boolean; -} - -/** Association entity details. */ -export interface AssociationContract extends Resource { - /** Provisioning state. */ - provisioningState?: "created"; -} - -/** Gateway certificate authority details. */ -export interface GatewayCertificateAuthorityContract extends Resource { - /** Determines whether certificate authority is trusted. */ - isTrusted?: boolean; -} - -/** Contract details. */ -export interface GroupContract extends Resource { - /** Group name. */ - displayName?: string; - /** Group description. Can contain HTML formatting tags. */ - description?: string; + 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; /** - * true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. + * 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 builtIn?: boolean; - /** Group type. */ - typePropertiesType?: GroupType; - /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ - externalId?: string; -} - -/** User details. */ -export interface UserContract extends Resource { - /** Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. */ - state?: UserState; - /** Optional note about a user set by the administrator. */ - note?: string; - /** Collection of user identities. */ - identities?: UserIdentityContract[]; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; + readonly provisioningState?: string; /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * 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. */ - registrationDate?: Date; + readonly targetProvisioningState?: string; /** - * Collection of groups user is part of. + * 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 groups?: GroupContractProperties[]; -} - -/** Identity Provider details. */ -export interface IdentityProviderContract extends Resource { - /** Identity Provider Type identifier. */ - typePropertiesType?: IdentityProviderType; - /** The TenantId to use instead of Common when logging into Active Directory */ - signinTenant?: string; - /** List of Allowed Tenants when configuring Azure Active Directory login. */ - allowedTenants?: string[]; - /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ - authority?: string; - /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ - signupPolicyName?: string; - /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ - signinPolicyName?: string; - /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ - profileEditingPolicyName?: string; - /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ - passwordResetPolicyName?: string; - /** 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; -} - -/** Identity Provider details. */ -export interface IdentityProviderCreateContract extends Resource { - /** Identity Provider Type identifier. */ - typePropertiesType?: IdentityProviderType; - /** The TenantId to use instead of Common when logging into Active Directory */ - signinTenant?: string; - /** List of Allowed Tenants when configuring Azure Active Directory login. */ - allowedTenants?: string[]; - /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ - authority?: string; - /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ - signupPolicyName?: string; - /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ - signinPolicyName?: string; - /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ - profileEditingPolicyName?: string; - /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ - passwordResetPolicyName?: string; - /** 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; -} - -/** Logger details. */ -export interface LoggerContract extends Resource { - /** Logger type. */ - loggerType?: LoggerType; - /** Logger description. */ - description?: string; + readonly createdAtUtc?: Date; /** - * The name and SendRule connection string of the event hub for azureEventHub logger. - * Instrumentation key for applicationInsights logger. + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - credentials?: { [propertyName: string]: string }; - /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ - isBuffered?: boolean; - /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ - resourceId?: string; -} - -/** NamedValue details. */ -export interface NamedValueContract extends Resource { - /** Optional tags that when provided can be used to filter the NamedValue list. */ - tags?: string[]; - /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ - secret?: boolean; - /** 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; -} - -/** NamedValue details. */ -export interface NamedValueCreateContract extends Resource { - /** Optional tags that when provided can be used to filter the NamedValue list. */ - tags?: string[]; - /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ - secret?: boolean; - /** 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; -} - -/** Notification details. */ -export interface NotificationContract extends Resource { - /** Title of the Notification. */ - title?: string; - /** Description of the Notification. */ - description?: string; - /** Recipient Parameter values. */ - recipients?: RecipientsContractProperties; -} - -/** Recipient User details. */ -export interface RecipientUserContract extends Resource { - /** API Management UserId subscribed to notification. */ - userId?: string; -} - -/** Recipient Email details. */ -export interface RecipientEmailContract extends Resource { - /** User Email subscribed to notification. */ - email?: string; -} - -/** OpenId Connect Provider details. */ -export interface OpenidConnectProviderContract extends Resource { - /** User-friendly OpenID Connect Provider name. */ - displayName?: string; - /** User-friendly description of OpenID Connect Provider. */ - description?: string; - /** Metadata endpoint URI. */ - metadataEndpoint?: string; - /** Client ID of developer console which is the client application. */ - clientId?: string; - /** Client Secret of developer console which is the client application. */ - clientSecret?: string; -} - -/** Policy description details. */ -export interface PolicyDescriptionContract extends Resource { + readonly gatewayUrl?: string; /** - * Policy description. + * 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 description?: string; + readonly gatewayRegionalUrl?: string; /** - * Binary OR value of the Snippet scope. + * 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 scope?: number; -} - -/** Portal Revision's contract details. */ -export interface PortalRevisionContract extends Resource { - /** Portal revision description. */ - description?: string; + readonly portalUrl?: string; /** - * Portal revision publishing status details. + * 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 statusDetails?: string; + readonly managementApiUrl?: string; /** - * Status of the portal's revision. + * SCM endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: PortalRevisionStatus; - /** Indicates if the portal's revision is public. */ - isCurrent?: boolean; + readonly scmUrl?: string; /** - * Portal's revision creation date and time. + * DEveloper Portal endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDateTime?: Date; + readonly developerPortalUrl?: string; + /** Custom hostname configuration of the API Management service. */ + hostnameConfigurations?: HostnameConfiguration[]; /** - * Last updated date and time. + * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedDateTime?: Date; -} - -/** Portal Settings for the Developer Portal. */ -export interface PortalSettingsContract extends Resource { - /** A delegation Url. */ - url?: string; - /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ - validationKey?: string; - /** Subscriptions delegation settings. */ - subscriptions?: SubscriptionsDelegationSettingsProperties; - /** User registration delegation settings. */ - userRegistration?: RegistrationDelegationSettingsProperties; - /** Redirect Anonymous users to the Sign-In page. */ - enabled?: boolean; - /** Terms of service contract properties. */ - termsOfService?: TermsOfServiceProperties; -} - -/** Sign-In settings for the Developer Portal. */ -export interface PortalSigninSettings extends Resource { - /** Redirect Anonymous users to the Sign-In page. */ - enabled?: boolean; -} - -/** Sign-Up settings for a developer portal. */ -export interface PortalSignupSettings extends Resource { - /** Allow users to sign up on a developer portal. */ - enabled?: boolean; - /** Terms of service contract properties. */ - termsOfService?: TermsOfServiceProperties; -} - -/** Delegation settings for a developer portal. */ -export interface PortalDelegationSettings extends Resource { - /** A delegation Url. */ - url?: string; - /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ - validationKey?: string; - /** Subscriptions delegation settings. */ - subscriptions?: SubscriptionsDelegationSettingsProperties; - /** User registration delegation settings. */ - userRegistration?: RegistrationDelegationSettingsProperties; -} - -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly publicIPAddresses?: string[]; /** - * The provisioning state of the private endpoint connection resource. + * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; -} - -/** A private link resource */ -export interface PrivateLinkResource extends Resource { + readonly privateIPAddresses?: string[]; + /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ + 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; + /** Virtual network configuration of the API Management service. */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** Additional datacenter locations of the API Management service. */ + additionalLocations?: AdditionalLocation[]; + /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ + customProperties?: { [propertyName: string]: string }; + /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ + certificates?: CertificateConfiguration[]; + /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ + enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; /** - * The private link resource group id. + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly outboundPublicIPAddresses?: string[]; + /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ + disableGateway?: boolean; + /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ + virtualNetworkType?: VirtualNetworkType; + /** Control Plane Apis version constraint for the API Management service. */ + apiVersionConstraint?: ApiVersionConstraint; + /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ + restore?: boolean; + /** List of Private Endpoint Connections of this service. */ + privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; /** - * The private link resource required member names. + * Compute Platform Version running the service in this location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; + readonly platformVersion?: PlatformVersion; + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; } -/** Subscription details. */ -export interface SubscriptionContract extends Resource { - /** The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier. */ - ownerId?: string; - /** Scope like /products/{productId} or /apis or /apis/{apiId}. */ - scope?: string; - /** The name of the subscription, or null if the subscription has no name. */ - displayName?: string; - /** Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. */ - state?: SubscriptionState; +/** Parameter supplied to Update Api Management Service. */ +export interface ApiManagementServiceUpdateParameters extends ApimResource { + /** SKU properties of the API Management service. */ + sku?: ApiManagementServiceSkuProperties; + /** Managed service identity of the Api Management service. */ + identity?: ApiManagementServiceIdentity; /** - * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDate?: Date; + 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; /** - * Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * 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. */ - startDate?: Date; + readonly provisioningState?: string; /** - * Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * 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. */ - expirationDate?: Date; + readonly targetProvisioningState?: string; /** - * Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. 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 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. */ - endDate?: Date; + readonly createdAtUtc?: Date; /** - * Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - notificationDate?: Date; - /** Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - primaryKey?: string; - /** Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - secondaryKey?: string; - /** Optional subscription comment added by an administrator when the state is changed to the 'rejected'. */ - stateComment?: string; - /** Determines whether tracing is enabled */ - allowTracing?: boolean; -} - -/** Global Schema Contract details. */ -export interface GlobalSchemaContract extends Resource { - /** Schema Type. Immutable. */ - schemaType?: SchemaType; - /** Free-form schema entity description. */ - description?: string; - /** Json-encoded string for non json-based schema. */ - value?: any; - /** Global Schema document object for json-based schema formats(e.g. json schema). */ - document?: Record; -} - -/** Tenant Settings. */ -export interface TenantSettingsContract extends Resource { - /** Tenant settings */ - settings?: { [propertyName: string]: string }; -} - -/** Tenant Settings. */ -export interface AccessInformationContract extends Resource { - /** Access Information type ('access' or 'gitAccess') */ - idPropertiesId?: string; - /** Principal (User) Identifier. */ - principalId?: string; - /** Determines whether direct access is enabled. */ - enabled?: boolean; -} - -/** Long Running Git Operation Results. */ -export interface OperationResultContract extends Resource { - /** Operation result identifier. */ - idPropertiesId?: string; - /** Status of an async operation. */ - status?: AsyncOperationStatus; + readonly gatewayUrl?: string; /** - * 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. - * + * 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. */ - started?: Date; + readonly gatewayRegionalUrl?: string; /** - * 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. - * + * Publisher portal endpoint Url of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - updated?: Date; - /** Optional result info. */ - resultInfo?: string; - /** Error Body Contract */ - error?: ErrorResponseBody; + readonly portalUrl?: string; /** - * 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 Resource { - /** The name of Git branch. */ - branch?: string; - /** The latest commit Id. */ - commitId?: string; - /** value indicating if last sync was save (true) or deploy (false) operation. */ - isExport?: boolean; - /** value indicating if last synchronization was later than the configuration change. */ - isSynced?: boolean; - /** value indicating whether Git configuration access is enabled. */ - isGitEnabled?: boolean; - /** - * The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - syncDate?: Date; - /** - * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - configurationChangeDate?: Date; - /** Most recent tenant configuration operation identifier */ - lastOperationId?: 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; - /** 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; - /** 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 service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; -} - -/** 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. + * 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; @@ -4108,12 +3774,19 @@ export interface ApiManagementServiceResource extends ApimResource { virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ + /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ customProperties?: { [propertyName: string]: string }; /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ certificates?: CertificateConfiguration[]; /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; + /** + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outboundPublicIPAddresses?: string[]; /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ disableGateway?: boolean; /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ @@ -4130,114 +3803,7 @@ export interface ApiManagementServiceResource extends ApimResource { */ readonly platformVersion?: PlatformVersion; /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; -} - -/** Parameter supplied to Update Api Management Service. */ -export interface ApiManagementServiceUpdateParameters extends ApimResource { - /** SKU properties of the API Management service. */ - sku?: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; - /** - * 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; - /** - * DEveloper Portal endpoint URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly developerPortalUrl?: string; - /** Custom hostname configuration of the API Management service. */ - hostnameConfigurations?: HostnameConfiguration[]; - /** - * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIPAddresses?: string[]; - /** - * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateIPAddresses?: string[]; - /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ - 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; - /** Virtual network configuration of the API Management service. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; - /** Additional datacenter locations of the API Management service. */ - additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ - customProperties?: { [propertyName: string]: string }; - /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ - certificates?: CertificateConfiguration[]; - /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ - enableClientCertificate?: boolean; - /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ - disableGateway?: boolean; - /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ - virtualNetworkType?: VirtualNetworkType; - /** Control Plane Apis version constraint for the API Management service. */ - apiVersionConstraint?: ApiVersionConstraint; - /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ - restore?: boolean; - /** List of Private Endpoint Connections of this service. */ - privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; - /** - * Compute Platform Version running the service in this location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly platformVersion?: PlatformVersion; - /** Publisher email. */ - publisherEmail?: string; + publisherEmail?: string; /** Publisher name. */ publisherName?: string; } @@ -4368,2390 +3934,6204 @@ export interface ApiCreateOrUpdateProperties extends ApiContractProperties { * * `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; } -/** 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. */ - eTag?: string; +/** 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; + /** Type of API. */ + apiType?: ApiType; + /** Describes the revision of the API. If no value is provided, default revision 1 is created */ + apiRevision?: string; + /** Indicates the version identifier of the API if the API is versioned */ + apiVersion?: string; + /** Indicates if API revision is current api revision. */ + isCurrent?: boolean; + /** + * Indicates if API revision is accessible via the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isOnline?: boolean; + /** Description of the API Revision. */ + apiRevisionDescription?: string; + /** Description of the API Version. */ + apiVersionDescription?: string; + /** A resource identifier for the related ApiVersionSet. */ + apiVersionSetId?: string; + /** Specifies whether an API or Product subscription is required for accessing the API. */ + subscriptionRequired?: boolean; + /** A URL to the Terms of Service for the API. MUST be in the format of a URL. */ + termsOfServiceUrl?: string; + /** Contact information for the API. */ + contact?: ApiContactInformation; + /** License information for the API. */ + license?: ApiLicenseInformation; + /** 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; } -/** Defines headers for Api_get operation. */ -export interface ApiGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** ApiRelease details. */ +export interface ApiReleaseContract extends ProxyResource { + /** Identifier of the API the release belongs to. */ + apiId?: string; + /** + * The time the API was released. 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 createdDateTime?: Date; + /** + * The time the API release was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedDateTime?: Date; + /** Release Notes */ + notes?: string; } -/** Defines headers for Api_createOrUpdate operation. */ -export interface ApiCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** API Operation details. */ +export interface OperationContract extends ProxyResource { + /** Collection of URL template parameters. */ + templateParameters?: ParameterContract[]; + /** Description of the operation. May include HTML formatting tags. */ + description?: string; + /** An entity containing request details. */ + request?: RequestContract; + /** Array of Operation responses. */ + responses?: ResponseContract[]; + /** Operation Policies */ + policies?: string; + /** 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; } -/** Defines headers for Api_update operation. */ -export interface ApiUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Policy Contract details. */ +export interface PolicyContract extends ProxyResource { + /** Contents of the Policy as defined by the format. */ + value?: string; + /** Format of the policyContent. */ + format?: PolicyContentFormat; } -/** 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. */ - eTag?: string; +/** Tag Contract details. */ +export interface TagContract extends ProxyResource { + /** Tag name. */ + displayName?: string; } -/** Defines headers for ApiRelease_get operation. */ -export interface ApiReleaseGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** GraphQL API Resolver details. */ +export interface ResolverContract extends ProxyResource { + /** Resolver Name. */ + displayName?: string; + /** Path is type/field being resolved. */ + path?: string; + /** Description of the resolver. May include HTML formatting tags. */ + description?: string; } -/** Defines headers for ApiRelease_createOrUpdate operation. */ -export interface ApiReleaseCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Product details. */ +export interface ProductContract extends ProxyResource { + /** Product description. May include HTML formatting tags. */ + description?: string; + /** Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. */ + terms?: string; + /** Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. */ + subscriptionRequired?: boolean; + /** whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. */ + approvalRequired?: boolean; + /** Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. */ + subscriptionsLimit?: number; + /** whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. */ + state?: ProductState; + /** Product name. */ + displayName?: string; } -/** Defines headers for ApiRelease_update operation. */ -export interface ApiReleaseUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** 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`. */ + contentType?: 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. */ + definitions?: Record; + /** Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise. */ + components?: Record; } -/** Defines headers for ApiOperation_getEntityTag operation. */ -export interface ApiOperationGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} +/** Diagnostic details. */ +export interface DiagnosticContract extends ProxyResource { + /** Specifies for what type of messages sampling settings should not apply. */ + alwaysLog?: AlwaysLog; + /** Resource Id of a target logger. */ + loggerId?: string; + /** Sampling settings for Diagnostic. */ + sampling?: SamplingSettings; + /** Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. */ + frontend?: PipelineDiagnosticSettings; + /** Diagnostic settings for incoming/outgoing HTTP messages to the Backend */ + backend?: PipelineDiagnosticSettings; + /** Log the ClientIP. Default is false. */ + logClientIp?: boolean; + /** Sets correlation protocol to use for Application Insights diagnostics. */ + httpCorrelationProtocol?: HttpCorrelationProtocol; + /** The verbosity level applied to traces emitted by trace policies. */ + verbosity?: Verbosity; + /** The format of the Operation Name for Application Insights telemetries. Default is Name. */ + operationNameFormat?: OperationNameFormat; + /** Emit custom metrics via emit-metric policy. Applicable only to Application Insights diagnostic settings. */ + metrics?: boolean; +} -/** Defines headers for ApiOperation_get operation. */ -export interface ApiOperationGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Issue Contract details. */ +export interface IssueContract extends ProxyResource { + /** Date and time when the issue was created. */ + createdDate?: Date; + /** Status of the issue. */ + state?: State; + /** A resource identifier for the API the issue was created for. */ + apiId?: string; + /** The issue title. */ + title?: string; + /** Text describing the issue. */ + description?: string; + /** A resource identifier for the user created the issue. */ + userId?: string; } -/** Defines headers for ApiOperation_createOrUpdate operation. */ -export interface ApiOperationCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Issue Comment Contract details. */ +export interface IssueCommentContract extends ProxyResource { + /** Comment text. */ + text?: string; + /** Date and time when the comment was created. */ + createdDate?: Date; + /** A resource identifier for the user who left the comment. */ + userId?: string; } -/** Defines headers for ApiOperation_update operation. */ -export interface ApiOperationUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Issue Attachment Contract details. */ +export interface IssueAttachmentContract extends ProxyResource { + /** Filename by which the binary data will be saved. */ + title?: string; + /** Either 'link' if content is provided via an HTTP link or the MIME type of the Base64-encoded binary data provided in the 'content' property. */ + contentFormat?: string; + /** An HTTP link or Base64-encoded binary data. */ + content?: string; } -/** Defines headers for ApiOperationPolicy_getEntityTag operation. */ -export interface ApiOperationPolicyGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Contract details. */ +export interface TagDescriptionContract extends ProxyResource { + /** Description of the Tag. */ + description?: string; + /** Absolute URL of external resources describing the tag. */ + externalDocsUrl?: string; + /** Description of the external resources describing the tag. */ + externalDocsDescription?: string; + /** Identifier of the tag in the form of /tags/{tagId} */ + tagId?: string; + /** Tag name. */ + displayName?: string; } -/** Defines headers for ApiOperationPolicy_get operation. */ -export interface ApiOperationPolicyGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Wiki properties */ +export interface WikiContract extends ProxyResource { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; } -/** Defines headers for ApiOperationPolicy_createOrUpdate operation. */ -export interface ApiOperationPolicyCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** API Version Set Contract details. */ +export interface ApiVersionSetContract extends ProxyResource { + /** Description of API Version Set. */ + description?: string; + /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ + versionQueryName?: string; + /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ + versionHeaderName?: string; + /** 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; } -/** Defines headers for Tag_getEntityStateByOperation operation. */ -export interface TagGetEntityStateByOperationHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: 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; } -/** Defines headers for Tag_getByOperation operation. */ -export interface TagGetByOperationHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: 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; + /** 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; + /** 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; } -/** Defines headers for Tag_getEntityStateByApi operation. */ -export interface TagGetEntityStateByApiHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** External OAuth authorization server settings. */ +export interface AuthorizationServerUpdateContract 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; + /** 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; + /** 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; } -/** Defines headers for Tag_getByApi operation. */ -export interface TagGetByApiHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Backend details. */ +export interface BackendContract extends ProxyResource { + /** Backend Title. */ + title?: string; + /** Backend Description. */ + description?: string; + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + resourceId?: string; + /** Backend Properties contract */ + properties?: BackendProperties; + /** Backend Credentials Contract Properties */ + credentials?: BackendCredentialsContract; + /** Backend gateway Contract Properties */ + proxy?: BackendProxyContract; + /** Backend TLS Properties */ + tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + /** Runtime Url of the Backend. */ + url?: string; + /** Backend communication protocol. */ + protocol?: BackendProtocol; } -/** Defines headers for Tag_assignToApi operation. */ -export interface TagAssignToApiHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Reconnect request parameters. */ +export interface BackendReconnectContract extends ProxyResource { + /** Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ + after?: string; } -/** Defines headers for Tag_getEntityStateByProduct operation. */ -export interface TagGetEntityStateByProductHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Cache details. */ +export interface CacheContract extends ProxyResource { + /** Cache description */ + description?: string; + /** Runtime connection string to cache */ + connectionString?: string; + /** Location identifier to use cache from (should be either 'default' or valid Azure region identifier) */ + useFromLocation?: string; + /** Original uri of entity in external system cache points to */ + resourceId?: string; } -/** Defines headers for Tag_getByProduct operation. */ -export interface TagGetByProductHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Certificate details. */ +export interface CertificateContract extends ProxyResource { + /** Subject attribute of the certificate. */ + subject?: string; + /** Thumbprint of the certificate. */ + thumbprint?: string; + /** + * Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + expirationDate?: Date; + /** KeyVault location details of the certificate. */ + keyVault?: KeyVaultContractProperties; } -/** Defines headers for Tag_getEntityState operation. */ -export interface TagGetEntityStateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Content type contract details. */ +export interface ContentTypeContract extends ProxyResource { + /** Content type identifier */ + idPropertiesId?: string; + /** Content type name. Must be 1 to 250 characters long. */ + namePropertiesName?: string; + /** Content type description. */ + description?: string; + /** Content type schema. */ + schema?: Record; + /** Content type version. */ + version?: string; } -/** Defines headers for Tag_get operation. */ -export interface TagGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Content type contract details. */ +export interface ContentItemContract extends ProxyResource { + /** Properties of the content item. */ + properties?: { [propertyName: string]: any }; } -/** Defines headers for Tag_createOrUpdate operation. */ -export interface TagCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for Tag_update operation. */ -export interface TagUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Deleted API Management Service information. */ +export interface DeletedServiceContract extends ProxyResource { + /** + * API Management Service Master Location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** Fully-qualified API Management Service Resource ID */ + serviceId?: string; + /** UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + scheduledPurgeDate?: Date; + /** UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + deletionDate?: Date; } -/** Defines headers for ApiPolicy_getEntityTag operation. */ -export interface ApiPolicyGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; } -/** Defines headers for ApiPolicy_get operation. */ -export interface ApiPolicyGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Email Template details. */ +export interface EmailTemplateContract extends ProxyResource { + /** Subject of the Template. */ + subject?: string; + /** Email Template Body. This should be a valid XDocument */ + body?: string; + /** Title of the Template. */ + title?: string; + /** Description of the Email Template. */ + description?: string; + /** + * Whether the template is the default template provided by API Management or has been edited. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefault?: boolean; + /** Email Template Parameter values. */ + parameters?: EmailTemplateParametersContractProperties[]; } -/** Defines headers for ApiPolicy_createOrUpdate operation. */ -export interface ApiPolicyCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Gateway details. */ +export interface GatewayContract extends ProxyResource { + /** Gateway location. */ + locationData?: ResourceLocationDataContract; + /** Gateway description */ + description?: string; } -/** Defines headers for ApiSchema_getEntityTag operation. */ -export interface ApiSchemaGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Gateway hostname configuration details. */ +export interface GatewayHostnameConfigurationContract extends ProxyResource { + /** Hostname value. Supports valid domain name, partial or full wildcard */ + hostname?: string; + /** Identifier of Certificate entity that will be used for TLS connection establishment */ + certificateId?: string; + /** Determines whether gateway requests client certificate */ + negotiateClientCertificate?: boolean; + /** Specifies if TLS 1.0 is supported */ + tls10Enabled?: boolean; + /** Specifies if TLS 1.1 is supported */ + tls11Enabled?: boolean; + /** Specifies if HTTP/2.0 is supported */ + http2Enabled?: boolean; } -/** Defines headers for ApiSchema_get operation. */ -export interface ApiSchemaGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Association entity details. */ +export interface AssociationContract extends ProxyResource { + /** Provisioning state. */ + provisioningState?: "created"; } -/** Defines headers for ApiSchema_createOrUpdate operation. */ -export interface ApiSchemaCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Gateway certificate authority details. */ +export interface GatewayCertificateAuthorityContract extends ProxyResource { + /** Determines whether certificate authority is trusted. */ + isTrusted?: boolean; } -/** Defines headers for ApiDiagnostic_getEntityTag operation. */ -export interface ApiDiagnosticGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Contract details. */ +export interface GroupContract extends ProxyResource { + /** Group name. */ + displayName?: string; + /** Group description. Can contain HTML formatting tags. */ + description?: string; + /** + * true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly builtIn?: boolean; + /** Group type. */ + typePropertiesType?: GroupType; + /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ + externalId?: string; } -/** Defines headers for ApiDiagnostic_get operation. */ -export interface ApiDiagnosticGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** User details. */ +export interface UserContract extends ProxyResource { + /** Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. */ + state?: UserState; + /** Optional note about a user set by the administrator. */ + note?: string; + /** Collection of user identities. */ + identities?: UserIdentityContract[]; + /** 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[]; } -/** Defines headers for ApiDiagnostic_createOrUpdate operation. */ -export interface ApiDiagnosticCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Identity Provider details. */ +export interface IdentityProviderContract extends ProxyResource { + /** Identity Provider Type identifier. */ + typePropertiesType?: IdentityProviderType; + /** The TenantId to use instead of Common when logging into Active Directory */ + signinTenant?: string; + /** List of Allowed Tenants when configuring Azure Active Directory login. */ + allowedTenants?: string[]; + /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ + authority?: string; + /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ + signupPolicyName?: string; + /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ + signinPolicyName?: string; + /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ + profileEditingPolicyName?: string; + /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ + passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; + /** 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; } -/** Defines headers for ApiDiagnostic_update operation. */ -export interface ApiDiagnosticUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Identity Provider details. */ +export interface IdentityProviderCreateContract extends ProxyResource { + /** Identity Provider Type identifier. */ + typePropertiesType?: IdentityProviderType; + /** The TenantId to use instead of Common when logging into Active Directory */ + signinTenant?: string; + /** List of Allowed Tenants when configuring Azure Active Directory login. */ + allowedTenants?: string[]; + /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ + authority?: string; + /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ + signupPolicyName?: string; + /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ + signinPolicyName?: string; + /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ + profileEditingPolicyName?: string; + /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ + passwordResetPolicyName?: string; + /** The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. */ + clientLibrary?: string; + /** 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; } -/** Defines headers for ApiIssue_getEntityTag operation. */ -export interface ApiIssueGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Logger details. */ +export interface LoggerContract extends ProxyResource { + /** Logger type. */ + loggerType?: LoggerType; + /** Logger description. */ + description?: string; + /** + * The name and SendRule connection string of the event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. + */ + credentials?: { [propertyName: string]: string }; + /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ + isBuffered?: boolean; + /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ + resourceId?: string; } -/** Defines headers for ApiIssue_get operation. */ -export interface ApiIssueGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** NamedValue details. */ +export interface NamedValueContract extends ProxyResource { + /** Optional tags that when provided can be used to filter the NamedValue list. */ + tags?: string[]; + /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ + secret?: boolean; + /** 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; } -/** Defines headers for ApiIssue_createOrUpdate operation. */ -export interface ApiIssueCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** NamedValue details. */ +export interface NamedValueCreateContract extends ProxyResource { + /** Optional tags that when provided can be used to filter the NamedValue list. */ + tags?: string[]; + /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ + secret?: boolean; + /** 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; } -/** Defines headers for ApiIssue_update operation. */ -export interface ApiIssueUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Notification details. */ +export interface NotificationContract extends ProxyResource { + /** Title of the Notification. */ + title?: string; + /** Description of the Notification. */ + description?: string; + /** Recipient Parameter values. */ + recipients?: RecipientsContractProperties; } -/** Defines headers for ApiIssueComment_getEntityTag operation. */ -export interface ApiIssueCommentGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Recipient User details. */ +export interface RecipientUserContract extends ProxyResource { + /** API Management UserId subscribed to notification. */ + userId?: string; } -/** Defines headers for ApiIssueComment_get operation. */ -export interface ApiIssueCommentGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Recipient Email details. */ +export interface RecipientEmailContract extends ProxyResource { + /** User Email subscribed to notification. */ + email?: string; } -/** Defines headers for ApiIssueComment_createOrUpdate operation. */ -export interface ApiIssueCommentCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} - -/** Defines headers for ApiIssueAttachment_getEntityTag operation. */ -export interface ApiIssueAttachmentGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** OpenId Connect Provider details. */ +export interface OpenidConnectProviderContract extends ProxyResource { + /** User-friendly OpenID Connect Provider name. */ + displayName?: string; + /** User-friendly description of OpenID Connect Provider. */ + description?: string; + /** Metadata endpoint URI. */ + metadataEndpoint?: string; + /** Client ID of developer console which is the client application. */ + clientId?: string; + /** Client Secret of developer console which is the client application. */ + clientSecret?: string; + /** If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; } -/** Defines headers for ApiIssueAttachment_get operation. */ -export interface ApiIssueAttachmentGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Policy description details. */ +export interface PolicyDescriptionContract extends ProxyResource { + /** + * Policy description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Binary OR value of the Snippet scope. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scope?: number; } -/** Defines headers for ApiIssueAttachment_createOrUpdate operation. */ -export interface ApiIssueAttachmentCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Policy fragment contract details. */ +export interface PolicyFragmentContract extends ProxyResource { + /** Contents of the policy fragment. */ + value?: string; + /** Policy fragment description. */ + description?: string; + /** Format of the policy fragment content. */ + format?: PolicyFragmentContentFormat; } -/** Defines headers for ApiTagDescription_getEntityTag operation. */ -export interface ApiTagDescriptionGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; -} +export interface ResourceCollectionValueItem extends ProxyResource {} -/** Defines headers for ApiTagDescription_get operation. */ -export interface ApiTagDescriptionGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** The developer portal configuration contract. */ +export interface PortalConfigContract extends ProxyResource { + /** Enable or disable Basic authentication method. */ + enableBasicAuth?: boolean; + signin?: PortalConfigPropertiesSignin; + signup?: PortalConfigPropertiesSignup; + /** The developer portal delegation settings. */ + delegation?: PortalConfigDelegationProperties; + /** The developer portal Cross-Origin Resource Sharing (CORS) settings. */ + cors?: PortalConfigCorsProperties; + /** The developer portal Content Security Policy (CSP) settings. */ + csp?: PortalConfigCspProperties; } -/** Defines headers for ApiTagDescription_createOrUpdate operation. */ -export interface ApiTagDescriptionCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Portal Revision's contract details. */ +export interface PortalRevisionContract extends ProxyResource { + /** Portal revision description. */ + description?: string; + /** + * Portal revision publishing status details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusDetails?: string; + /** + * Status of the portal's revision. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: PortalRevisionStatus; + /** Indicates if the portal's revision is public. */ + isCurrent?: boolean; + /** + * Portal's revision creation date and time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDateTime?: Date; + /** + * Last updated date and time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly updatedDateTime?: Date; } -/** Defines headers for ApiVersionSet_getEntityTag operation. */ -export interface ApiVersionSetGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Portal Settings for the Developer Portal. */ +export interface PortalSettingsContract extends ProxyResource { + /** A delegation Url. */ + url?: string; + /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ + validationKey?: string; + /** Subscriptions delegation settings. */ + subscriptions?: SubscriptionsDelegationSettingsProperties; + /** User registration delegation settings. */ + userRegistration?: RegistrationDelegationSettingsProperties; + /** Redirect Anonymous users to the Sign-In page. */ + enabled?: boolean; + /** Terms of service contract properties. */ + termsOfService?: TermsOfServiceProperties; } -/** Defines headers for ApiVersionSet_get operation. */ -export interface ApiVersionSetGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Sign-In settings for the Developer Portal. */ +export interface PortalSigninSettings extends ProxyResource { + /** Redirect Anonymous users to the Sign-In page. */ + enabled?: boolean; } -/** Defines headers for ApiVersionSet_createOrUpdate operation. */ -export interface ApiVersionSetCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Sign-Up settings for a developer portal. */ +export interface PortalSignupSettings extends ProxyResource { + /** Allow users to sign up on a developer portal. */ + enabled?: boolean; + /** Terms of service contract properties. */ + termsOfService?: TermsOfServiceProperties; } -/** Defines headers for ApiVersionSet_update operation. */ -export interface ApiVersionSetUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Delegation settings for a developer portal. */ +export interface PortalDelegationSettings extends ProxyResource { + /** A delegation Url. */ + url?: string; + /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ + validationKey?: string; + /** Subscriptions delegation settings. */ + subscriptions?: SubscriptionsDelegationSettingsProperties; + /** User registration delegation settings. */ + userRegistration?: RegistrationDelegationSettingsProperties; } -/** 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; +/** Subscription details. */ +export interface SubscriptionContract extends ProxyResource { + /** The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier. */ + ownerId?: string; + /** Scope like /products/{productId} or /apis or /apis/{apiId}. */ + scope?: string; + /** The name of the subscription, or null if the subscription has no name. */ + displayName?: string; + /** Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. */ + state?: SubscriptionState; + /** + * Subscription creation date. 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 createdDate?: Date; + /** + * Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + startDate?: Date; + /** + * Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + expirationDate?: Date; + /** + * Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + endDate?: Date; + /** + * Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + notificationDate?: Date; + /** Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + primaryKey?: string; + /** Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + secondaryKey?: string; + /** Optional subscription comment added by an administrator when the state is changed to the 'rejected'. */ + stateComment?: string; + /** Determines whether tracing is enabled */ + allowTracing?: boolean; } -/** 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; +/** Product-API link details. */ +export interface ProductApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: 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; +/** Product-group link details. */ +export interface ProductGroupLinkContract extends ProxyResource { + /** Full resource Id of a group. */ + groupId?: 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; +/** Global Schema Contract details. */ +export interface GlobalSchemaContract extends ProxyResource { + /** Schema Type. Immutable. */ + schemaType?: SchemaType; + /** Free-form schema entity description. */ + description?: string; + /** Json-encoded string for non json-based schema. */ + value?: any; + /** Global Schema document object for json-based schema formats(e.g. json schema). */ + document?: Record; } -/** 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; +/** Tenant Settings. */ +export interface TenantSettingsContract extends ProxyResource { + /** Tenant settings */ + settings?: { [propertyName: string]: 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; +/** Tag-API link details. */ +export interface TagApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: 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; +/** Tag-operation link details. */ +export interface TagOperationLinkContract extends ProxyResource { + /** Full resource Id of an API operation. */ + operationId?: 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; +/** Tag-product link details. */ +export interface TagProductLinkContract extends ProxyResource { + /** Full resource Id of a product. */ + productId?: 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; +/** Tenant Settings. */ +export interface AccessInformationContract extends ProxyResource { + /** Access Information type ('access' or 'gitAccess') */ + idPropertiesId?: string; + /** Principal (User) Identifier. */ + principalId?: string; + /** Determines whether direct access is enabled. */ + enabled?: boolean; } -/** Defines headers for Cache_getEntityTag operation. */ -export interface CacheGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** 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[]; } -/** Defines headers for Cache_get operation. */ -export interface CacheGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Result of Tenant Configuration Sync State. */ +export interface TenantConfigurationSyncStateContract extends ProxyResource { + /** The name of Git branch. */ + branch?: string; + /** The latest commit Id. */ + commitId?: string; + /** value indicating if last sync was save (true) or deploy (false) operation. */ + isExport?: boolean; + /** value indicating if last synchronization was later than the configuration change. */ + isSynced?: boolean; + /** value indicating whether Git configuration access is enabled. */ + isGitEnabled?: boolean; + /** + * The date of the latest synchronization. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + syncDate?: Date; + /** + * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + configurationChangeDate?: Date; + /** Most recent tenant configuration operation identifier */ + lastOperationId?: string; } -/** Defines headers for Cache_createOrUpdate operation. */ -export interface CacheCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Workspace details. */ +export interface WorkspaceContract extends ProxyResource { + /** Name of the workspace. */ + displayName?: string; + /** Description of the workspace. */ + description?: string; } -/** Defines headers for Cache_update operation. */ -export interface CacheUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Long Running Git Resolver Results. */ +export interface ResolverResultContract extends ProxyResource { + /** Resolver result identifier. */ + idPropertiesId?: string; + /** Status of an async resolver. */ + status?: AsyncResolverStatus; + /** + * Start time of an async resolver. 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 resolver. 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 resolver. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy resolver. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionLog?: ResolverResultLogItemContract[]; } -/** Defines headers for Certificate_getEntityTag operation. */ -export interface CertificateGetEntityTagHeaders { +/** 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. */ eTag?: string; } -/** Defines headers for Certificate_get operation. */ -export interface CertificateGetHeaders { +/** Defines headers for Api_get operation. */ +export interface ApiGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Certificate_createOrUpdate operation. */ -export interface CertificateCreateOrUpdateHeaders { +/** Defines headers for Api_createOrUpdate operation. */ +export interface ApiCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Certificate_refreshSecret operation. */ -export interface CertificateRefreshSecretHeaders { +/** Defines headers for Api_update operation. */ +export interface ApiUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ContentType_get operation. */ -export interface ContentTypeGetHeaders { +/** 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. */ eTag?: string; } -/** Defines headers for ContentType_createOrUpdate operation. */ -export interface ContentTypeCreateOrUpdateHeaders { +/** Defines headers for ApiRelease_get operation. */ +export interface ApiReleaseGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ContentItem_getEntityTag operation. */ -export interface ContentItemGetEntityTagHeaders { +/** Defines headers for ApiRelease_createOrUpdate operation. */ +export interface ApiReleaseCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ContentItem_get operation. */ -export interface ContentItemGetHeaders { +/** Defines headers for ApiRelease_update operation. */ +export interface ApiReleaseUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ContentItem_createOrUpdate operation. */ -export interface ContentItemCreateOrUpdateHeaders { +/** Defines headers for ApiOperation_getEntityTag operation. */ +export interface ApiOperationGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Diagnostic_getEntityTag operation. */ -export interface DiagnosticGetEntityTagHeaders { +/** Defines headers for ApiOperation_get operation. */ +export interface ApiOperationGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Diagnostic_get operation. */ -export interface DiagnosticGetHeaders { +/** Defines headers for ApiOperation_createOrUpdate operation. */ +export interface ApiOperationCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Diagnostic_createOrUpdate operation. */ -export interface DiagnosticCreateOrUpdateHeaders { +/** Defines headers for ApiOperation_update operation. */ +export interface ApiOperationUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Diagnostic_update operation. */ -export interface DiagnosticUpdateHeaders { +/** Defines headers for ApiOperationPolicy_getEntityTag operation. */ +export interface ApiOperationPolicyGetEntityTagHeaders { /** 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 { +/** Defines headers for ApiOperationPolicy_get operation. */ +export interface ApiOperationPolicyGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for EmailTemplate_get operation. */ -export interface EmailTemplateGetHeaders { +/** Defines headers for ApiOperationPolicy_createOrUpdate operation. */ +export interface ApiOperationPolicyCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for EmailTemplate_update operation. */ -export interface EmailTemplateUpdateHeaders { +/** Defines headers for Tag_getEntityStateByOperation operation. */ +export interface TagGetEntityStateByOperationHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Gateway_getEntityTag operation. */ -export interface GatewayGetEntityTagHeaders { +/** Defines headers for Tag_getByOperation operation. */ +export interface TagGetByOperationHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Gateway_get operation. */ -export interface GatewayGetHeaders { +/** Defines headers for Tag_getEntityStateByApi operation. */ +export interface TagGetEntityStateByApiHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Gateway_createOrUpdate operation. */ -export interface GatewayCreateOrUpdateHeaders { +/** Defines headers for Tag_getByApi operation. */ +export interface TagGetByApiHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Gateway_update operation. */ -export interface GatewayUpdateHeaders { +/** Defines headers for Tag_assignToApi operation. */ +export interface TagAssignToApiHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Gateway_listKeys operation. */ -export interface GatewayListKeysHeaders { +/** Defines headers for Tag_getEntityStateByProduct operation. */ +export interface TagGetEntityStateByProductHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayHostnameConfiguration_getEntityTag operation. */ -export interface GatewayHostnameConfigurationGetEntityTagHeaders { +/** Defines headers for Tag_getByProduct operation. */ +export interface TagGetByProductHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayHostnameConfiguration_get operation. */ -export interface GatewayHostnameConfigurationGetHeaders { +/** Defines headers for Tag_getEntityState operation. */ +export interface TagGetEntityStateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayHostnameConfiguration_createOrUpdate operation. */ -export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { +/** Defines headers for Tag_get operation. */ +export interface TagGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayApi_getEntityTag operation. */ -export interface GatewayApiGetEntityTagHeaders { +/** Defines headers for Tag_createOrUpdate operation. */ +export interface TagCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayCertificateAuthority_getEntityTag operation. */ -export interface GatewayCertificateAuthorityGetEntityTagHeaders { +/** Defines headers for Tag_update operation. */ +export interface TagUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayCertificateAuthority_get operation. */ -export interface GatewayCertificateAuthorityGetHeaders { +/** Defines headers for GraphQLApiResolver_getEntityTag operation. */ +export interface GraphQLApiResolverGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GatewayCertificateAuthority_createOrUpdate operation. */ -export interface GatewayCertificateAuthorityCreateOrUpdateHeaders { +/** Defines headers for GraphQLApiResolver_get operation. */ +export interface GraphQLApiResolverGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Group_getEntityTag operation. */ -export interface GroupGetEntityTagHeaders { +/** Defines headers for GraphQLApiResolver_createOrUpdate operation. */ +export interface GraphQLApiResolverCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Group_get operation. */ -export interface GroupGetHeaders { +/** Defines headers for GraphQLApiResolver_update operation. */ +export interface GraphQLApiResolverUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Group_createOrUpdate operation. */ -export interface GroupCreateOrUpdateHeaders { +/** Defines headers for GraphQLApiResolverPolicy_getEntityTag operation. */ +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Group_update operation. */ -export interface GroupUpdateHeaders { +/** Defines headers for GraphQLApiResolverPolicy_get operation. */ +export interface GraphQLApiResolverPolicyGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for IdentityProvider_getEntityTag operation. */ -export interface IdentityProviderGetEntityTagHeaders { +/** Defines headers for GraphQLApiResolverPolicy_createOrUpdate operation. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for IdentityProvider_get operation. */ -export interface IdentityProviderGetHeaders { +/** Defines headers for ApiPolicy_getEntityTag operation. */ +export interface ApiPolicyGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for IdentityProvider_createOrUpdate operation. */ -export interface IdentityProviderCreateOrUpdateHeaders { +/** Defines headers for ApiPolicy_get operation. */ +export interface ApiPolicyGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for IdentityProvider_update operation. */ -export interface IdentityProviderUpdateHeaders { +/** Defines headers for ApiPolicy_createOrUpdate operation. */ +export interface ApiPolicyCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for IdentityProvider_listSecrets operation. */ -export interface IdentityProviderListSecretsHeaders { +/** Defines headers for ApiSchema_getEntityTag operation. */ +export interface ApiSchemaGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Issue_get operation. */ -export interface IssueGetHeaders { +/** Defines headers for ApiSchema_get operation. */ +export interface ApiSchemaGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Logger_getEntityTag operation. */ -export interface LoggerGetEntityTagHeaders { +/** Defines headers for ApiSchema_createOrUpdate operation. */ +export interface ApiSchemaCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Logger_get operation. */ -export interface LoggerGetHeaders { +/** Defines headers for ApiDiagnostic_getEntityTag operation. */ +export interface ApiDiagnosticGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Logger_createOrUpdate operation. */ -export interface LoggerCreateOrUpdateHeaders { +/** Defines headers for ApiDiagnostic_get operation. */ +export interface ApiDiagnosticGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Logger_update operation. */ -export interface LoggerUpdateHeaders { +/** Defines headers for ApiDiagnostic_createOrUpdate operation. */ +export interface ApiDiagnosticCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_getEntityTag operation. */ -export interface NamedValueGetEntityTagHeaders { +/** Defines headers for ApiDiagnostic_update operation. */ +export interface ApiDiagnosticUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_get operation. */ -export interface NamedValueGetHeaders { +/** Defines headers for ApiIssue_getEntityTag operation. */ +export interface ApiIssueGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_createOrUpdate operation. */ -export interface NamedValueCreateOrUpdateHeaders { +/** Defines headers for ApiIssue_get operation. */ +export interface ApiIssueGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_update operation. */ -export interface NamedValueUpdateHeaders { +/** Defines headers for ApiIssue_createOrUpdate operation. */ +export interface ApiIssueCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_listValue operation. */ -export interface NamedValueListValueHeaders { +/** Defines headers for ApiIssue_update operation. */ +export interface ApiIssueUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for NamedValue_refreshSecret operation. */ -export interface NamedValueRefreshSecretHeaders { +/** Defines headers for ApiIssueComment_getEntityTag operation. */ +export interface ApiIssueCommentGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for OpenIdConnectProvider_getEntityTag operation. */ -export interface OpenIdConnectProviderGetEntityTagHeaders { +/** Defines headers for ApiIssueComment_get operation. */ +export interface ApiIssueCommentGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for OpenIdConnectProvider_get operation. */ -export interface OpenIdConnectProviderGetHeaders { +/** Defines headers for ApiIssueComment_createOrUpdate operation. */ +export interface ApiIssueCommentCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for OpenIdConnectProvider_createOrUpdate operation. */ -export interface OpenIdConnectProviderCreateOrUpdateHeaders { +/** Defines headers for ApiIssueAttachment_getEntityTag operation. */ +export interface ApiIssueAttachmentGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for OpenIdConnectProvider_update operation. */ -export interface OpenIdConnectProviderUpdateHeaders { +/** Defines headers for ApiIssueAttachment_get operation. */ +export interface ApiIssueAttachmentGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for OpenIdConnectProvider_listSecrets operation. */ -export interface OpenIdConnectProviderListSecretsHeaders { +/** Defines headers for ApiIssueAttachment_createOrUpdate operation. */ +export interface ApiIssueAttachmentCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Policy_getEntityTag operation. */ -export interface PolicyGetEntityTagHeaders { +/** Defines headers for ApiTagDescription_getEntityTag operation. */ +export interface ApiTagDescriptionGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Policy_get operation. */ -export interface PolicyGetHeaders { +/** Defines headers for ApiTagDescription_get operation. */ +export interface ApiTagDescriptionGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Policy_createOrUpdate operation. */ -export interface PolicyCreateOrUpdateHeaders { - /** Current entity state version */ +/** Defines headers for ApiTagDescription_createOrUpdate operation. */ +export interface ApiTagDescriptionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for PortalRevision_getEntityTag operation. */ -export interface PortalRevisionGetEntityTagHeaders { +/** Defines headers for ApiWiki_getEntityTag operation. */ +export interface ApiWikiGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for PortalRevision_get operation. */ -export interface PortalRevisionGetHeaders { +/** Defines headers for ApiWiki_get operation. */ +export interface ApiWikiGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for PortalRevision_createOrUpdate operation. */ -export interface PortalRevisionCreateOrUpdateHeaders { +/** Defines headers for ApiWiki_createOrUpdate operation. */ +export interface ApiWikiCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for PortalRevision_update operation. */ -export interface PortalRevisionUpdateHeaders { +/** Defines headers for ApiWiki_update operation. */ +export interface ApiWikiUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for SignInSettings_getEntityTag operation. */ -export interface SignInSettingsGetEntityTagHeaders { +/** Defines headers for ApiVersionSet_getEntityTag operation. */ +export interface ApiVersionSetGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for SignInSettings_get operation. */ -export interface SignInSettingsGetHeaders { +/** Defines headers for ApiVersionSet_get operation. */ +export interface ApiVersionSetGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for SignUpSettings_getEntityTag operation. */ -export interface SignUpSettingsGetEntityTagHeaders { +/** Defines headers for ApiVersionSet_createOrUpdate operation. */ +export interface ApiVersionSetCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for SignUpSettings_get operation. */ -export interface SignUpSettingsGetHeaders { +/** Defines headers for ApiVersionSet_update operation. */ +export interface ApiVersionSetUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for DelegationSettings_getEntityTag operation. */ -export interface DelegationSettingsGetEntityTagHeaders { +/** 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. */ eTag?: string; } -/** Defines headers for DelegationSettings_get operation. */ -export interface DelegationSettingsGetHeaders { +/** Defines headers for AuthorizationProvider_createOrUpdate operation. */ +export interface AuthorizationProviderCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Product_getEntityTag operation. */ -export interface ProductGetEntityTagHeaders { +/** Defines headers for Authorization_get operation. */ +export interface AuthorizationGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Product_get operation. */ -export interface ProductGetHeaders { +/** Defines headers for Authorization_createOrUpdate operation. */ +export interface AuthorizationCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Product_createOrUpdate operation. */ -export interface ProductCreateOrUpdateHeaders { +/** Defines headers for Authorization_confirmConsentCode operation. */ +export interface AuthorizationConfirmConsentCodeHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Product_update operation. */ -export interface ProductUpdateHeaders { +/** Defines headers for AuthorizationLoginLinks_post operation. */ +export interface AuthorizationLoginLinksPostHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ProductPolicy_getEntityTag operation. */ -export interface ProductPolicyGetEntityTagHeaders { +/** Defines headers for AuthorizationAccessPolicy_get operation. */ +export interface AuthorizationAccessPolicyGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ProductPolicy_get operation. */ -export interface ProductPolicyGetHeaders { +/** Defines headers for AuthorizationAccessPolicy_createOrUpdate operation. */ +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ProductPolicy_createOrUpdate operation. */ -export interface ProductPolicyCreateOrUpdateHeaders { +/** 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 GlobalSchema_getEntityTag operation. */ -export interface GlobalSchemaGetEntityTagHeaders { +/** 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 GlobalSchema_get operation. */ -export interface GlobalSchemaGetHeaders { +/** 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 GlobalSchema_createOrUpdate operation. */ -export interface GlobalSchemaCreateOrUpdateHeaders { +/** 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 TenantSettings_get operation. */ -export interface TenantSettingsGetHeaders { +/** 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 Subscription_getEntityTag operation. */ -export interface SubscriptionGetEntityTagHeaders { +/** 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 Subscription_get operation. */ -export interface SubscriptionGetHeaders { +/** 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 Subscription_createOrUpdate operation. */ -export interface SubscriptionCreateOrUpdateHeaders { +/** 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 Subscription_update operation. */ -export interface SubscriptionUpdateHeaders { +/** 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; } -/** Defines headers for Subscription_listSecrets operation. */ -export interface SubscriptionListSecretsHeaders { +/** Defines headers for Cache_getEntityTag operation. */ +export interface CacheGetEntityTagHeaders { /** 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 { +/** Defines headers for Cache_get operation. */ +export interface CacheGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for TenantAccess_get operation. */ -export interface TenantAccessGetHeaders { +/** Defines headers for Cache_createOrUpdate operation. */ +export interface CacheCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for TenantAccess_create operation. */ -export interface TenantAccessCreateHeaders { +/** Defines headers for Cache_update operation. */ +export interface CacheUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for TenantAccess_update operation. */ -export interface TenantAccessUpdateHeaders { +/** Defines headers for Certificate_getEntityTag operation. */ +export interface CertificateGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for TenantAccess_listSecrets operation. */ -export interface TenantAccessListSecretsHeaders { +/** Defines headers for Certificate_get operation. */ +export interface CertificateGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for User_getEntityTag operation. */ -export interface UserGetEntityTagHeaders { +/** Defines headers for Certificate_createOrUpdate operation. */ +export interface CertificateCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for User_get operation. */ -export interface UserGetHeaders { +/** Defines headers for Certificate_refreshSecret operation. */ +export interface CertificateRefreshSecretHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for User_createOrUpdate operation. */ -export interface UserCreateOrUpdateHeaders { +/** 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. */ eTag?: string; } -/** Defines headers for User_update operation. */ -export interface UserUpdateHeaders { +/** Defines headers for ContentType_createOrUpdate operation. */ +export interface ContentTypeCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for UserSubscription_get operation. */ -export interface UserSubscriptionGetHeaders { +/** Defines headers for ContentItem_getEntityTag operation. */ +export interface ContentItemGetEntityTagHeaders { /** 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 ContentItem_get operation. */ +export interface ContentItemGetHeaders { + /** 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; - -/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ -export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** Segment */ - Segment = "Segment", - /** Query */ - Query = "Query", - /** Header */ - Header = "Header" +/** Defines headers for ContentItem_createOrUpdate operation. */ +export interface ContentItemCreateOrUpdateHeaders { + /** 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** \ - * **Query** \ - * **Header** - */ -export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Defines headers for DeletedServices_purge operation. */ +export interface DeletedServicesPurgeHeaders { + location?: 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 ApiManagementService_restore operation. */ +export interface ApiManagementServiceRestoreHeaders { + location?: 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 ApiManagementService_backup operation. */ +export interface ApiManagementServiceBackupHeaders { + location?: 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 ApiManagementService_update operation. */ +export interface ApiManagementServiceUpdateHeaders { + /** Location header */ + location?: 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 ApiManagementService_delete operation. */ +export interface ApiManagementServiceDeleteHeaders { + /** Location header */ + location?: 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 ApiManagementService_migrateToStv2 operation. */ +export interface ApiManagementServiceMigrateToStv2Headers { + location?: 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 ApiManagementService_applyNetworkConfigurationUpdates operation. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + location?: 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 Diagnostic_getEntityTag operation. */ +export interface DiagnosticGetEntityTagHeaders { + /** 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 Diagnostic_get operation. */ +export interface DiagnosticGetHeaders { + /** 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 Diagnostic_createOrUpdate operation. */ +export interface DiagnosticCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 Diagnostic_update operation. */ +export interface DiagnosticUpdateHeaders { + /** 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 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 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 Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** 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 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 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 Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** 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 EmailTemplate_getEntityTag operation. */ +export interface EmailTemplateGetEntityTagHeaders { + /** 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 EmailTemplate_get operation. */ +export interface EmailTemplateGetHeaders { + /** 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 EmailTemplate_update operation. */ +export interface EmailTemplateUpdateHeaders { + /** 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 Gateway_getEntityTag operation. */ +export interface GatewayGetEntityTagHeaders { + /** 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 Gateway_get operation. */ +export interface GatewayGetHeaders { + /** 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 Gateway_createOrUpdate operation. */ +export interface GatewayCreateOrUpdateHeaders { + /** 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 Gateway_update operation. */ +export interface GatewayUpdateHeaders { + /** 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 Gateway_listKeys operation. */ +export interface GatewayListKeysHeaders { + /** 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 GatewayHostnameConfiguration_getEntityTag operation. */ +export interface GatewayHostnameConfigurationGetEntityTagHeaders { + /** 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 GatewayHostnameConfiguration_get operation. */ +export interface GatewayHostnameConfigurationGetHeaders { + /** 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 GatewayHostnameConfiguration_createOrUpdate operation. */ +export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 GatewayApi_getEntityTag operation. */ +export interface GatewayApiGetEntityTagHeaders { + /** 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 GatewayCertificateAuthority_getEntityTag operation. */ +export interface GatewayCertificateAuthorityGetEntityTagHeaders { + /** 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 GatewayCertificateAuthority_get operation. */ +export interface GatewayCertificateAuthorityGetHeaders { + /** 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 GatewayCertificateAuthority_createOrUpdate operation. */ +export interface GatewayCertificateAuthorityCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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 ExportFormat = string; +/** Defines headers for Group_getEntityTag operation. */ +export interface GroupGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportApi} that the service accepts. */ -export enum KnownExportApi { - /** True */ - True = "true" +/** Defines headers for Group_get operation. */ +export interface GroupGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **true** - */ -export type ExportApi = string; +/** Defines headers for Group_createOrUpdate operation. */ +export interface GroupCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for Group_update operation. */ +export interface GroupUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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 ExportResultFormat = string; +/** Defines headers for IdentityProvider_getEntityTag operation. */ +export interface IdentityProviderGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** 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 headers for IdentityProvider_get operation. */ +export interface IdentityProviderGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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; +/** Defines headers for IdentityProvider_createOrUpdate operation. */ +export interface IdentityProviderCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for IdentityProvider_update operation. */ +export interface IdentityProviderUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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 GrantType = string; +/** Defines headers for IdentityProvider_listSecrets operation. */ +export interface IdentityProviderListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for Issue_get operation. */ +export interface IssueGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Basic**: Basic Client Authentication method. \ - * **Body**: Body based Authentication method. - */ -export type ClientAuthenticationMethod = string; +/** Defines headers for Logger_getEntityTag operation. */ +export interface LoggerGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - /** AuthorizationHeader */ - AuthorizationHeader = "authorizationHeader", - /** Query */ - Query = "query" +/** Defines headers for Logger_get operation. */ +export interface LoggerGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **authorizationHeader** \ - * **query** - */ -export type BearerTokenSendingMethod = string; +/** Defines headers for Logger_createOrUpdate operation. */ +export interface LoggerCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for Logger_update operation. */ +export interface LoggerUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **http**: The Backend is a RESTful service. \ - * **soap**: The Backend is a SOAP service. - */ -export type BackendProtocol = string; +/** Defines headers for NamedValue_getEntityTag operation. */ +export interface NamedValueGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - /** IPv4 */ - IPv4 = "IPv4" +/** Defines headers for NamedValue_get operation. */ +export interface NamedValueGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **IPv4** - */ -export type PreferredIPVersion = string; +/** Defines headers for NamedValue_createOrUpdate operation. */ +export interface NamedValueCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - /** TCP */ - TCP = "TCP", - /** Http */ - Http = "HTTP", - /** Https */ - Https = "HTTPS" +/** Defines headers for NamedValue_update operation. */ +export interface NamedValueUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **TCP** \ - * **HTTP** \ - * **HTTPS** - */ -export type ConnectivityCheckProtocol = string; - -/** Known values of {@link Method} that the service accepts. */ -export enum KnownMethod { - /** GET */ - GET = "GET", - /** Post */ - Post = "POST" +/** Defines headers for NamedValue_listValue operation. */ +export interface NamedValueListValueHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **GET** \ - * **POST** - */ -export type Method = string; +/** Defines headers for NamedValue_refreshSecret operation. */ +export interface NamedValueRefreshSecretHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** Local */ - Local = "Local", - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound" +/** Defines headers for OpenIdConnectProvider_getEntityTag operation. */ +export interface OpenIdConnectProviderGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Local** \ - * **Inbound** \ - * **Outbound** - */ -export type Origin = string; +/** Defines headers for OpenIdConnectProvider_get operation. */ +export interface OpenIdConnectProviderGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning" +/** Defines headers for OpenIdConnectProvider_createOrUpdate operation. */ +export interface OpenIdConnectProviderCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Error** \ - * **Warning** - */ -export type Severity = string; +/** Defines headers for OpenIdConnectProvider_update operation. */ +export interface OpenIdConnectProviderUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for OpenIdConnectProvider_listSecrets operation. */ +export interface OpenIdConnectProviderListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 supported by the service - * **Unknown** \ - * **AgentStopped** \ - * **GuestFirewall** \ - * **DnsResolution** \ - * **SocketBind** \ - * **NetworkSecurityRule** \ - * **UserDefinedRoute** \ - * **PortThrottled** \ - * **Platform** - */ -export type IssueType = string; +/** Defines headers for Policy_getEntityTag operation. */ +export interface PolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for Policy_get operation. */ +export interface PolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Unknown** \ - * **Connected** \ - * **Disconnected** \ - * **Degraded** - */ -export type ConnectionStatus = string; +/** Defines headers for Policy_createOrUpdate operation. */ +export interface PolicyCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: 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" +/** Defines headers for PolicyFragment_getEntityTag operation. */ +export interface PolicyFragmentGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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. - */ -export type SkuType = string; +/** Defines headers for PolicyFragment_get operation. */ +export interface PolicyFragmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for PolicyFragment_createOrUpdate operation. */ +export interface PolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; } -/** - * 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 - * **automatic**: Supported scale type automatic. \ - * **manual**: Supported scale type manual. \ - * **none**: Scaling not supported. - */ -export type ResourceSkuCapacityScaleType = string; +/** Defines headers for PortalConfig_getEntityTag operation. */ +export interface PortalConfigGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for PortalConfig_get operation. */ +export interface PortalConfigGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **AccessKey**: Use access key. \ - * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ - * **UserAssignedManagedIdentity**: Use user assigned managed identity. - */ -export type AccessType = string; +/** Defines headers for PortalRevision_getEntityTag operation. */ +export interface PortalRevisionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for PortalRevision_get operation. */ +export interface PortalRevisionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Proxy** \ - * **Portal** \ - * **Management** \ - * **Scm** \ - * **DeveloperPortal** - */ -export type HostnameType = string; +/** Defines headers for PortalRevision_createOrUpdate operation. */ +export interface PortalRevisionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for PortalRevision_update operation. */ +export interface PortalRevisionUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Managed** \ - * **KeyVault** \ - * **Custom** \ - * **BuiltIn** - */ -export type CertificateSource = string; +/** Defines headers for SignInSettings_getEntityTag operation. */ +export interface SignInSettingsGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link CertificateStatus} that the service accepts. */ -export enum KnownCertificateStatus { - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" +/** Defines headers for SignInSettings_get operation. */ +export interface SignInSettingsGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Completed** \ - * **Failed** \ - * **InProgress** - */ -export type CertificateStatus = string; +/** Defines headers for SignUpSettings_getEntityTag operation. */ +export interface SignUpSettingsGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Defines headers for SignUpSettings_get operation. */ +export interface SignUpSettingsGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **Enabled** \ - * **Disabled** - */ -export type PublicNetworkAccess = string; +/** Defines headers for DelegationSettings_getEntityTag operation. */ +export interface DelegationSettingsGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for DelegationSettings_get operation. */ +export interface DelegationSettingsGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **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. - */ -export type PlatformVersion = string; +/** Defines headers for PrivateEndpointConnection_createOrUpdate operation. */ +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + /** Location header */ + location?: string; +} -/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ -export enum KnownCertificateConfigurationStoreName { - /** CertificateAuthority */ - CertificateAuthority = "CertificateAuthority", - /** Root */ - Root = "Root" +/** Defines headers for PrivateEndpointConnection_delete operation. */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** Location header */ + location?: string; } -/** - * 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 - * **CertificateAuthority** \ - * **Root** - */ -export type CertificateConfigurationStoreName = 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. */ + eTag?: 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 headers for Product_get operation. */ +export interface ProductGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for Product_createOrUpdate operation. */ +export interface ProductCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected" +/** Defines headers for Product_update operation. */ +export interface ProductUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for ProductPolicy_getEntityTag operation. */ +export interface ProductPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 headers for ProductPolicy_get operation. */ +export interface ProductPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for ProductPolicy_createOrUpdate operation. */ +export interface ProductPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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" +/** Defines headers for ProductWiki_getEntityTag operation. */ +export interface ProductWikiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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 - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; +/** Defines headers for ProductWiki_get operation. */ +export interface ProductWikiGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 headers for ProductWiki_createOrUpdate operation. */ +export interface ProductWikiCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for ProductWiki_update operation. */ +export interface ProductWikiUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 headers for ProductWikis_list operation. */ +export interface ProductWikisListHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for ProductWikis_listNext operation. */ +export interface ProductWikisListNextHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 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 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; +/** 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; +} -/** 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 headers for GlobalSchema_getEntityTag operation. */ +export interface GlobalSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for GlobalSchema_get operation. */ +export interface GlobalSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ConnectivityStatusType} that the service accepts. */ -export enum KnownConnectivityStatusType { - /** Initializing */ - Initializing = "initializing", - /** Success */ - Success = "success", - /** Failure */ - Failure = "failure" +/** Defines headers for GlobalSchema_createOrUpdate operation. */ +export interface GlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for TenantSettings_get operation. */ +export interface TenantSettingsGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 headers for Subscription_getEntityTag operation. */ +export interface SubscriptionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * 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; +/** Defines headers for Subscription_get operation. */ +export interface SubscriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Subscription_createOrUpdate operation. */ +export interface SubscriptionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Subscription_update operation. */ +export interface SubscriptionUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Subscription_listSecrets operation. */ +export interface SubscriptionListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + 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. */ + eTag?: string; +} + +/** Defines headers for TenantAccess_get operation. */ +export interface TenantAccessGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TenantAccess_create operation. */ +export interface TenantAccessCreateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TenantAccess_update operation. */ +export interface TenantAccessUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TenantAccess_listSecrets operation. */ +export interface TenantAccessListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + 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. */ + eTag?: string; +} + +/** Defines headers for User_get operation. */ +export interface UserGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for User_createOrUpdate operation. */ +export interface UserCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for User_update operation. */ +export interface UserUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 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 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 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 Workspace_update operation. */ +export interface WorkspaceUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** Defines headers for WorkspacePolicyFragment_createOrUpdate operation. */ +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + +/** 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; +} + +/** 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; +} + +/** 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 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; +} + +/** 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; +} + +/** 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 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 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 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 + * **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; + +/** 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 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; + +/** 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 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; + +/** 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 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; + +/** 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 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; + +/** 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 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; + +/** 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 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; + +/** Known values of {@link PolicyIdName} that the service accepts. */ +export enum KnownPolicyIdName { + /** Policy */ + Policy = "policy" +} + +/** + * 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; + +/** 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 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; + +/** 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 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; + +/** Known values of {@link SamplingType} that the service accepts. */ +export enum KnownSamplingType { + /** Fixed-rate sampling. */ + Fixed = "fixed" +} + +/** + * 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; + +/** 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 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; + +/** 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 + * **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; + +/** 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 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; + +/** 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 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; + +/** 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 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; + +/** 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 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 + * **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 ExportFormat = string; + +/** Known values of {@link ExportApi} that the service accepts. */ +export enum KnownExportApi { + /** True */ + True = "true" +} + +/** + * 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 + * **true** + */ +export type ExportApi = 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" +} + +/** + * 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 + * **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 ExportResultFormat = string; + +/** Known values of {@link AuthorizationType} that the service accepts. */ +export enum KnownAuthorizationType { + /** OAuth2 authorization type */ + OAuth2 = "OAuth2" +} + +/** + * 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 + * **OAuth2**: OAuth2 authorization type + */ +export type AuthorizationType = string; + +/** 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 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 + * **AuthorizationCode**: Authorization Code grant \ + * **ClientCredentials**: Client Credential grant + */ +export type OAuth2GrantType = 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" +} + +/** + * 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 + * **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 GrantType = 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" +} + +/** + * 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 + * **Basic**: Basic Client Authentication method. \ + * **Body**: Body based Authentication method. + */ +export type ClientAuthenticationMethod = string; + +/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ +export enum KnownBearerTokenSendingMethod { + /** AuthorizationHeader */ + AuthorizationHeader = "authorizationHeader", + /** Query */ + Query = "query" +} + +/** + * 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 + * **authorizationHeader** \ + * **query** + */ +export type BearerTokenSendingMethod = 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" +} + +/** + * 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 + * **http**: The Backend is a RESTful service. \ + * **soap**: The Backend is a SOAP service. + */ +export type BackendProtocol = string; + +/** Known values of {@link PreferredIPVersion} that the service accepts. */ +export enum KnownPreferredIPVersion { + /** IPv4 */ + IPv4 = "IPv4" +} + +/** + * 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 + * **IPv4** + */ +export type PreferredIPVersion = string; + +/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ +export enum KnownConnectivityCheckProtocol { + /** TCP */ + TCP = "TCP", + /** Http */ + Http = "HTTP", + /** Https */ + Https = "HTTPS" +} + +/** + * 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 + * **TCP** \ + * **HTTP** \ + * **HTTPS** + */ +export type ConnectivityCheckProtocol = string; + +/** Known values of {@link Method} that the service accepts. */ +export enum KnownMethod { + /** GET */ + GET = "GET", + /** Post */ + Post = "POST" +} + +/** + * 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 + * **GET** \ + * **POST** + */ +export type Method = string; + +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** Local */ + Local = "Local", + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound" +} + +/** + * 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 + * **Local** \ + * **Inbound** \ + * **Outbound** + */ +export type Origin = string; + +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning" +} + +/** + * 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 + * **Error** \ + * **Warning** + */ +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" +} + +/** + * 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 + * **Unknown** \ + * **AgentStopped** \ + * **GuestFirewall** \ + * **DnsResolution** \ + * **SocketBind** \ + * **NetworkSecurityRule** \ + * **UserDefinedRoute** \ + * **PortThrottled** \ + * **Platform** + */ +export type IssueType = 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" +} + +/** + * 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 + * **Unknown** \ + * **Connected** \ + * **Disconnected** \ + * **Degraded** + */ +export type ConnectionStatus = 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" +} + +/** + * 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 + * **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. + */ +export type SkuType = 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" +} + +/** + * 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 + * **automatic**: Supported scale type automatic. \ + * **manual**: Supported scale type manual. \ + * **none**: Scaling not supported. + */ +export type ResourceSkuCapacityScaleType = 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" +} + +/** + * 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 + * **AccessKey**: Use access key. \ + * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ + * **UserAssignedManagedIdentity**: Use user assigned managed identity. + */ +export type AccessType = 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" +} + +/** + * 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 + * **Proxy** \ + * **Portal** \ + * **Management** \ + * **Scm** \ + * **DeveloperPortal** + */ +export type HostnameType = 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" +} + +/** + * 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 + * **Managed** \ + * **KeyVault** \ + * **Custom** \ + * **BuiltIn** + */ +export type CertificateSource = string; + +/** Known values of {@link CertificateStatus} that the service accepts. */ +export enum KnownCertificateStatus { + /** Completed */ + Completed = "Completed", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" +} + +/** + * 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 + * **Completed** \ + * **Failed** \ + * **InProgress** + */ +export type CertificateStatus = string; + +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * 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 + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccess = 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" +} + +/** + * 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 + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. + */ +export type NatGatewayState = 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", + /** Platform running the service on Single Tenant V2 platform on newer Hardware. */ + Stv21 = "stv2.1" +} + +/** + * 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 + * **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 PlatformVersion = string; + +/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ +export enum KnownCertificateConfigurationStoreName { + /** CertificateAuthority */ + CertificateAuthority = "CertificateAuthority", + /** Root */ + Root = "Root" +} + +/** + * 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 + * **CertificateAuthority** \ + * **Root** + */ +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 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 CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * 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 + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = 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 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 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 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"; + +/** 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; +} + +/** 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 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; + +/** Optional parameters. */ +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 update operation. */ +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceGetOptionalParams + 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; +} + +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + 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 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; + +/** Optional parameters. */ +export interface ApiManagementServiceListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementServiceListResponse = ApiManagementServiceListResult; + +/** Optional parameters. */ +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 { + /** 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 applyNetworkConfigurationUpdates operation. */ +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; + +/** Optional parameters. */ +export interface ApiManagementServiceListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; + +/** 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; +} + +/** Contains response data for the listByService operation. */ +export type DiagnosticListByServiceResponse = DiagnosticCollection; + +/** Optional parameters. */ +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 {} -/** 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" +/** Contains response data for the listByServiceNext operation. */ +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface DocumentationListByServiceOptionalParams + 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; } -/** - * 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; +/** Contains response data for the listByService operation. */ +export type DocumentationListByServiceResponse = DocumentationCollection; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" -} +/** Optional parameters. */ +export interface DocumentationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the getEntityTag operation. */ +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; -/** Known values of {@link SchemaType} that the service accepts. */ -export enum KnownSchemaType { - /** Xml schema type. */ - Xml = "xml", - /** Json schema type. */ - Json = "json" -} +/** Optional parameters. */ +export interface DocumentationGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; -/** Known values of {@link SettingsTypeName} that the service accepts. */ -export enum KnownSettingsTypeName { - /** Public */ - Public = "public" +/** 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; } -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & + DocumentationContract; -/** 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" -} +/** Optional parameters. */ +export interface DocumentationUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the update operation. */ +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; -/** Known values of {@link AccessIdName} that the service accepts. */ -export enum KnownAccessIdName { - /** Access */ - Access = "access", - /** GitAccess */ - GitAccess = "gitAccess" -} +/** Optional parameters. */ +export interface DocumentationDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Optional parameters. */ +export interface DocumentationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ConfigurationIdName} that the service accepts. */ -export enum KnownConfigurationIdName { - /** Configuration */ - Configuration = "configuration" +/** Contains response data for the listByServiceNext operation. */ +export type DocumentationListByServiceNextResponse = DocumentationCollection; + +/** Optional parameters. */ +export interface EmailTemplateListByServiceOptionalParams + 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; } -/** - * 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; +/** Contains response data for the listByService operation. */ +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; -/** 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" +/** Optional parameters. */ +export interface EmailTemplateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface EmailTemplateGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EmailTemplateGetResponse = EmailTemplateGetHeaders & + EmailTemplateContract; + +/** Optional parameters. */ +export interface EmailTemplateCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** - * 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; -/** 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"; +/** Contains response data for the createOrUpdate operation. */ +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; + +/** Optional parameters. */ +export interface EmailTemplateUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & + EmailTemplateContract; + +/** Optional parameters. */ +export interface EmailTemplateDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface EmailTemplateListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface ApiListByServiceOptionalParams +export interface GatewayListByServiceOptionalParams 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 | |
*/ + /** | 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; - /** 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; +export type GatewayListByServiceResponse = GatewayCollection; /** Optional parameters. */ -export interface ApiGetEntityTagOptionalParams +export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiGetOptionalParams extends coreClient.OperationOptions {} +export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiGetResponse = ApiGetHeaders & ApiContract; +export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; /** Optional parameters. */ -export interface ApiCreateOrUpdateOptionalParams +export interface GatewayCreateOrUpdateOptionalParams 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; +export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & + GatewayContract; /** Optional parameters. */ -export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} +export interface GatewayUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; /** Optional parameters. */ -export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Delete all revisions of the Api. */ - deleteRevisions?: boolean; -} +export interface GatewayDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiListByTagsOptionalParams +export interface GatewayListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type GatewayListKeysResponse = GatewayListKeysHeaders & + GatewayKeysContract; + +/** Optional parameters. */ +export interface GatewayRegenerateKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GatewayGenerateTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateToken operation. */ +export type GatewayGenerateTokenResponse = GatewayTokenContract; + +/** Optional parameters. */ +export interface GatewayListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GatewayListByServiceNextResponse = GatewayCollection; + +/** Optional parameters. */ +export interface GatewayHostnameConfigurationListByServiceOptionalParams 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 | |
*/ + /** | 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; /** Number of records to skip. */ skip?: number; - /** Include not tagged APIs. */ - includeNotTaggedApis?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ApiListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; /** Optional parameters. */ -export interface ApiListByServiceNextOptionalParams +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the getEntityTag operation. */ +export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiListByTagsNextOptionalParams +export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type ApiListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the get operation. */ +export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & + GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface ApiRevisionListByServiceOptionalParams +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** 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 GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & + GatewayHostnameConfigurationContract; + +/** Optional parameters. */ +export interface GatewayHostnameConfigurationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +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 |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -6760,19 +10140,40 @@ export interface ApiRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiRevisionListByServiceResponse = ApiRevisionCollection; +export type GatewayApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ApiRevisionListByServiceNextOptionalParams +export interface GatewayApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GatewayApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Association entity details. */ + parameters?: AssociationContract; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GatewayApiCreateOrUpdateResponse = ApiContract; + +/** Optional parameters. */ +export interface GatewayApiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; +export type GatewayApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ -export interface ApiReleaseListByServiceOptionalParams +export interface GatewayCertificateAuthorityListByServiceOptionalParams 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, ne | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -6781,235 +10182,206 @@ export interface ApiReleaseListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiReleaseListByServiceResponse = ApiReleaseCollection; +export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface ApiReleaseGetEntityTagOptionalParams +export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; +export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiReleaseGetOptionalParams +export interface GatewayCertificateAuthorityGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; +export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface ApiReleaseCreateOrUpdateOptionalParams +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 ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & - ApiReleaseContract; - -/** Optional parameters. */ -export interface ApiReleaseUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & - ApiReleaseContract; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface ApiReleaseDeleteOptionalParams +export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiReleaseListByServiceNextOptionalParams +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; +export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface ApiOperationListByApiOptionalParams +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 |
| 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 |
| 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; - /** 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 GroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ApiOperationGetEntityTagOptionalParams +export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationGetOptionalParams - extends coreClient.OperationOptions {} +export interface GroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationGetResponse = ApiOperationGetHeaders & - OperationContract; +export type GroupGetResponse = GroupGetHeaders & GroupContract; /** Optional parameters. */ -export interface ApiOperationCreateOrUpdateOptionalParams +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 ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & - OperationContract; +export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & + GroupContract; /** Optional parameters. */ -export interface ApiOperationUpdateOptionalParams +export interface GroupUpdateOptionalParams 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; +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ApiOperationPolicyListByOperationOptionalParams +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection; - /** Optional parameters. */ -export interface ApiOperationPolicyGetEntityTagOptionalParams +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type GroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ApiOperationPolicyGetOptionalParams +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; + /** | 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 get operation. */ -export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & - PolicyContract; +/** Contains response data for the list operation. */ +export type GroupUserListResponse = UserCollection; /** 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; -} +export interface GroupUserCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the checkEntityExists operation. */ +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiOperationPolicyDeleteOptionalParams +export interface GroupUserCreateOptionalParams 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 create operation. */ +export type GroupUserCreateResponse = UserContract; -/** Contains response data for the listByOperation operation. */ -export type TagListByOperationResponse = TagCollection; +/** Optional parameters. */ +export interface GroupUserDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagGetEntityStateByOperationOptionalParams +export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByOperation operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; +/** Contains response data for the listNext operation. */ +export type GroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface TagGetByOperationOptionalParams +export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByOperation operation. */ -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +/** Contains response data for the listByService operation. */ +export type IdentityProviderListByServiceResponse = IdentityProviderList; /** Optional parameters. */ -export interface TagAssignToOperationOptionalParams +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToOperation operation. */ -export type TagAssignToOperationResponse = TagContract; +/** Contains response data for the getEntityTag operation. */ +export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface TagDetachFromOperationOptionalParams +export interface IdentityProviderGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & + IdentityProviderContract; + /** Optional parameters. */ -export interface TagListByApiOptionalParams +export interface IdentityProviderCreateOrUpdateOptionalParams 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; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByApi operation. */ -export type TagListByApiResponse = TagCollection; +/** Contains response data for the createOrUpdate operation. */ +export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface TagGetEntityStateByApiOptionalParams +export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByApi operation. */ -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; +/** Contains response data for the update operation. */ +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface TagGetByApiOptionalParams +export interface IdentityProviderDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByApi operation. */ -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; - /** Optional parameters. */ -export interface TagAssignToApiOptionalParams +export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToApi operation. */ -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +/** Contains response data for the listSecrets operation. */ +export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & + ClientSecretContract; /** Optional parameters. */ -export interface TagDetachFromApiOptionalParams +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; + /** Optional parameters. */ -export interface TagListByProductOptionalParams +export interface IssueListByServiceOptionalParams 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 |
| 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; @@ -7017,232 +10389,185 @@ export interface TagListByProductOptionalParams 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; +/** Contains response data for the listByService operation. */ +export type IssueListByServiceResponse = IssueCollection; /** Optional parameters. */ -export interface TagGetByProductOptionalParams - extends coreClient.OperationOptions {} +export interface IssueGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByProduct operation. */ -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +/** Contains response data for the get operation. */ +export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ -export interface TagAssignToProductOptionalParams +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToProduct operation. */ -export type TagAssignToProductResponse = TagContract; - -/** Optional parameters. */ -export interface TagDetachFromProductOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type IssueListByServiceNextResponse = IssueCollection; /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface LoggerListByServiceOptionalParams 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 | 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; /** 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 LoggerListByServiceResponse = LoggerCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +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 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; +export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & + LoggerContract; /** Optional parameters. */ -export interface TagListByApiNextOptionalParams +export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +/** Contains response data for the update operation. */ +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; - /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +export type LoggerListByServiceNextResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiProductListByApisOptionalParams +export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | 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; + /** When set to true, the response contains only named value entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } -/** 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; +/** Contains response data for the listByService operation. */ +export type NamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiPolicyGetEntityTagOptionalParams +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface NamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; /** Optional parameters. */ -export interface ApiPolicyCreateOrUpdateOptionalParams +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 ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & - PolicyContract; - -/** Optional parameters. */ -export interface ApiPolicyDeleteOptionalParams - extends coreClient.OperationOptions {} +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiSchemaListByApiOptionalParams +export interface NamedValueUpdateOptionalParams 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; + /** 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 listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection; +/** Contains response data for the update operation. */ +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiSchemaGetEntityTagOptionalParams +export interface NamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; - /** Optional parameters. */ -export interface ApiSchemaGetOptionalParams +export interface NamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; +/** Contains response data for the listValue operation. */ +export type NamedValueListValueResponse = NamedValueListValueHeaders & + NamedValueSecretContract; /** Optional parameters. */ -export interface ApiSchemaCreateOrUpdateOptionalParams +export interface NamedValueRefreshSecretOptionalParams 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; +/** Contains response data for the refreshSecret operation. */ +export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiSchemaDeleteOptionalParams - extends coreClient.OperationOptions { - /** If true removes all references to the schema before deleting it. */ - force?: boolean; -} +export interface NamedValueListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type NamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiSchemaListByApiNextOptionalParams +export interface NetworkStatusListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiSchemaListByApiNextResponse = SchemaCollection; +/** Contains response data for the listByService operation. */ +export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceOptionalParams +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 |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ @@ -7250,118 +10575,90 @@ export interface ApiDiagnosticListByServiceOptionalParams } /** 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; +export type NotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiDiagnosticGetOptionalParams +export interface NotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & - DiagnosticContract; +export type NotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams +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 ApiDiagnosticCreateOrUpdateResponse = ApiDiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface ApiDiagnosticUpdateOptionalParams +export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & - DiagnosticContract; - -/** Optional parameters. */ -export interface ApiDiagnosticDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type NotificationListByServiceNextResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceNextOptionalParams +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; /** 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; -} +export interface NotificationRecipientUserCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ApiIssueListByServiceResponse = IssueCollection; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueGetEntityTagOptionalParams +export interface NotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; /** 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; +export interface NotificationRecipientUserDeleteOptionalParams + extends coreClient.OperationOptions {} /** 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; -} +export interface NotificationRecipientEmailListByNotificationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & - IssueContract; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; /** Optional parameters. */ -export interface ApiIssueUpdateOptionalParams +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiIssueDeleteOptionalParams +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + /** Optional parameters. */ -export interface ApiIssueListByServiceNextOptionalParams +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiIssueListByServiceNextResponse = IssueCollection; - /** Optional parameters. */ -export interface ApiIssueCommentListByServiceOptionalParams +export interface OpenIdConnectProviderListByServiceOptionalParams 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 |
*/ + /** | 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; @@ -7370,240 +10667,250 @@ export interface ApiIssueCommentListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; +export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface ApiIssueCommentGetEntityTagOptionalParams +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; +export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueCommentGetOptionalParams +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & - IssueCommentContract; +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiIssueCommentCreateOrUpdateOptionalParams +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 ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & - IssueCommentContract; +export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiIssueCommentDeleteOptionalParams +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 ApiIssueCommentListByServiceNextOptionalParams +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 ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; +export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; /** 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 OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; /** Optional parameters. */ -export interface ApiIssueAttachmentGetEntityTagOptionalParams +export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; +/** Contains response data for the listByService operation. */ +export type PolicyListByServiceResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentGetOptionalParams +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + /** Contains response data for the get operation. */ -export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & - IssueAttachmentContract; +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams +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 ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & - IssueAttachmentContract; +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface ApiIssueAttachmentDeleteOptionalParams +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceNextOptionalParams +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; +export type PolicyListByServiceNextResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceOptionalParams +export interface PolicyDescriptionListByServiceOptionalParams 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 |
*/ + /** Policy scope. */ + scope?: PolicyScopeContract; +} + +/** Contains response data for the listByService operation. */ +export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; + +/** Optional parameters. */ +export interface PolicyFragmentListByServiceOptionalParams + 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 |
*/ 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 ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ApiTagDescriptionGetEntityTagOptionalParams +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiTagDescriptionGetOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & - TagDescriptionContract; +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ApiTagDescriptionCreateOrUpdateOptionalParams +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 ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & - TagDescriptionContract; - -/** Optional parameters. */ -export interface ApiTagDescriptionDeleteOptionalParams - extends coreClient.OperationOptions {} - +/** Contains response data for the createOrUpdate operation. */ +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & + PolicyFragmentContract; + /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceNextOptionalParams +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; - /** Optional parameters. */ -export interface OperationListByTagsOptionalParams +export interface PolicyFragmentListReferencesOptionalParams 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; +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listByServiceNext operation. */ +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ApiExportGetOptionalParams +export interface PortalConfigListByServiceOptionalParams 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; +export type PortalConfigListByServiceResponse = PortalConfigCollection; /** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams +export interface PortalConfigGetOptionalParams 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; +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface PortalConfigUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; +export type PortalConfigUpdateResponse = PortalConfigContract; /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams +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; @@ -7612,521 +10919,543 @@ export interface AuthorizationServerListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams +export interface PortalRevisionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +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 AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; +export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams - 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 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; +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; /** 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; -} +export interface PortalSettingsListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type BackendListByServiceResponse = BackendCollection; +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; /** Optional parameters. */ -export interface BackendGetEntityTagOptionalParams +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendGetOptionalParams extends coreClient.OperationOptions {} +export interface SignInSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & + PortalSigninSettings; /** Optional parameters. */ -export interface BackendCreateOrUpdateOptionalParams +export interface SignInSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +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 BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & - BackendContract; +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; /** Optional parameters. */ -export interface BackendUpdateOptionalParams +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; +/** Contains response data for the getEntityTag operation. */ +export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendDeleteOptionalParams +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface BackendReconnectOptionalParams - extends coreClient.OperationOptions { - /** Reconnect request parameters. */ - parameters?: BackendReconnectContract; -} +/** Contains response data for the get operation. */ +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & + PortalSignupSettings; /** Optional parameters. */ -export interface BackendListByServiceNextOptionalParams +export interface SignUpSettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection; - /** Optional parameters. */ -export interface CacheListByServiceOptionalParams +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** 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 CacheListByServiceResponse = CacheCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; /** Optional parameters. */ -export interface CacheGetEntityTagOptionalParams +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; +export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface CacheGetOptionalParams extends coreClient.OperationOptions {} +export interface DelegationSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CacheGetResponse = CacheGetHeaders & CacheContract; +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & + PortalDelegationSettings; /** Optional parameters. */ -export interface CacheCreateOrUpdateOptionalParams +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 CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & - CacheContract; +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; /** Optional parameters. */ -export interface CacheUpdateOptionalParams +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; +/** Contains response data for the listSecrets operation. */ +export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; /** Optional parameters. */ -export interface CacheDeleteOptionalParams +export interface PrivateEndpointConnectionListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams +export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CacheListByServiceNextResponse = CacheCollection; +/** 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; +} + +/** Optional parameters. */ +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listPrivateLinkResources operation. */ +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getPrivateLinkResource operation. */ +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; /** Optional parameters. */ -export interface CertificateListByServiceOptionalParams +export interface ProductListByServiceOptionalParams 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 | |
| groups | expand | | |
*/ 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; + /** 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 CertificateListByServiceResponse = CertificateCollection; +export type ProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface CertificateGetEntityTagOptionalParams +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; /** Optional parameters. */ -export interface CertificateGetOptionalParams - extends coreClient.OperationOptions {} +export interface ProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateGetHeaders & - CertificateContract; +export type ProductGetResponse = ProductGetHeaders & ProductContract; /** Optional parameters. */ -export interface CertificateCreateOrUpdateOptionalParams +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 CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & - CertificateContract; - -/** Optional parameters. */ -export interface CertificateDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface CertificateRefreshSecretOptionalParams +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the refreshSecret operation. */ -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & - CertificateContract; +/** Contains response data for the update operation. */ +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface CertificateListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection; +export interface ProductDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; +} /** Optional parameters. */ -export interface PerformConnectivityCheckAsyncOptionalParams +export interface ProductListByTagsOptionalParams 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 | 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 performConnectivityCheckAsync operation. */ -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; +/** Contains response data for the listByTags operation. */ +export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ -export interface ContentTypeListByServiceOptionalParams +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentTypeListByServiceResponse = ContentTypeCollection; +/** Contains response data for the listByServiceNext operation. */ +export type ProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface ContentTypeGetOptionalParams +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentTypeGetResponse = ContentTypeGetHeaders & - ContentTypeContract; +/** Contains response data for the listByTagsNext operation. */ +export type ProductListByTagsNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface ContentTypeCreateOrUpdateOptionalParams +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 ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & - ContentTypeContract; - -/** Optional parameters. */ -export interface ContentTypeDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ProductApiListByProductResponse = ApiCollection; /** Optional parameters. */ -export interface ContentTypeListByServiceNextOptionalParams +export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +/** Contains response data for the checkEntityExists operation. */ +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ContentItemListByServiceOptionalParams +export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentItemListByServiceResponse = ContentItemCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface ContentItemGetEntityTagOptionalParams +export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; - /** Optional parameters. */ -export interface ContentItemGetOptionalParams +export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ContentItemGetResponse = ContentItemGetHeaders & - ContentItemContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiListByProductNextResponse = ApiCollection; /** Optional parameters. */ -export interface ContentItemCreateOrUpdateOptionalParams +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 ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & - ContentItemContract; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupListByProductResponse = GroupCollection; /** Optional parameters. */ -export interface ContentItemDeleteOptionalParams +export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the checkEntityExists operation. */ +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; + /** Optional parameters. */ -export interface ContentItemListByServiceNextOptionalParams +export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentItemListByServiceNextResponse = ContentItemCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupCreateOrUpdateResponse = GroupContract; /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionOptionalParams +export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; - /** Optional parameters. */ -export interface DeletedServicesGetByNameOptionalParams +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupListByProductNextResponse = GroupCollection; /** Optional parameters. */ -export interface DeletedServicesPurgeOptionalParams +export interface ProductSubscriptionsListOptionalParams 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 | 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; } -/** 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; +export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ApiManagementOperationsListNextOptionalParams +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult; +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams +export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkus operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +/** Contains response data for the listByProduct operation. */ +export type ProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkusNext operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; +/** Contains response data for the getEntityTag operation. */ +export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceRestoreOptionalParams +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 restore operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; +/** Contains response data for the get operation. */ +export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiManagementServiceBackupOptionalParams +export interface ProductPolicyCreateOrUpdateOptionalParams 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 backup operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; +/** Contains response data for the createOrUpdate operation. */ +export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & + PolicyContract; /** 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; -} +export interface ProductPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +/** Optional parameters. */ +export interface ProductPolicyListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type ProductPolicyListByProductNextResponse = PolicyCollection; /** Optional parameters. */ -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; -} +export interface ProductWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; +/** Contains response data for the getEntityTag operation. */ +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceGetOptionalParams +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiManagementServiceGetResponse = ApiManagementServiceResource; +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceDeleteOptionalParams +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 createOrUpdate operation. */ +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & + WikiContract; + /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupOptionalParams +export interface ProductWikiUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; +/** Contains response data for the update operation. */ +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface ApiManagementServiceListOptionalParams +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface ProductWikisListOptionalParams + 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 ApiManagementServiceListResponse = ApiManagementServiceListResult; +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetSsoTokenOptionalParams +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSsoToken operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; /** Optional parameters. */ -export interface ApiManagementServiceCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} +export interface ProductApiLinkListByProductOptionalParams + 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; +} -/** Contains response data for the checkNameAvailability operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; +/** Contains response data for the listByProduct operation. */ +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getDomainOwnershipIdentifier operation. */ -export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = ApiManagementServiceGetDomainOwnershipIdentifierResult; +/** Contains response data for the get operation. */ +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams - 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; -} +export interface ProductApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the applyNetworkConfigurationUpdates operation. */ -export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupNextOptionalParams +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; - /** Optional parameters. */ -export interface ApiManagementServiceListNextOptionalParams +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface DiagnosticListByServiceOptionalParams +export interface ProductGroupLinkListByProductOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8134,190 +11463,238 @@ export interface DiagnosticListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface DiagnosticGetEntityTagOptionalParams +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** Optional parameters. */ -export interface DiagnosticGetOptionalParams +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** 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 ProductGroupLinkDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +/** Optional parameters. */ +export interface ProductGroupLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface DiagnosticUpdateOptionalParams +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & - DiagnosticContract; +/** Contains response data for the listByService operation. */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface DiagnosticDeleteOptionalParams +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; + /** Optional parameters. */ -export interface DiagnosticListByServiceNextOptionalParams +export interface QuotaByPeriodKeysGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +/** Contains response data for the get operation. */ +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; /** Optional parameters. */ -export interface EmailTemplateListByServiceOptionalParams - 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 QuotaByPeriodKeysUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; +/** Contains response data for the update operation. */ +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; /** Optional parameters. */ -export interface EmailTemplateGetEntityTagOptionalParams +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +/** Contains response data for the listByService operation. */ +export type RegionListByServiceResponse = RegionListResult; /** Optional parameters. */ -export interface EmailTemplateGetOptionalParams +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & - EmailTemplateContract; +/** Contains response data for the listByServiceNext operation. */ +export type RegionListByServiceNextResponse = RegionListResult; /** Optional parameters. */ -export interface EmailTemplateCreateOrUpdateOptionalParams +export interface ReportsListByApiOptionalParams 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 listByApi operation. */ +export type ReportsListByApiResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateUpdateOptionalParams - 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 update operation. */ -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & - EmailTemplateContract; +/** Contains response data for the listByUser operation. */ +export type ReportsListByUserResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateDeleteOptionalParams - extends coreClient.OperationOptions {} +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; +} + +/** Contains response data for the listByOperation operation. */ +export type ReportsListByOperationResponse = ReportCollection; /** Optional parameters. */ -export interface EmailTemplateListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listByServiceNext operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +/** Contains response data for the listByProduct operation. */ +export type ReportsListByProductResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayListByServiceOptionalParams +export interface ReportsListByGeoOptionalParams 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 listByService operation. */ -export type GatewayListByServiceResponse = GatewayCollection; +/** Contains response data for the listByGeo operation. */ +export type ReportsListByGeoResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListBySubscriptionOptionalParams + 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 listBySubscription operation. */ +export type ReportsListBySubscriptionResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayGetOptionalParams 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 get operation. */ -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +/** Contains response data for the listByTime operation. */ +export type ReportsListByTimeResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCreateOrUpdateOptionalParams +export interface ReportsListByRequestOptionalParams 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; } -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & - GatewayContract; +/** 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; /** 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; @@ -8326,91 +11703,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; @@ -8418,106 +11796,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; @@ -8525,100 +11888,99 @@ 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 - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; +export interface TagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} /** 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; @@ -8626,125 +11988,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 IssueGetResponse = IssueGetHeaders & IssueContract; +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & + TagProductLinkContract; /** Optional parameters. */ -export interface IssueListByServiceNextOptionalParams +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection; +/** Contains response data for the createOrUpdate operation. */ +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; /** Optional parameters. */ -export interface LoggerListByServiceOptionalParams +export interface TagProductLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagProductLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + +/** Optional parameters. */ +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; @@ -8752,24 +12110,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; @@ -8777,125 +12122,170 @@ 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; +} + +/** 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 getSharedAccessToken operation. */ +export type UserGetSharedAccessTokenResponse = UserTokenResult; + +/** Optional parameters. */ +export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; +/** Contains response data for the listByServiceNext operation. */ +export type UserListByServiceNextResponse = UserCollection; + +/** Optional parameters. */ +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 NotificationRecipientUserCheckEntityExistsOptionalParams +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listNext operation. */ +export type UserGroupListNextResponse = GroupCollection; /** Optional parameters. */ -export interface NotificationRecipientUserCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +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 createOrUpdate operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; +/** Contains response data for the list operation. */ +export type UserSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface NotificationRecipientUserDeleteOptionalParams +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; @@ -8904,156 +12294,135 @@ 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 & +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 PortalRevisionListByServiceOptionalParams +export interface WorkspaceNamedValueListByServiceOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| 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; + /** Query parameter to fetch named value entities based on refresh status. */ + isKeyVaultRefreshFailed?: KeyVaultRefreshState; } /** Contains response data for the listByService operation. */ -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface PortalRevisionGetEntityTagOptionalParams +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalRevisionGetOptionalParams +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams 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. */ @@ -9061,11 +12430,11 @@ export interface PortalRevisionCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionUpdateOptionalParams +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9074,256 +12443,262 @@ export interface PortalRevisionUpdateOptionalParams } /** Contains response data for the update operation. */ -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionListByServiceNextOptionalParams +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; - /** Optional parameters. */ -export interface PortalSettingsListByServiceOptionalParams +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; +/** Contains response data for the listValue operation. */ +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & + NamedValueSecretContract; /** Optional parameters. */ -export interface SignInSettingsGetEntityTagOptionalParams - 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 getEntityTag operation. */ -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & + NamedValueContract; /** Optional parameters. */ -export interface SignInSettingsGetOptionalParams +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & - PortalSigninSettings; - -/** Optional parameters. */ -export interface SignInSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface SignInSettingsCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaListByServiceOptionalParams 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 |
*/ + 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 SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; +/** Contains response data for the listByService operation. */ +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface SignUpSettingsGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface SignUpSettingsGetOptionalParams +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & - PortalSignupSettings; - -/** Optional parameters. */ -export interface SignUpSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface SignUpSettingsCreateOrUpdateOptionalParams +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. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface DelegationSettingsGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; - /** Optional parameters. */ -export interface DelegationSettingsGetOptionalParams +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & - PortalDelegationSettings; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface DelegationSettingsUpdateOptionalParams +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 WorkspaceNotificationListByServiceResponse = NotificationCollection; + +/** Optional parameters. */ +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceNotificationGetResponse = NotificationContract; + /** Optional parameters. */ -export interface DelegationSettingsCreateOrUpdateOptionalParams +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 DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface DelegationSettingsListSecretsOptionalParams +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionListByServiceOptionalParams +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetByNameOptionalParams +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** 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; -} +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +/** Optional parameters. */ +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; /** 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; -} +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} + +/** 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; @@ -9331,40 +12706,58 @@ 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 WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductApiListByProductNextOptionalParams +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductApiListByProductNextResponse = ApiCollection; +/** 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; @@ -9372,38 +12765,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; @@ -9414,351 +12807,453 @@ export interface ProductSubscriptionsListOptionalParams } /** Contains response data for the list operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ProductSubscriptionsListNextOptionalParams +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductPolicyListByProductOptionalParams +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProduct operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection; +/** Contains response data for the get operation. */ +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +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 getEntityTag operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyGetOptionalParams +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; + /** + * 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 get operation. */ -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +/** Contains response data for the update operation. */ +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface WorkspaceSubscriptionDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Optional parameters. */ +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductPolicyDeleteOptionalParams +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface QuotaByCounterKeysListByServiceOptionalParams +export interface WorkspaceSubscriptionListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & + SubscriptionKeysContract; + +/** Optional parameters. */ +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + +/** Optional parameters. */ +export interface WorkspaceApiVersionSetListByServiceOptionalParams + 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 QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; /** Optional parameters. */ -export interface QuotaByCounterKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; /** Optional parameters. */ -export interface QuotaByPeriodKeysGetOptionalParams +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & + ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysUpdateOptionalParams +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 createOrUpdate operation. */ +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +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 WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GlobalSchemaListByServiceNextOptionalParams +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; +/** 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; @@ -9766,306 +13261,343 @@ 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; +} + +/** Optional parameters. */ +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 update operation. */ -export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & - SubscriptionContract; +/** Contains response data for the listByService operation. */ +export type WorkspaceProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface SubscriptionDeleteOptionalParams +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SubscriptionRegeneratePrimaryKeyOptionalParams - 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; +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceTagUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type UserUpdateResponse = UserUpdateHeaders & UserContract; +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & + TagContract; /** 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 interface WorkspaceTagDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceTagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductOptionalParams + 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; } +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; + /** Optional parameters. */ -export interface UserGenerateSsoUrlOptionalParams +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUrl operation. */ -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +/** Contains response data for the get operation. */ +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & + TagApiLinkContract; /** Optional parameters. */ -export interface UserGetSharedAccessTokenOptionalParams +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSharedAccessToken operation. */ -export type UserGetSharedAccessTokenResponse = UserTokenResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; /** Optional parameters. */ -export interface UserListByServiceNextOptionalParams +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type UserListByServiceNextResponse = UserCollection; +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface UserGroupListOptionalParams +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 |
| description | 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; @@ -10073,20 +13605,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 WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface UserGroupListNextOptionalParams +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserGroupListNextResponse = GroupCollection; +/** Contains response data for the get operation. */ +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListOptionalParams +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +/** Optional parameters. */ +export interface WorkspaceTagProductLinkListByProductOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10094,44 +13645,41 @@ 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 WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface UserSubscriptionGetOptionalParams +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & + TagProductLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListNextOptionalParams +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserSubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; /** Optional parameters. */ -export interface UserIdentitiesListOptionalParams +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UserIdentitiesListResponse = UserIdentityCollection; - /** Optional parameters. */ -export interface UserIdentitiesListNextOptionalParams +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserIdentitiesListNextResponse = UserIdentityCollection; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; /** 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; -} +export interface WorkspaceApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** 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 c52a89b3a64d..d7364df80b91 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -254,6 +254,34 @@ export const AuthenticationSettingsContract: coreClient.CompositeMapper = { name: "Composite", className: "OpenIdAuthenticationSettingsContract" } + }, + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract" + } + } + } + }, + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract" + } + } + } } } } @@ -749,6 +777,13 @@ export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { type: { name: "String" } + }, + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", + type: { + name: "String" + } } } } @@ -1678,6 +1713,88 @@ export const TagCollection: coreClient.CompositeMapper = { } }; +export const ResolverCollection: coreClient.CompositeMapper = { + serializedName: "ResolverCollection", + type: { + name: "Composite", + className: "ResolverCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ResolverContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResolverUpdateContract: coreClient.CompositeMapper = { + serializedName: "ResolverUpdateContract", + type: { + name: "Composite", + className: "ResolverUpdateContract", + modelProperties: { + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + export const ProductCollection: coreClient.CompositeMapper = { serializedName: "ProductCollection", type: { @@ -2515,6 +2632,80 @@ export const OperationTagResourceContractProperties: coreClient.CompositeMapper } }; +export const WikiDocumentationContract: coreClient.CompositeMapper = { + serializedName: "WikiDocumentationContract", + type: { + name: "Composite", + className: "WikiDocumentationContract", + modelProperties: { + documentationId: { + serializedName: "documentationId", + xmlName: "documentationId", + type: { + name: "String" + } + } + } + } +}; + +export const WikiUpdateContract: coreClient.CompositeMapper = { + serializedName: "WikiUpdateContract", + type: { + name: "Composite", + className: "WikiUpdateContract", + modelProperties: { + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } + } + } + } + } +}; + +export const WikiCollection: coreClient.CompositeMapper = { + serializedName: "WikiCollection", + type: { + name: "Composite", + className: "WikiCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "WikiContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApiExportResult: coreClient.CompositeMapper = { serializedName: "ApiExportResult", type: { @@ -2698,33 +2889,26 @@ export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { } }; -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" + className: "AuthorizationProviderContract" } } } }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } - }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", @@ -2736,90 +2920,330 @@ export const AuthorizationServerCollection: coreClient.CompositeMapper = { } }; -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" } }, - 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", + } + } + } +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - tokenBodyParameters: { - serializedName: "tokenBodyParameters", - xmlName: "tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", + type: { + name: "Composite", + className: "AuthorizationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenBodyParameterContract" + className: "AuthorizationContract" } } } }, - tokenEndpoint: { - serializedName: "tokenEndpoint", - xmlName: "tokenEndpoint", - type: { - name: "String" - } - }, - supportState: { - serializedName: "supportState", - xmlName: "supportState", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Boolean" + name: "Number" } }, - defaultScope: { - serializedName: "defaultScope", - xmlName: "defaultScope", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { name: "String" } - }, + } + } + } +}; + +export const AuthorizationError: coreClient.CompositeMapper = { + serializedName: "AuthorizationError", + type: { + name: "Composite", + className: "AuthorizationError", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginRequestContract", + type: { + name: "Composite", + className: "AuthorizationLoginRequestContract", + modelProperties: { + postLoginRedirectUrl: { + serializedName: "postLoginRedirectUrl", + xmlName: "postLoginRedirectUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginResponseContract", + type: { + name: "Composite", + className: "AuthorizationLoginResponseContract", + modelProperties: { + loginLink: { + serializedName: "loginLink", + xmlName: "loginLink", + type: { + 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 AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyCollection", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCollection", + modelProperties: { + 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" + } + } + } + } +}; + +export const AuthorizationServerCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerCollection", + type: { + name: "Composite", + className: "AuthorizationServerCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationServerContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationServerContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + 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", @@ -3016,6 +3440,14 @@ export const BackendBaseParameters: coreClient.CompositeMapper = { name: "Composite", className: "BackendTlsProperties" } + }, + circuitBreaker: { + serializedName: "circuitBreaker", + xmlName: "circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker" + } } } } @@ -3303,36 +3735,194 @@ export const BackendTlsProperties: coreClient.CompositeMapper = { } }; -export const BackendUpdateParameters: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameters", +export const BackendCircuitBreaker: coreClient.CompositeMapper = { + serializedName: "BackendCircuitBreaker", type: { name: "Composite", - className: "BackendUpdateParameters", + className: "BackendCircuitBreaker", modelProperties: { - title: { + rules: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxItems: 15 }, - serializedName: "properties.title", - xmlName: "properties.title", + 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" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", + failureCondition: { + serializedName: "failureCondition", + xmlName: "failureCondition", type: { - name: "String" + name: "Composite", + className: "CircuitBreakerFailureCondition" } }, - resourceId: { - constraints: { + 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 BackendUpdateParameters: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameters", + type: { + name: "Composite", + className: "BackendUpdateParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + resourceId: { + constraints: { MaxLength: 2000, MinLength: 1 }, @@ -3374,6 +3964,14 @@ export const BackendUpdateParameters: coreClient.CompositeMapper = { className: "BackendTlsProperties" } }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker" + } + }, url: { constraints: { MaxLength: 2000, @@ -4578,6 +5176,28 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Boolean" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -4886,6 +5506,27 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "String" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: "AdditionalLocationOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -5406,6 +6047,63 @@ export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient } }; +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", + type: { + name: "Composite", + className: "DocumentationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", + type: { + name: "Composite", + className: "DocumentationUpdateContract", + modelProperties: { + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + export const EmailTemplateCollection: coreClient.CompositeMapper = { serializedName: "EmailTemplateCollection", type: { @@ -6192,6 +6890,16 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { type: { name: "String" } + }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "clientLibrary", + xmlName: "clientLibrary", + type: { + name: "String" + } } } } @@ -6280,6 +6988,16 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { name: "String" } }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", + type: { + name: "String" + } + }, clientId: { constraints: { MinLength: 1 @@ -6916,6 +7634,20 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { type: { name: "String" } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } } } } @@ -7071,30 +7803,35 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { } }; -export const PortalRevisionCollection: coreClient.CompositeMapper = { - serializedName: "PortalRevisionCollection", +export const PolicyFragmentCollection: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentCollection", type: { name: "Composite", - className: "PortalRevisionCollection", + className: "PolicyFragmentCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "PortalRevisionContract", + xmlElementName: "PolicyFragmentContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalRevisionContract" + className: "PolicyFragmentContract" } } } }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { name: "String" @@ -7104,22 +7841,22 @@ export const PortalRevisionCollection: coreClient.CompositeMapper = { } }; -export const PortalSettingsCollection: coreClient.CompositeMapper = { - serializedName: "PortalSettingsCollection", +export const ResourceCollection: coreClient.CompositeMapper = { + serializedName: "ResourceCollection", type: { name: "Composite", - className: "PortalSettingsCollection", + className: "ResourceCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "PortalSettingsContract", + xmlElementName: "ResourceCollectionValueItem", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalSettingsContract" + className: "ResourceCollectionValueItem" } } } @@ -7130,39 +7867,310 @@ export const PortalSettingsCollection: coreClient.CompositeMapper = { type: { name: "Number" } - } - } - } -}; - -export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "SubscriptionsDelegationSettingsProperties", - type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Boolean" + name: "String" } } } } }; -export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "RegistrationDelegationSettingsProperties", +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", type: { name: "Composite", - className: "RegistrationDelegationSettingsProperties", + className: "PortalConfigCollection", modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" + 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", + modelProperties: { + delegateRegistration: { + defaultValue: false, + serializedName: "delegateRegistration", + xmlName: "delegateRegistration", + type: { + name: "Boolean" + } + }, + delegateSubscription: { + defaultValue: false, + serializedName: "delegateSubscription", + xmlName: "delegateSubscription", + type: { + name: "Boolean" + } + }, + delegationUrl: { + serializedName: "delegationUrl", + xmlName: "delegationUrl", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigCorsProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCorsProperties", + type: { + name: "Composite", + className: "PortalConfigCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + xmlName: "allowedOrigins", + xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalConfigCspProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCspProperties", + type: { + name: "Composite", + className: "PortalConfigCspProperties", + modelProperties: { + mode: { + defaultValue: "disabled", + serializedName: "mode", + xmlName: "mode", + type: { + name: "String" + } + }, + reportUri: { + serializedName: "reportUri", + xmlName: "reportUri", + xmlElementName: "PortalConfigCspPropertiesReportUriItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedSources: { + serializedName: "allowedSources", + xmlName: "allowedSources", + xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalRevisionCollection: coreClient.CompositeMapper = { + serializedName: "PortalRevisionCollection", + type: { + name: "Composite", + className: "PortalRevisionCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "PortalRevisionContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalRevisionContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalSettingsCollection: coreClient.CompositeMapper = { + serializedName: "PortalSettingsCollection", + type: { + name: "Composite", + className: "PortalSettingsCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + 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" } } } @@ -7431,22 +8439,22 @@ export const SubscriptionCollection: coreClient.CompositeMapper = { } }; -export const QuotaCounterCollection: coreClient.CompositeMapper = { - serializedName: "QuotaCounterCollection", +export const ProductApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkCollection", type: { name: "Composite", - className: "QuotaCounterCollection", + className: "ProductApiLinkCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "QuotaCounterContract", + xmlElementName: "ProductApiLinkContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QuotaCounterContract" + className: "ProductApiLinkContract" } } } @@ -7469,23 +8477,99 @@ export const QuotaCounterCollection: coreClient.CompositeMapper = { } }; -export const QuotaCounterContract: coreClient.CompositeMapper = { - serializedName: "QuotaCounterContract", +export const ProductGroupLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkCollection", type: { name: "Composite", - className: "QuotaCounterContract", + className: "ProductGroupLinkCollection", modelProperties: { - counterKey: { - constraints: { - MinLength: 1 - }, - serializedName: "counterKey", - required: true, - xmlName: "counterKey", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductGroupLinkContract", type: { - name: "String" - } - }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductGroupLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const QuotaCounterCollection: coreClient.CompositeMapper = { + serializedName: "QuotaCounterCollection", + type: { + name: "Composite", + className: "QuotaCounterCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "QuotaCounterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaCounterContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const QuotaCounterContract: coreClient.CompositeMapper = { + serializedName: "QuotaCounterContract", + type: { + name: "Composite", + className: "QuotaCounterContract", + modelProperties: { + counterKey: { + constraints: { + MinLength: 1 + }, + serializedName: "counterKey", + required: true, + xmlName: "counterKey", + type: { + name: "String" + } + }, periodKey: { constraints: { MinLength: 1 @@ -8802,6 +9886,120 @@ export const TagCreateUpdateParameters: coreClient.CompositeMapper = { } }; +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 = { serializedName: "AccessInformationCollection", type: { @@ -9290,6 +10488,44 @@ export const UserTokenResult: coreClient.CompositeMapper = { } }; +export const WorkspaceCollection: coreClient.CompositeMapper = { + serializedName: "WorkspaceCollection", + type: { + name: "Composite", + className: "WorkspaceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "WorkspaceContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApiRevisionInfoContract: coreClient.CompositeMapper = { serializedName: "ApiRevisionInfoContract", type: { @@ -9359,6 +10595,37 @@ export const QuotaCounterValueContract: coreClient.CompositeMapper = { } }; +export const ResolverResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultLogItemContract", + type: { + name: "Composite", + className: "ResolverResultLogItemContract", + modelProperties: { + objectType: { + serializedName: "objectType", + xmlName: "objectType", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + xmlName: "action", + type: { + name: "String" + } + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", + type: { + name: "String" + } + } + } + } +}; + export const ApiContractProperties: coreClient.CompositeMapper = { serializedName: "ApiContractProperties", type: { @@ -9549,232 +10816,226 @@ export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { } }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ApiContract", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", type: { name: "Composite", - className: "AuthenticationSettingsContract" + className: "PrivateEndpoint" } }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" + className: "PrivateLinkServiceConnectionState" } }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } - }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + xmlName: "properties.groupId", type: { name: "String" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - serializedName: "properties.isOnline", + requiredMembers: { + serializedName: "properties.requiredMembers", readOnly: true, - xmlName: "properties.isOnline", + xmlName: "properties.requiredMembers", + xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + xmlName: "properties.requiredZoneNames", + xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - apiVersionDescription: { + } + } + } +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 256 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", - type: { - name: "String" - } - }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + method: { + serializedName: "method", + required: true, + xmlName: "method", 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" - } - }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", type: { name: "String" } - }, + } + } + } +}; + +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", + type: { + name: "Composite", + className: "OperationUpdateContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + method: { + serializedName: "method", + xmlName: "method", type: { name: "String" } }, - path: { + urlTemplate: { constraints: { - MaxLength: 400 + MaxLength: 1000, + MinLength: 1 }, - serializedName: "properties.path", - xmlName: "properties.path", + serializedName: "urlTemplate", + xmlName: "urlTemplate", 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" - } } } } }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", type: { name: "Composite", - className: "ApiReleaseContract", + className: "ProductContractProperties", modelProperties: { - ...Resource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } - }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + } + } + } +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", type: { - name: "DateTime" + name: "String" } }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", + name: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "name", + required: true, + xmlName: "name", type: { name: "String" } @@ -9783,91 +11044,116 @@ export const ApiReleaseContract: coreClient.CompositeMapper = { } }; -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", +export const ProductUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ProductUpdateProperties", type: { name: "Composite", - className: "OperationContract", + className: "ProductUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } + name: "String" + } + } + } + } +}; + +export const IssueContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractProperties", + type: { + name: "Composite", + className: "IssueContractProperties", + modelProperties: { + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + required: true, + xmlName: "title", + type: { + name: "String" } }, description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + required: true, + xmlName: "description", type: { name: "String" } }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", + userId: { + serializedName: "userId", + required: true, + xmlName: "userId", type: { - name: "Composite", - className: "RequestContract" + name: "String" } - }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", + } + } + } +}; + +export const IssueUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContractProperties", + type: { + name: "Composite", + className: "IssueUpdateContractProperties", + modelProperties: { + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + xmlName: "title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } + name: "String" } }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + description: { + serializedName: "description", + xmlName: "description", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + userId: { + serializedName: "userId", + xmlName: "userId", type: { name: "String" } - }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + } + } + } +}; + +export const TagDescriptionContractProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContractProperties", + type: { + name: "Composite", + className: "TagDescriptionContractProperties", + modelProperties: { + ...TagDescriptionBaseProperties.type.modelProperties, + tagId: { + serializedName: "tagId", + xmlName: "tagId", type: { name: "String" } }, - urlTemplate: { + displayName: { constraints: { - MaxLength: 1000, + MaxLength: 160, MinLength: 1 }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9876,24 +11162,29 @@ export const OperationContract: coreClient.CompositeMapper = { } }; -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", +export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractProperties", type: { name: "Composite", - className: "PolicyContract", + className: "ApiVersionSetContractProperties", modelProperties: { - ...Resource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + versioningScheme: { + serializedName: "versioningScheme", + required: true, + xmlName: "versioningScheme", type: { name: "String" } @@ -9902,20 +11193,27 @@ export const PolicyContract: coreClient.CompositeMapper = { } }; -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParametersProperties", type: { name: "Composite", - className: "TagContract", + className: "ApiVersionSetUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, + ...ApiVersionSetEntityBase.type.modelProperties, displayName: { constraints: { - MaxLength: 160, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { name: "String" } @@ -9924,244 +11222,188 @@ export const TagContract: coreClient.CompositeMapper = { } }; -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContractProperties", type: { name: "Composite", - className: "ProductContract", + className: "AuthorizationServerContractProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { constraints: { - MaxLength: 1000 + MaxLength: 50, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { name: "Boolean" } }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { name: "Boolean" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: ["notPublished", "published"] - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - } - } - } -}; - -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", - type: { - name: "Composite", - className: "SchemaContract", - modelProperties: { - ...Resource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", type: { name: "String" } }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContractProperties", type: { name: "Composite", - className: "DiagnosticContract", + className: "AuthorizationServerUpdateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", type: { - name: "Boolean" + name: "String" } }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", type: { name: "String" } }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Boolean" + name: "String" } } } } }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "IssueContract", + className: "BackendContractProperties", modelProperties: { - ...Resource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", - type: { - name: "String" - } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + required: true, + xmlName: "url", type: { name: "String" } }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { name: "String" } @@ -10170,30 +11412,27 @@ export const IssueContract: coreClient.CompositeMapper = { } }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", type: { name: "Composite", - className: "IssueCommentContract", + className: "BackendUpdateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + xmlName: "url", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { name: "String" } @@ -10202,83 +11441,50 @@ export const IssueCommentContract: coreClient.CompositeMapper = { } }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "KeyVaultContractProperties", modelProperties: { - ...Resource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", - type: { - name: "String" - } - }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties" } } } } }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", type: { name: "Composite", - className: "TagDescriptionContract", + className: "ApiManagementServiceProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - externalDocsUrl: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { constraints: { - MaxLength: 2000 + MaxLength: 100 }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", - type: { - name: "String" - } - }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", - type: { - name: "String" - } - }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", type: { name: "String" } }, - displayName: { + publisherName: { constraints: { - MaxLength: 160, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "publisherName", + required: true, + xmlName: "publisherName", type: { name: "String" } @@ -10287,56 +11493,29 @@ export const TagDescriptionContract: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateProperties", type: { name: "Composite", - className: "ApiVersionSetContract", + className: "ApiManagementServiceUpdateProperties", modelProperties: { - ...Resource.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: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + serializedName: "publisherEmail", + xmlName: "publisherEmail", type: { name: "String" } }, - displayName: { + publisherName: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + serializedName: "publisherName", + xmlName: "publisherName", type: { name: "String" } @@ -10345,95 +11524,57 @@ export const ApiVersionSetContract: coreClient.CompositeMapper = { } }; -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "AuthorizationServerContract", + className: "ApiManagementServiceResource", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } + name: "Composite", + className: "SystemData" } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + location: { + serializedName: "location", + required: true, + xmlName: "location", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", type: { name: "Sequence", element: { @@ -10443,117 +11584,108 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + notificationSenderEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" + name: "DateTime" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", - type: { - name: "String" + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { name: "String" } - } - } - } -}; - -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", - type: { - name: "Composite", - className: "AuthorizationServerUpdateContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", type: { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + 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: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] + name: "Composite", + className: "HostnameConfiguration" } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10563,97 +11695,100 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TokenBodyParameterContract" + name: "String" } } } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { - name: "Boolean" + name: "String" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AdditionalLocation" } } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10663,110 +11798,78 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { - name: "String" + name: "Boolean" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } - } - } - } -}; - -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", - type: { - name: "Composite", - className: "BackendContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", type: { - name: "String" + name: "Composite", + className: "ApiVersionConstraint" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", type: { - name: "String" + name: "Boolean" } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - 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" - } - }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" + } + } } }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } }, - url: { + publisherEmail: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.url", - xmlName: "properties.url", + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", type: { name: "String" } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", type: { name: "String" } @@ -10775,310 +11878,334 @@ export const BackendContract: coreClient.CompositeMapper = { } }; -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateParameters", type: { name: "Composite", - className: "BackendReconnectContract", + className: "ApiManagementServiceUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "TimeSpan" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", - type: { - name: "Composite", - className: "CacheContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - connectionString: { - constraints: { - MaxLength: 300 - }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - useFromLocation: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - resourceId: { + notificationSenderEmail: { constraints: { - MaxLength: 2000 + MaxLength: 100 }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } - } - } - } -}; - -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", - type: { - name: "Composite", - className: "CertificateContract", - modelProperties: { - ...Resource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { name: "DateTime" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "String" } - } - } - } -}; - -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", - type: { - name: "Composite", - className: "ContentTypeContract", - modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { name: "String" } }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", type: { name: "String" } - } - } - } -}; - -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", - type: { - name: "Composite", - className: "ContentItemContract", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration" + } + } } - } - } - } -}; - -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", - type: { - name: "Composite", - className: "DeletedServiceContract", - modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", readOnly: true, - xmlName: "location", + 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" } }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { name: "String" } }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "DateTime" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } } - } - } - } -}; - -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", - type: { - name: "Composite", - className: "EmailTemplateContract", - modelProperties: { - ...Resource.type.modelProperties, - subject: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.subject", - xmlName: "properties.subject", + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - body: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.body", - xmlName: "properties.body", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - isDefault: { - serializedName: "properties.isDefault", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", readOnly: true, - xmlName: "properties.isDefault", + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { name: "Boolean" } }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", + 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: "EmailTemplateParametersContractProperties" + className: "RemotePrivateEndpointConnectionWrapper" } } } - } - } - } -}; - -export const GatewayContract: coreClient.CompositeMapper = { - serializedName: "GatewayContract", - type: { - name: "Composite", - className: "GatewayContract", - modelProperties: { - ...Resource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { - name: "Composite", - className: "ResourceLocationDataContract" + name: "String" } }, - description: { + publisherEmail: { constraints: { - MaxLength: 1000 + MaxLength: 100 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", + type: { + name: "String" + } + }, + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", type: { name: "String" } @@ -11087,143 +12214,120 @@ export const GatewayContract: coreClient.CompositeMapper = { } }; -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", type: { name: "Composite", - className: "GatewayHostnameConfigurationContract", + className: "UserContractProperties", modelProperties: { - ...Resource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", type: { name: "String" } }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", + lastName: { + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", - type: { - name: "Boolean" - } - }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + email: { + serializedName: "email", + xmlName: "email", type: { - name: "Boolean" + name: "String" } }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", type: { - name: "Boolean" + name: "DateTime" } }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } } } } } }; -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "AssociationContract", + className: "UserCreateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - defaultValue: "created", - isConstant: true, - serializedName: "properties.provisioningState", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + required: true, + xmlName: "email", type: { name: "String" } - } - } - } -}; - -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract", - modelProperties: { - ...Resource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", - type: { - name: "Boolean" - } - } - } - } -}; - -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", - type: { - name: "Composite", - className: "GroupContract", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { + }, + firstName: { constraints: { - MaxLength: 300, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { name: "String" } }, - description: { + lastName: { constraints: { - MaxLength: 1000 + MaxLength: 100, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { name: "String" } }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "Boolean" + name: "String" } }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + appType: { + serializedName: "appType", + xmlName: "appType", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] + name: "String" } }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { name: "String" } @@ -11232,179 +12336,135 @@ export const GroupContract: coreClient.CompositeMapper = { } }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "UserContract", + className: "UserUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + xmlName: "email", type: { name: "String" } }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + password: { + serializedName: "password", + xmlName: "password", type: { name: "String" } }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - }, firstName: { - serializedName: "properties.firstName", - xmlName: "properties.firstName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "firstName", + xmlName: "firstName", type: { name: "String" } }, lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", - type: { - name: "String" - } - }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } - }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", - type: { - name: "DateTime" - } - }, - groups: { - serializedName: "properties.groups", - readOnly: true, - xmlName: "properties.groups", - xmlElementName: "GroupContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } - } } } } }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "IdentityProviderContract", + className: "IdentityProviderContractProperties", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - allowedTenants: { + clientSecret: { constraints: { - MaxItems: 32 + MinLength: 1 }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", - type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } - }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } - }, - profileEditingPolicyName: { + } + } + } +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { MinLength: 1 }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - passwordResetPolicyName: { + clientSecret: { constraints: { MinLength: 1 }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", type: { name: "String" } - }, + } + } + } +}; + +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", + type: { + name: "Composite", + className: "IdentityProviderUpdateProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, clientId: { constraints: { MinLength: 1 }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } @@ -11413,8 +12473,8 @@ export const IdentityProviderContract: coreClient.CompositeMapper = { constraints: { MinLength: 1 }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -11423,156 +12483,171 @@ export const IdentityProviderContract: coreClient.CompositeMapper = { } }; -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "IdentityProviderCreateContract", + className: "NamedValueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - allowedTenants: { + value: { constraints: { - MaxItems: 32 + MaxLength: 4096 }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + serializedName: "value", + xmlName: "value", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractProperties" } - }, - signupPolicyName: { + } + } + } +}; + +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: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - signinPolicyName: { + value: { constraints: { - MinLength: 1 + MaxLength: 4096 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractCreateProperties" } - }, - passwordResetPolicyName: { + } + } + } +}; + +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: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - clientId: { + value: { constraints: { + MaxLength: 4096, MinLength: 1 }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "LoggerContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - description: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.description", - xmlName: "properties.description", + format: { + serializedName: "format", + xmlName: "format", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector" } }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { - name: "Boolean" + name: "String" } }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { name: "String" } @@ -11581,104 +12656,146 @@ export const LoggerContract: coreClient.CompositeMapper = { } }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", type: { name: "Composite", - className: "NamedValueContract", + className: "ApiContract", modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "Boolean" + name: "Composite", + className: "AuthenticationSettingsContract" } }, - displayName: { + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" + } + }, + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String" + } + }, + apiRevision: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { name: "String" } }, - value: { + apiVersion: { constraints: { - MaxLength: 4096 + MaxLength: 100 }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { name: "String" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "Boolean" } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...Resource.type.modelProperties, - tags: { + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", + type: { + name: "Boolean" + } + }, + apiRevisionDescription: { constraints: { - MaxItems: 32 + MaxLength: 256 }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + 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" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", + type: { + name: "String" + } + }, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, + MaxLength: 300, MinLength: 1 }, serializedName: "properties.displayName", @@ -11687,75 +12804,177 @@ export const NamedValueCreateContract: coreClient.CompositeMapper = { name: "String" } }, - value: { + serviceUrl: { constraints: { - MaxLength: 4096 + MaxLength: 2000 }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { name: "String" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + 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: "KeyVaultContractCreateProperties" + className: "ApiVersionSetContractDetails" } } } } }; -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "NotificationContract", + className: "ApiReleaseContract", modelProperties: { - ...Resource.type.modelProperties, - title: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" + name: "DateTime" } }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", type: { - name: "Composite", - className: "RecipientsContractProperties" + name: "DateTime" + } + }, + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", + type: { + name: "String" } } } } }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "RecipientUserContract", + className: "OperationContract", modelProperties: { - ...Resource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + request: { + serializedName: "properties.request", + xmlName: "properties.request", + type: { + name: "Composite", + className: "RequestContract" + } + }, + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } + } + }, + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + method: { + serializedName: "properties.method", + xmlName: "properties.method", + type: { + name: "String" + } + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { name: "String" } @@ -11764,16 +12983,24 @@ export const RecipientUserContract: coreClient.CompositeMapper = { } }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", type: { name: "Composite", - className: "RecipientEmailContract", + className: "PolicyContract", modelProperties: { - ...Resource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", type: { name: "String" } @@ -11782,92 +13009,81 @@ export const RecipientEmailContract: coreClient.CompositeMapper = { } }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "TagContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 50 + MaxLength: 160, + MinLength: 1 }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { name: "String" } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", - type: { - name: "String" - } - }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", - type: { - name: "String" - } - }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } } } } }; -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", type: { name: "Composite", - className: "PolicyDescriptionContract", + className: "ResolverContract", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - readOnly: true, - xmlName: "properties.description", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "Number" + name: "String" + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" } } } } }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ProductContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, description: { constraints: { - MaxLength: 2000 + MaxLength: 1000 }, serializedName: "properties.description", xmlName: "properties.description", @@ -11875,220 +13091,227 @@ export const PortalRevisionContract: coreClient.CompositeMapper = { name: "String" } }, - statusDetails: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, - xmlName: "properties.status", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "String" + name: "Boolean" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { name: "Boolean" } }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "DateTime" + name: "Number" } }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["notPublished", "published"] + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" } } } } }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", type: { name: "Composite", - className: "PortalSettingsContract", + className: "SchemaContract", modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", - type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } - }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } - }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "any" } } } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const DiagnosticContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticContract", type: { name: "Composite", - className: "PortalSigninSettings", + className: "DiagnosticContract", modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + ...ProxyResource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", - type: { - name: "Composite", - className: "PortalSignupSettings", - modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + }, + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", type: { - name: "Boolean" + name: "String" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { name: "Composite", - className: "TermsOfServiceProperties" + className: "SamplingSettings" } - } - } - } -}; - -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", - type: { - name: "Composite", - className: "PortalDelegationSettings", - modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + }, + 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", + type: { + name: "Boolean" + } + }, + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + name: "String" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" + name: "Boolean" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "IssueContract", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "DateTime" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { name: "String" } @@ -12097,437 +13320,490 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "PrivateLinkResource", + className: "IssueCommentContract", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - xmlName: "properties.groupId", + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - xmlName: "properties.requiredMembers", - xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - xmlName: "properties.requiredZoneNames", - xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", type: { name: "Composite", - className: "SubscriptionContract", + className: "IssueAttachmentContract", modelProperties: { - ...Resource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { name: "String" } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + } + } + } +}; + +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", + type: { + name: "Composite", + className: "TagDescriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] + name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", + externalDocsUrl: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", type: { - name: "DateTime" + name: "String" } }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "DateTime" + name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", type: { - name: "DateTime" + name: "String" } }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "DateTime" + name: "String" } - }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + } + } + } +}; + +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", + type: { + name: "Composite", + className: "WikiContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } + } + } + } + } +}; + +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", + type: { + name: "Composite", + className: "ApiVersionSetContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" } }, - primaryKey: { + versionQueryName: { constraints: { - MaxLength: 256, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", type: { name: "String" } }, - secondaryKey: { + versionHeaderName: { constraints: { - MaxLength: 256, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { name: "String" } }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", type: { - name: "Boolean" + name: "String" } } } } }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "AuthorizationProviderContract", modelProperties: { - ...Resource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { name: "String" } }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "any" - } - }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "AuthorizationProviderOAuth2Settings" } } } } }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "TenantSettingsContract", + className: "AuthorizationContract", modelProperties: { - ...Resource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", + type: { + name: "String" + } + }, + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", type: { name: "Dictionary", value: { type: { name: "String" } } } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "AuthorizationError" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String" + } } } } }; -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "AccessInformationContract", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { name: "String" } }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { name: "String" } - }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } } } } }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "OperationResultContract", + className: "AuthorizationServerContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } } }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } } }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { name: "String" } }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "Composite", - className: "ErrorResponseBody" + name: "Boolean" } }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OperationResultLogItemContract" + name: "String" } } } - } - } - } -}; - -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", - type: { - name: "Composite", - className: "TenantConfigurationSyncStateContract", - modelProperties: { - ...Resource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { name: "String" } }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { name: "String" } }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" } }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { name: "Boolean" } }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { name: "Boolean" } }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", - type: { - name: "DateTime" - } - }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "DateTime" + name: "String" } }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", 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", + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - method: { - serializedName: "method", - required: true, - xmlName: "method", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12536,180 +13812,180 @@ export const OperationContractProperties: coreClient.CompositeMapper = { } }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "AuthorizationServerUpdateContract", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - method: { - serializedName: "method", - xmlName: "method", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", - type: { - name: "Composite", - className: "ProductContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + }, + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } + } + }, + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { name: "String" } - } - } - } -}; - -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", - type: { - name: "Composite", - className: "ProductTagResourceContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + }, + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", + type: { + name: "Boolean" + } + }, + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { name: "String" } }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - required: true, - xmlName: "name", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { name: "String" } - } - } - } -}; - -export const ProductUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ProductUpdateProperties", - type: { - name: "Composite", - className: "ProductUpdateProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", + type: { + name: "String" + } + }, displayName: { constraints: { - MaxLength: 300, + MaxLength: 50, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } - } - } - } -}; - -export const IssueContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractProperties", - type: { - name: "Composite", - className: "IssueContractProperties", - modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - required: true, - xmlName: "title", + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "String" + name: "Boolean" } }, - description: { - serializedName: "description", - required: true, - xmlName: "description", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "String" + name: "Boolean" } }, - userId: { - serializedName: "userId", - required: true, - xmlName: "userId", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { name: "String" } - } - } - } -}; - -export const IssueUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContractProperties", - type: { - name: "Composite", - className: "IssueUpdateContractProperties", - modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - xmlName: "title", + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { name: "String" } }, - description: { - serializedName: "description", - xmlName: "description", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - userId: { - serializedName: "userId", - xmlName: "userId", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12718,87 +13994,100 @@ export const IssueUpdateContractProperties: coreClient.CompositeMapper = { } }; -export const TagDescriptionContractProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContractProperties", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "TagDescriptionContractProperties", + className: "BackendContract", modelProperties: { - ...TagDescriptionBaseProperties.type.modelProperties, - tagId: { - serializedName: "tagId", - xmlName: "tagId", + ...ProxyResource.type.modelProperties, + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - displayName: { + description: { constraints: { - MaxLength: 160, + MaxLength: 2000, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractProperties", - type: { - name: "Composite", - className: "ApiVersionSetContractProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + }, + resourceId: { constraints: { - MaxLength: 100, + MaxLength: 2000, MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - required: true, - xmlName: "versioningScheme", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { - name: "String" + name: "Composite", + className: "BackendProperties" } - } - } - } -}; - -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", - type: { - name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", + type: { + name: "Composite", + className: "BackendCredentialsContract" + } + }, + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", + type: { + name: "Composite", + className: "BackendProxyContract" + } + }, + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", + type: { + name: "Composite", + className: "BackendTlsProperties" + } + }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker" + } + }, + url: { constraints: { - MaxLength: 100, + MaxLength: 2000, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.url", + xmlName: "properties.url", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", type: { name: "String" } @@ -12807,66 +14096,67 @@ export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper } }; -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "AuthorizationServerContractProperties", + className: "BackendReconnectContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "String" + name: "TimeSpan" } - }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - required: true, - xmlName: "clientRegistrationEndpoint", + } + } + } +}; + +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", + type: { + name: "Composite", + className: "CacheContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - required: true, - xmlName: "authorizationEndpoint", + connectionString: { + constraints: { + MaxLength: 300 + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", 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", + useFromLocation: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + resourceId: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } @@ -12875,121 +14165,85 @@ export const AuthorizationServerContractProperties: coreClient.CompositeMapper = } }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "CertificateContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + ...ProxyResource.type.modelProperties, + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { name: "String" } }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" + name: "DateTime" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractProperties" } } } } }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "BackendContractProperties", + className: "ContentTypeContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - required: true, - xmlName: "url", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { name: "String" } - } - } - } -}; - -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", - type: { - name: "Composite", - className: "BackendUpdateParameterProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - xmlName: "url", + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", type: { name: "String" } @@ -12998,81 +14252,82 @@ export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { } }; -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "KeyVaultContractProperties", + className: "ContentItemContract", modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "DeletedServiceContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { name: "String" } + }, + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", + type: { + name: "DateTime" + } } } } }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "DocumentationContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - xmlName: "publisherName", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { name: "String" } @@ -13081,330 +14336,441 @@ export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = } }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "EmailTemplateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + subject: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" + name: "String" } }, - identity: { - serializedName: "identity", - xmlName: "identity", + body: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - location: { - serializedName: "location", - required: true, - xmlName: "location", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - etag: { - serializedName: "etag", + isDefault: { + serializedName: "properties.isDefault", readOnly: true, - xmlName: "etag", + xmlName: "properties.isDefault", type: { - name: "String" + name: "Boolean" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "EmailTemplateParametersContractProperties" } } } + } + } + } +}; + +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: "Composite", + className: "ResourceLocationDataContract" + } }, - notificationSenderEmail: { + description: { constraints: { - MaxLength: 100 + MaxLength: 1000 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + } + } + } +}; + +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" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", type: { - name: "DateTime" + name: "Boolean" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", type: { - name: "String" + name: "Boolean" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", type: { - name: "String" + name: "Boolean" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", type: { - name: "String" + name: "Boolean" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +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" } - }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + } + } + } +}; + +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" } - }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + } + } + } +}; + +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", + type: { + name: "Composite", + className: "GroupContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + 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", + builtIn: { + serializedName: "properties.builtIn", readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + xmlName: "properties.builtIn", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: ["custom", "system", "external"] } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { name: "String" } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + } + } + } +}; + +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", + type: { + name: "Composite", + className: "UserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "String" } }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdditionalLocation" + className: "UserIdentityContract" } } } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } + name: "String" } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "Boolean" + name: "String" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "Boolean" + name: "DateTime" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } } - }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + } + } + } +}; + +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: "Composite", - className: "ApiVersionConstraint" + name: "String" } }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" + name: "String" } } } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { name: "String" } }, - publisherEmail: { + signupPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - publisherName: { + signinPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", + type: { + name: "String" + } + }, + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", + type: { + name: "String" + } + }, + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", + type: { + name: "String" + } + }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", + type: { + name: "String" + } + }, + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String" + } + }, + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -13413,41 +14779,34 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "IdentityProviderCreateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - xmlName: "identity", + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { name: "String" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { @@ -13457,108 +14816,151 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } } }, - notificationSenderEmail: { + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "DateTime" + name: "String" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +export const LoggerContract: coreClient.CompositeMapper = { + serializedName: "LoggerContract", + type: { + name: "Composite", + className: "LoggerContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + description: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "Boolean" } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueContract: coreClient.CompositeMapper = { + serializedName: "NamedValueContract", + type: { + name: "Composite", + className: "NamedValueContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { @@ -13568,157 +14970,2674 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } } }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "VirtualNetworkConfiguration" + className: "KeyVaultContractProperties" } - }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + } + } + } +}; + +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", + type: { + name: "Composite", + className: "NamedValueCreateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AdditionalLocation" + name: "String" } } } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } + name: "String" } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "Boolean" + name: "String" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "Boolean" + 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 + }, + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", type: { name: "Composite", - className: "ApiVersionConstraint" + className: "RecipientsContractProperties" + } + } + } + } +}; + +export const RecipientUserContract: coreClient.CompositeMapper = { + serializedName: "RecipientUserContract", + type: { + name: "Composite", + className: "RecipientUserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const RecipientEmailContract: coreClient.CompositeMapper = { + serializedName: "RecipientEmailContract", + type: { + name: "Composite", + className: "RecipientEmailContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + email: { + serializedName: "properties.email", + xmlName: "properties.email", + type: { + name: "String" + } + } + } + } +}; + +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", + type: { + name: "Composite", + className: "OpenidConnectProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" } }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "String" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", + type: { + name: "Composite", + className: "PolicyDescriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + readOnly: true, + xmlName: "properties.description", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", + type: { + name: "Number" + } + } + } + } +}; + +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", + type: { + name: "Composite", + className: "PolicyFragmentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + format: { + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", + type: { + name: "Composite", + className: "ResourceCollectionValueItem", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const PortalConfigContract: coreClient.CompositeMapper = { + serializedName: "PortalConfigContract", + type: { + name: "Composite", + className: "PortalConfigContract", + 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", + type: { + name: "Composite", + className: "PortalConfigDelegationProperties" + } + }, + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", + type: { + name: "Composite", + className: "PortalConfigCorsProperties" + } + }, + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", + type: { + name: "Composite", + className: "PortalConfigCspProperties" + } + } + } + } +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + statusDetails: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", + type: { + name: "String" + } + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean" + } + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", + type: { + name: "DateTime" + } + }, + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", + type: { + name: "Composite", + className: "PortalSettingsContract", + 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", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +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: "Boolean" + } + } + } + } +}; + +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", + type: { + name: "Composite", + className: "PortalSignupSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +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" + } + }, + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + } + } + } +}; + +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", + type: { + name: "Composite", + className: "SubscriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 100 + }, + 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", + type: { + name: "DateTime" + } + }, + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", + type: { + name: "DateTime" + } + }, + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", + type: { + name: "DateTime" + } + }, + primaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", + type: { + name: "String" + } + }, + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", + type: { + name: "String" + } + }, + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ProductApiLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkContract", + type: { + name: "Composite", + className: "ProductApiLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + } + } + } +}; + +export const ProductGroupLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkContract", + type: { + name: "Composite", + className: "ProductGroupLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + xmlName: "properties.groupId", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", + type: { + name: "Composite", + className: "GlobalSchemaContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "any" + } + }, + document: { + serializedName: "properties.document", + xmlName: "properties.document", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +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: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const TagApiLinkContract: coreClient.CompositeMapper = { + serializedName: "TagApiLinkContract", + type: { + name: "Composite", + className: "TagApiLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + } + } + } +}; + +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: "String" + } + } + } + } +}; + +export const TagProductLinkContract: coreClient.CompositeMapper = { + serializedName: "TagProductLinkContract", + type: { + name: "Composite", + className: "TagProductLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + productId: { + serializedName: "properties.productId", + xmlName: "properties.productId", + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", + type: { + name: "Composite", + className: "OperationResultContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + } + }, + started: { + serializedName: "properties.started", + xmlName: "properties.started", + type: { + name: "DateTime" + } + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", + type: { + name: "DateTime" + } + }, + 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.actionLog", + xmlElementName: "OperationResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResultLogItemContract" + } + } + } + } + } + } +}; + +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 WorkspaceContract: coreClient.CompositeMapper = { + serializedName: "WorkspaceContract", + type: { + name: "Composite", + className: "WorkspaceContract", + 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 ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", + type: { + name: "Composite", + className: "ResolverResultContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + } + }, + started: { + serializedName: "properties.started", + xmlName: "properties.started", + type: { + name: "DateTime" + } + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", + type: { + name: "DateTime" + } + }, + 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.actionLog", + xmlElementName: "ResolverResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract" + } + } + } + } + } + } +}; + +export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getHeaders", + type: { + name: "Composite", + className: "ApiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_updateHeaders", + type: { + name: "Composite", + className: "ApiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_updateHeaders", + type: { + name: "Composite", + className: "ApiReleaseUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getHeaders", + type: { + name: "Composite", + className: "ApiOperationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_updateHeaders", + type: { + name: "Composite", + className: "ApiOperationUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByOperationHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByOperationHeaders", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByApiHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByApiHeaders", + type: { + name: "Composite", + className: "TagGetByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagAssignToApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_assignToApiHeaders", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByProductHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByProductHeaders", + type: { + name: "Composite", + className: "TagGetByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getHeaders", + type: { + name: "Composite", + className: "TagGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_createOrUpdateHeaders", + type: { + name: "Composite", + className: "TagCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getHeaders", + type: { + name: "Composite", + className: "ApiSchemaGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_updateHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getHeaders", + type: { + name: "Composite", + className: "ApiIssueGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_updateHeaders", + type: { + name: "Composite", + className: "ApiIssueUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", + type: { + name: "Composite", + className: "ApiWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", + type: { + name: "Composite", + className: "ApiWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiVersionSetGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getHeaders", + type: { + name: "Composite", + className: "ApiVersionSetGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_updateHeaders", + type: { + name: "Composite", + className: "ApiVersionSetUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", + type: { + name: "Composite", + className: "AuthorizationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", + type: { + name: "Composite", + className: "AuthorizationLoginLinksPostHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 AuthorizationServerGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_updateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 BackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getEntityTagHeaders", + type: { + name: "Composite", + className: "BackendGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getHeaders", + type: { + name: "Composite", + className: "BackendGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_createOrUpdateHeaders", + type: { + name: "Composite", + className: "BackendCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_updateHeaders", + type: { + name: "Composite", + className: "BackendUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getEntityTagHeaders", + type: { + name: "Composite", + className: "CacheGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getHeaders", + type: { + name: "Composite", + className: "CacheGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_createOrUpdateHeaders", + type: { + name: "Composite", + className: "CacheCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_updateHeaders", + type: { + name: "Composite", + className: "CacheUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getEntityTagHeaders", + type: { + name: "Composite", + className: "CertificateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getHeaders", + type: { + name: "Composite", + className: "CertificateGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_createOrUpdateHeaders", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_refreshSecretHeaders", + type: { + name: "Composite", + className: "CertificateRefreshSecretHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + 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 ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", + type: { + name: "Composite", + className: "ContentTypeGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentTypeCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -13727,120 +17646,169 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } }; -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", type: { name: "Composite", - className: "UserContractProperties", + className: "ContentItemGetEntityTagHeaders", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + } + } + } +}; + +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", + type: { + name: "Composite", + className: "ContentItemGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - email: { - serializedName: "email", - xmlName: "email", + } + } + } +}; + +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentItemCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", - type: { - name: "DateTime" - } - }, - groups: { - serializedName: "groups", - readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", + } + } + } +}; + +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", + type: { + name: "Composite", + className: "DeletedServicesPurgeHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } + name: "String" } } } } }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - required: true, - xmlName: "email", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - required: true, - xmlName: "firstName", + } + } + } +}; + +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceBackupHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } - }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + } + } + } +}; + +export const ApiManagementServiceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_updateHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } - }, - password: { - serializedName: "password", - xmlName: "password", + } + } + } +}; + +export const ApiManagementServiceDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_deleteHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } - }, - appType: { - serializedName: "appType", - xmlName: "appType", + } + } + } +}; + +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_migrateToStv2Headers", + type: { + name: "Composite", + className: "ApiManagementServiceMigrateToStv2Headers", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } - }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + } + } + } +}; + +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -13849,49 +17817,66 @@ export const UserCreateParameterProperties: coreClient.CompositeMapper = { } }; -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", +export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "UserUpdateParametersProperties", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - password: { - serializedName: "password", - xmlName: "password", + } + } + } +}; + +export const DiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getHeaders", + type: { + name: "Composite", + className: "DiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - xmlName: "firstName", + } + } + } +}; + +export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_createOrUpdateHeaders", + type: { + name: "Composite", + className: "DiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - xmlName: "lastName", + } + } + } +}; + +export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_updateHeaders", + type: { + name: "Composite", + className: "DiagnosticUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -13900,30 +17885,15 @@ export const UserUpdateParametersProperties: coreClient.CompositeMapper = { } }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "DocumentationGetEntityTagHeaders", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -13932,31 +17902,32 @@ export const IdentityProviderContractProperties: coreClient.CompositeMapper = { } }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + className: "DocumentationGetHeaders", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + } + } + } +}; + +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "DocumentationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -13965,29 +17936,32 @@ export const IdentityProviderCreateContractProperties: coreClient.CompositeMappe } }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "DocumentationUpdateHeaders", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - xmlName: "clientId", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + } + } + } +}; + +export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getEntityTagHeaders", + type: { + name: "Composite", + className: "EmailTemplateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -13996,164 +17970,168 @@ export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { } }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getHeaders", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "EmailTemplateGetHeaders", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + } + } + } +}; + +export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_updateHeaders", + type: { + name: "Composite", + className: "EmailTemplateUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", - type: { - name: "Composite", - className: "KeyVaultContractProperties" - } } } } }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + className: "GatewayGetEntityTagHeaders", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + } + } + } +}; + +export const GatewayGetHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getHeaders", + type: { + name: "Composite", + className: "GatewayGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } } } } }; -export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameterProperties", +export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueUpdateParameterProperties", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 - }, - serializedName: "value", - xmlName: "value", + } + } + } +}; + +export const GatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_updateHeaders", + type: { + name: "Composite", + className: "GatewayUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + } + } + } +}; + +export const GatewayListKeysHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_listKeysHeaders", + type: { + name: "Composite", + className: "GatewayListKeysHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" + name: "String" } } } } }; -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", +export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", type: { name: "Composite", - className: "ApiCreateOrUpdateProperties", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - format: { - serializedName: "format", - xmlName: "format", + } + } + } +}; + +export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_getHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } - }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", - type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } - }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + } + } + } +}; + +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -14162,11 +18140,11 @@ export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { } }; -export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getEntityTagHeaders", +export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayApi_getEntityTagHeaders", type: { name: "Composite", - className: "ApiGetEntityTagHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14179,11 +18157,11 @@ export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiGetHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getHeaders", +export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", type: { name: "Composite", - className: "ApiGetHeaders", + className: "GatewayCertificateAuthorityGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14196,11 +18174,11 @@ export const ApiGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_createOrUpdateHeaders", +export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_getHeaders", type: { name: "Composite", - className: "ApiCreateOrUpdateHeaders", + className: "GatewayCertificateAuthorityGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14213,11 +18191,11 @@ export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_updateHeaders", +export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiUpdateHeaders", + className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14230,11 +18208,11 @@ export const ApiUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getEntityTagHeaders", +export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getEntityTagHeaders", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14247,11 +18225,11 @@ export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getHeaders", +export const GroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getHeaders", type: { name: "Composite", - className: "ApiReleaseGetHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14264,11 +18242,11 @@ export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_createOrUpdateHeaders", +export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseCreateOrUpdateHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14281,11 +18259,11 @@ export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_updateHeaders", +export const GroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_updateHeaders", type: { name: "Composite", - className: "ApiReleaseUpdateHeaders", + className: "GroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14298,11 +18276,11 @@ export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getEntityTagHeaders", +export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14315,11 +18293,11 @@ export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getHeaders", +export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getHeaders", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14332,11 +18310,11 @@ export const ApiOperationGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_createOrUpdateHeaders", +export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationCreateOrUpdateHeaders", + className: "IdentityProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14349,11 +18327,11 @@ export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_updateHeaders", +export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_updateHeaders", type: { name: "Composite", - className: "ApiOperationUpdateHeaders", + className: "IdentityProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14366,11 +18344,11 @@ export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getEntityTagHeaders", +export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_listSecretsHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "IdentityProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14383,11 +18361,11 @@ export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getHeaders", +export const IssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "Issue_getHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14400,11 +18378,11 @@ export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_createOrUpdateHeaders", +export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationPolicyCreateOrUpdateHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14417,11 +18395,11 @@ export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByOperationHeaders", +export const LoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getHeaders", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14434,11 +18412,11 @@ export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByOperationHeaders", +export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14451,11 +18429,11 @@ export const TagGetByOperationHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByApiHeaders", +export const LoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_updateHeaders", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "LoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14468,11 +18446,11 @@ export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByApiHeaders", +export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14485,11 +18463,11 @@ export const TagGetByApiHeaders: coreClient.CompositeMapper = { } }; -export const TagAssignToApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_assignToApiHeaders", +export const NamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getHeaders", type: { name: "Composite", - className: "TagAssignToApiHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14502,11 +18480,11 @@ export const TagAssignToApiHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByProductHeaders", +export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "NamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14519,11 +18497,11 @@ export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByProductHeaders", +export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_updateHeaders", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14536,11 +18514,11 @@ export const TagGetByProductHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateHeaders", +export const NamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_listValueHeaders", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "NamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14553,11 +18531,11 @@ export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { } }; -export const TagGetHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getHeaders", +export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "TagGetHeaders", + className: "NamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14570,11 +18548,11 @@ export const TagGetHeaders: coreClient.CompositeMapper = { } }; -export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_createOrUpdateHeaders", +export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getEntityTagHeaders", type: { name: "Composite", - className: "TagCreateOrUpdateHeaders", + className: "OpenIdConnectProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14587,11 +18565,11 @@ export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14604,11 +18582,11 @@ export const TagUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getEntityTagHeaders", +export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14621,11 +18599,11 @@ export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getHeaders", +export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_updateHeaders", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "OpenIdConnectProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14638,11 +18616,11 @@ export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_createOrUpdateHeaders", +export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_listSecretsHeaders", type: { name: "Composite", - className: "ApiPolicyCreateOrUpdateHeaders", + className: "OpenIdConnectProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14655,11 +18633,11 @@ export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getEntityTagHeaders", +export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getEntityTagHeaders", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14672,11 +18650,11 @@ export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getHeaders", +export const PolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getHeaders", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "PolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14689,11 +18667,11 @@ export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_createOrUpdateHeaders", +export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiSchemaCreateOrUpdateHeaders", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14706,11 +18684,11 @@ export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getEntityTagHeaders", +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "PolicyFragmentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14722,12 +18700,12 @@ export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { } } }; - -export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getHeaders", + +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "PolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14740,11 +18718,11 @@ export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_createOrUpdateHeaders", +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiDiagnosticCreateOrUpdateHeaders", + className: "PolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14757,11 +18735,11 @@ export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_updateHeaders", +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticUpdateHeaders", + className: "PortalConfigGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14774,11 +18752,11 @@ export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getEntityTagHeaders", +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "PortalConfigGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14791,11 +18769,11 @@ export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getHeaders", +export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "PortalRevisionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14808,11 +18786,11 @@ export const ApiIssueGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_createOrUpdateHeaders", +export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getHeaders", type: { name: "Composite", - className: "ApiIssueCreateOrUpdateHeaders", + className: "PortalRevisionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14825,11 +18803,11 @@ export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_updateHeaders", +export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueUpdateHeaders", + className: "PortalRevisionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14842,11 +18820,11 @@ export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getEntityTagHeaders", +export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_updateHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "PortalRevisionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14859,11 +18837,11 @@ export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getHeaders", +export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "SignInSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14876,11 +18854,11 @@ export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_createOrUpdateHeaders", +export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getHeaders", type: { name: "Composite", - className: "ApiIssueCommentCreateOrUpdateHeaders", + className: "SignInSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14893,11 +18871,11 @@ export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getEntityTagHeaders", +export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "SignUpSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14910,11 +18888,11 @@ export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getHeaders", +export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "SignUpSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14927,11 +18905,11 @@ export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_createOrUpdateHeaders", +export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentCreateOrUpdateHeaders", + className: "DelegationSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14944,11 +18922,11 @@ export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getEntityTagHeaders", +export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetEntityTagHeaders", + className: "DelegationSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14961,15 +18939,15 @@ export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getHeaders", +export const PrivateEndpointConnectionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetHeaders", + className: "PrivateEndpointConnectionCreateOrUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -14978,15 +18956,15 @@ export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_createOrUpdateHeaders", +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection_deleteHeaders", type: { name: "Composite", - className: "ApiTagDescriptionCreateOrUpdateHeaders", + className: "PrivateEndpointConnectionDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -14995,11 +18973,11 @@ export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getEntityTagHeaders", +export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", + className: "ProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15012,11 +18990,11 @@ export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getHeaders", +export const ProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getHeaders", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "ProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15029,11 +19007,11 @@ export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_createOrUpdateHeaders", +export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiVersionSetCreateOrUpdateHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15046,11 +19024,11 @@ export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_updateHeaders", +export const ProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_updateHeaders", type: { name: "Composite", - className: "ApiVersionSetUpdateHeaders", + className: "ProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15063,11 +19041,11 @@ export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getEntityTagHeaders", +export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "ProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15080,11 +19058,11 @@ export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper } }; -export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getHeaders", +export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getHeaders", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "ProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15097,11 +19075,11 @@ export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_createOrUpdateHeaders", +export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15114,11 +19092,11 @@ export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMappe } }; -export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_updateHeaders", +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "ProductWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15131,11 +19109,11 @@ export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "ProductWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15148,11 +19126,11 @@ export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = } }; -export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getEntityTagHeaders", +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "ProductWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15165,11 +19143,11 @@ export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const BackendGetHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getHeaders", +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", type: { name: "Composite", - className: "BackendGetHeaders", + className: "ProductWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15182,11 +19160,11 @@ export const BackendGetHeaders: coreClient.CompositeMapper = { } }; -export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_createOrUpdateHeaders", +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "ProductWikisListHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15199,11 +19177,11 @@ export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BackendUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_updateHeaders", +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", type: { name: "Composite", - className: "BackendUpdateHeaders", + className: "ProductWikisListNextHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15216,11 +19194,11 @@ export const BackendUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getEntityTagHeaders", +export const ProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductApiLink_getHeaders", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "ProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15233,11 +19211,11 @@ export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const CacheGetHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getHeaders", +export const ProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductGroupLink_getHeaders", type: { name: "Composite", - className: "CacheGetHeaders", + className: "ProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15250,11 +19228,11 @@ export const CacheGetHeaders: coreClient.CompositeMapper = { } }; -export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_createOrUpdateHeaders", +export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "GlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15267,11 +19245,11 @@ export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CacheUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_updateHeaders", +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", type: { name: "Composite", - className: "CacheUpdateHeaders", + className: "GlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15284,11 +19262,11 @@ export const CacheUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getEntityTagHeaders", +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "GlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15301,11 +19279,11 @@ export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const CertificateGetHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getHeaders", +export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantSettings_getHeaders", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "TenantSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15318,11 +19296,11 @@ export const CertificateGetHeaders: coreClient.CompositeMapper = { } }; -export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_createOrUpdateHeaders", +export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getEntityTagHeaders", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15335,11 +19313,11 @@ export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_refreshSecretHeaders", +export const SubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getHeaders", type: { name: "Composite", - className: "CertificateRefreshSecretHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15352,11 +19330,11 @@ export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_createOrUpdateHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15369,11 +19347,11 @@ export const ContentTypeGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_updateHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "SubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15386,11 +19364,11 @@ export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_listSecretsHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "SubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15403,11 +19381,11 @@ export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const TagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagApiLink_getHeaders", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "TagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15420,11 +19398,11 @@ export const ContentItemGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const TagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagOperationLink_getHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "TagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15437,11 +19415,11 @@ export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getEntityTagHeaders", +export const TagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagProductLink_getHeaders", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "TagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15454,11 +19432,11 @@ export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getHeaders", +export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getEntityTagHeaders", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15471,11 +19449,11 @@ export const DiagnosticGetHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_createOrUpdateHeaders", +export const TenantAccessGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getHeaders", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "TenantAccessGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15488,11 +19466,11 @@ export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_updateHeaders", +export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_createHeaders", type: { name: "Composite", - className: "DiagnosticUpdateHeaders", + className: "TenantAccessCreateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15505,11 +19483,11 @@ export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getEntityTagHeaders", +export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_updateHeaders", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "TenantAccessUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15522,11 +19500,11 @@ export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getHeaders", +export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_listSecretsHeaders", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "TenantAccessListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15539,15 +19517,15 @@ export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_updateHeaders", +export const TenantConfigurationDeployHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_deployHeaders", type: { name: "Composite", - className: "EmailTemplateUpdateHeaders", + className: "TenantConfigurationDeployHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15556,15 +19534,15 @@ export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getEntityTagHeaders", +export const TenantConfigurationSaveHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_saveHeaders", type: { name: "Composite", - className: "GatewayGetEntityTagHeaders", + className: "TenantConfigurationSaveHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15573,15 +19551,15 @@ export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GatewayGetHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getHeaders", +export const TenantConfigurationValidateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_validateHeaders", type: { name: "Composite", - className: "GatewayGetHeaders", + className: "TenantConfigurationValidateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15590,11 +19568,11 @@ export const GatewayGetHeaders: coreClient.CompositeMapper = { } }; -export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_createOrUpdateHeaders", +export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "User_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayCreateOrUpdateHeaders", + className: "UserGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15607,11 +19585,11 @@ export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_updateHeaders", +export const UserGetHeaders: coreClient.CompositeMapper = { + serializedName: "User_getHeaders", type: { name: "Composite", - className: "GatewayUpdateHeaders", + className: "UserGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15624,11 +19602,11 @@ export const GatewayUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayListKeysHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_listKeysHeaders", +export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayListKeysHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15641,11 +19619,11 @@ export const GatewayListKeysHeaders: coreClient.CompositeMapper = { } }; -export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", +export const UserUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_updateHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetEntityTagHeaders", + className: "UserUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15658,11 +19636,11 @@ export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.Composi } }; -export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getHeaders", +export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "UserSubscription_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetHeaders", + className: "UserSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15675,11 +19653,11 @@ export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper } }; -export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", +export const WorkspaceGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + className: "WorkspaceGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15692,11 +19670,11 @@ export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.Compo } }; -export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayApi_getEntityTagHeaders", +export const WorkspaceGetHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getHeaders", type: { name: "Composite", - className: "GatewayApiGetEntityTagHeaders", + className: "WorkspaceGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15709,11 +19687,11 @@ export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", +export const WorkspaceCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetEntityTagHeaders", + className: "WorkspaceCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15726,11 +19704,11 @@ export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.Composit } }; -export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getHeaders", +export const WorkspaceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_updateHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetHeaders", + className: "WorkspaceUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15743,11 +19721,11 @@ export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = } }; -export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", +export const WorkspacePolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + className: "WorkspacePolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15760,11 +19738,11 @@ export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.Compos } }; -export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getEntityTagHeaders", +export const WorkspacePolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getHeaders", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "WorkspacePolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15777,11 +19755,11 @@ export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GroupGetHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getHeaders", +export const WorkspacePolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "GroupGetHeaders", + className: "WorkspacePolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15794,11 +19772,11 @@ export const GroupGetHeaders: coreClient.CompositeMapper = { } }; -export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_createOrUpdateHeaders", +export const WorkspaceNamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "GroupCreateOrUpdateHeaders", + className: "WorkspaceNamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15811,11 +19789,11 @@ export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GroupUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_updateHeaders", +export const WorkspaceNamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getHeaders", type: { name: "Composite", - className: "GroupUpdateHeaders", + className: "WorkspaceNamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15828,11 +19806,11 @@ export const GroupUpdateHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getEntityTagHeaders", +export const WorkspaceNamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "WorkspaceNamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15845,11 +19823,11 @@ export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getHeaders", +export const WorkspaceNamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_updateHeaders", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "WorkspaceNamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15862,11 +19840,11 @@ export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_createOrUpdateHeaders", +export const WorkspaceNamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_listValueHeaders", type: { name: "Composite", - className: "IdentityProviderCreateOrUpdateHeaders", + className: "WorkspaceNamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15879,11 +19857,11 @@ export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_updateHeaders", +export const WorkspaceNamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateHeaders", + className: "WorkspaceNamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15896,11 +19874,11 @@ export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_listSecretsHeaders", +export const WorkspaceGlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "IdentityProviderListSecretsHeaders", + className: "WorkspaceGlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15913,11 +19891,11 @@ export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const IssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "Issue_getHeaders", +export const WorkspaceGlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getHeaders", type: { name: "Composite", - className: "IssueGetHeaders", + className: "WorkspaceGlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15930,11 +19908,11 @@ export const IssueGetHeaders: coreClient.CompositeMapper = { } }; -export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getEntityTagHeaders", +export const WorkspaceGlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "WorkspaceGlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15947,11 +19925,11 @@ export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const LoggerGetHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getHeaders", +export const WorkspacePolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "WorkspacePolicyFragmentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15964,11 +19942,11 @@ export const LoggerGetHeaders: coreClient.CompositeMapper = { } }; -export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_createOrUpdateHeaders", +export const WorkspacePolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getHeaders", type: { name: "Composite", - className: "LoggerCreateOrUpdateHeaders", + className: "WorkspacePolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15981,11 +19959,11 @@ export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const LoggerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_updateHeaders", +export const WorkspacePolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "LoggerUpdateHeaders", + className: "WorkspacePolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15998,11 +19976,11 @@ export const LoggerUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getEntityTagHeaders", +export const WorkspaceGroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueGetEntityTagHeaders", + className: "WorkspaceGroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16015,11 +19993,11 @@ export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueGetHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getHeaders", +export const WorkspaceGroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getHeaders", type: { name: "Composite", - className: "NamedValueGetHeaders", + className: "WorkspaceGroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16032,11 +20010,11 @@ export const NamedValueGetHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_createOrUpdateHeaders", +export const WorkspaceGroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueCreateOrUpdateHeaders", + className: "WorkspaceGroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16049,11 +20027,11 @@ export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_updateHeaders", +export const WorkspaceGroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_updateHeaders", type: { name: "Composite", - className: "NamedValueUpdateHeaders", + className: "WorkspaceGroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16066,11 +20044,11 @@ export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueListValueHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_listValueHeaders", +export const WorkspaceSubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueListValueHeaders", + className: "WorkspaceSubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16083,11 +20061,11 @@ export const NamedValueListValueHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_refreshSecretHeaders", +export const WorkspaceSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getHeaders", type: { name: "Composite", - className: "NamedValueRefreshSecretHeaders", + className: "WorkspaceSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16100,11 +20078,11 @@ export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getEntityTagHeaders", +export const WorkspaceSubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_createOrUpdateHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "WorkspaceSubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16117,11 +20095,11 @@ export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMappe } }; -export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getHeaders", +export const WorkspaceSubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_updateHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "WorkspaceSubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16134,11 +20112,11 @@ export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", +export const WorkspaceSubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_listSecretsHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderCreateOrUpdateHeaders", + className: "WorkspaceSubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16151,11 +20129,11 @@ export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMap } }; -export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_updateHeaders", +export const WorkspaceApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getEntityTagHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderUpdateHeaders", + className: "WorkspaceApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16168,11 +20146,11 @@ export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_listSecretsHeaders", +export const WorkspaceApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderListSecretsHeaders", + className: "WorkspaceApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16185,11 +20163,11 @@ export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper } }; -export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getEntityTagHeaders", +export const WorkspaceApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_createOrUpdateHeaders", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "WorkspaceApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16202,11 +20180,11 @@ export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getHeaders", +export const WorkspaceApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_updateHeaders", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "WorkspaceApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16219,11 +20197,11 @@ export const PolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_createOrUpdateHeaders", +export const WorkspaceApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getEntityTagHeaders", type: { name: "Composite", - className: "PolicyCreateOrUpdateHeaders", + className: "WorkspaceApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16236,11 +20214,11 @@ export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getEntityTagHeaders", +export const WorkspaceApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getHeaders", type: { name: "Composite", - className: "PortalRevisionGetEntityTagHeaders", + className: "WorkspaceApiGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16253,11 +20231,11 @@ export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getHeaders", +export const WorkspaceApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_createOrUpdateHeaders", type: { name: "Composite", - className: "PortalRevisionGetHeaders", + className: "WorkspaceApiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16270,11 +20248,11 @@ export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_createOrUpdateHeaders", +export const WorkspaceApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_updateHeaders", type: { name: "Composite", - className: "PortalRevisionCreateOrUpdateHeaders", + className: "WorkspaceApiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16287,11 +20265,11 @@ export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_updateHeaders", +export const WorkspaceApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getEntityTagHeaders", type: { name: "Composite", - className: "PortalRevisionUpdateHeaders", + className: "WorkspaceApiReleaseGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16304,11 +20282,11 @@ export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getEntityTagHeaders", +export const WorkspaceApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getHeaders", type: { name: "Composite", - className: "SignInSettingsGetEntityTagHeaders", + className: "WorkspaceApiReleaseGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16321,11 +20299,11 @@ export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getHeaders", +export const WorkspaceApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_createOrUpdateHeaders", type: { name: "Composite", - className: "SignInSettingsGetHeaders", + className: "WorkspaceApiReleaseCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16338,11 +20316,11 @@ export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getEntityTagHeaders", +export const WorkspaceApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_updateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetEntityTagHeaders", + className: "WorkspaceApiReleaseUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16355,11 +20333,11 @@ export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getHeaders", +export const WorkspaceApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getEntityTagHeaders", type: { name: "Composite", - className: "SignUpSettingsGetHeaders", + className: "WorkspaceApiOperationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16372,11 +20350,11 @@ export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getEntityTagHeaders", +export const WorkspaceApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getHeaders", type: { name: "Composite", - className: "DelegationSettingsGetEntityTagHeaders", + className: "WorkspaceApiOperationGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16389,11 +20367,11 @@ export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getHeaders", +export const WorkspaceApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_createOrUpdateHeaders", type: { name: "Composite", - className: "DelegationSettingsGetHeaders", + className: "WorkspaceApiOperationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16406,11 +20384,11 @@ export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getEntityTagHeaders", +export const WorkspaceApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_updateHeaders", type: { name: "Composite", - className: "ProductGetEntityTagHeaders", + className: "WorkspaceApiOperationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16423,11 +20401,11 @@ export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ProductGetHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getHeaders", +export const WorkspaceApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ProductGetHeaders", + className: "WorkspaceApiOperationPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16440,11 +20418,11 @@ export const ProductGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_createOrUpdateHeaders", +export const WorkspaceApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_getHeaders", type: { name: "Composite", - className: "ProductCreateOrUpdateHeaders", + className: "WorkspaceApiOperationPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16457,11 +20435,11 @@ export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_updateHeaders", +export const WorkspaceApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductUpdateHeaders", + className: "WorkspaceApiOperationPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16474,11 +20452,11 @@ export const ProductUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getEntityTagHeaders", +export const WorkspaceApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ProductPolicyGetEntityTagHeaders", + className: "WorkspaceApiPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16491,11 +20469,11 @@ export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getHeaders", +export const WorkspaceApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getHeaders", type: { name: "Composite", - className: "ProductPolicyGetHeaders", + className: "WorkspaceApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16508,11 +20486,11 @@ export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_createOrUpdateHeaders", +export const WorkspaceApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductPolicyCreateOrUpdateHeaders", + className: "WorkspaceApiPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16525,11 +20503,11 @@ export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getEntityTagHeaders", +export const WorkspaceApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getEntityTagHeaders", type: { name: "Composite", - className: "GlobalSchemaGetEntityTagHeaders", + className: "WorkspaceApiSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16542,11 +20520,11 @@ export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getHeaders", +export const WorkspaceApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getHeaders", type: { name: "Composite", - className: "GlobalSchemaGetHeaders", + className: "WorkspaceApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16559,11 +20537,11 @@ export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_createOrUpdateHeaders", +export const WorkspaceApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "GlobalSchemaCreateOrUpdateHeaders", + className: "WorkspaceApiSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16576,11 +20554,11 @@ export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantSettings_getHeaders", +export const WorkspaceProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getEntityTagHeaders", type: { name: "Composite", - className: "TenantSettingsGetHeaders", + className: "WorkspaceProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16593,11 +20571,11 @@ export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getEntityTagHeaders", +export const WorkspaceProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getHeaders", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "WorkspaceProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16610,11 +20588,11 @@ export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getHeaders", +export const WorkspaceProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_createOrUpdateHeaders", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "WorkspaceProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16627,11 +20605,11 @@ export const SubscriptionGetHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_createOrUpdateHeaders", +export const WorkspaceProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_updateHeaders", type: { name: "Composite", - className: "SubscriptionCreateOrUpdateHeaders", + className: "WorkspaceProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16644,11 +20622,11 @@ export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_updateHeaders", +export const WorkspaceProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductApiLink_getHeaders", type: { name: "Composite", - className: "SubscriptionUpdateHeaders", + className: "WorkspaceProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16661,11 +20639,11 @@ export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_listSecretsHeaders", +export const WorkspaceProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductGroupLink_getHeaders", type: { name: "Composite", - className: "SubscriptionListSecretsHeaders", + className: "WorkspaceProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16678,11 +20656,11 @@ export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getEntityTagHeaders", +export const WorkspaceProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "TenantAccessGetEntityTagHeaders", + className: "WorkspaceProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16695,11 +20673,11 @@ export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getHeaders", +export const WorkspaceProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getHeaders", type: { name: "Composite", - className: "TenantAccessGetHeaders", + className: "WorkspaceProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16712,11 +20690,11 @@ export const TenantAccessGetHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_createHeaders", +export const WorkspaceProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "TenantAccessCreateHeaders", + className: "WorkspaceProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16729,11 +20707,11 @@ export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_updateHeaders", +export const WorkspaceTagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getEntityStateHeaders", type: { name: "Composite", - className: "TenantAccessUpdateHeaders", + className: "WorkspaceTagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16746,11 +20724,11 @@ export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_listSecretsHeaders", +export const WorkspaceTagGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getHeaders", type: { name: "Composite", - className: "TenantAccessListSecretsHeaders", + className: "WorkspaceTagGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16763,11 +20741,11 @@ export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "User_getEntityTagHeaders", +export const WorkspaceTagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_createOrUpdateHeaders", type: { name: "Composite", - className: "UserGetEntityTagHeaders", + className: "WorkspaceTagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16780,11 +20758,11 @@ export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const UserGetHeaders: coreClient.CompositeMapper = { - serializedName: "User_getHeaders", +export const WorkspaceTagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_updateHeaders", type: { name: "Composite", - className: "UserGetHeaders", + className: "WorkspaceTagUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16797,11 +20775,11 @@ export const UserGetHeaders: coreClient.CompositeMapper = { } }; -export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_createOrUpdateHeaders", +export const WorkspaceTagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagApiLink_getHeaders", type: { name: "Composite", - className: "UserCreateOrUpdateHeaders", + className: "WorkspaceTagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16814,11 +20792,11 @@ export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const UserUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_updateHeaders", +export const WorkspaceTagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagOperationLink_getHeaders", type: { name: "Composite", - className: "UserUpdateHeaders", + className: "WorkspaceTagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16831,11 +20809,11 @@ export const UserUpdateHeaders: coreClient.CompositeMapper = { } }; -export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "UserSubscription_getHeaders", +export const WorkspaceTagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagProductLink_getHeaders", type: { name: "Composite", - className: "UserSubscriptionGetHeaders", + className: "WorkspaceTagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 601573208ccf..8d71e3fe9eeb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -19,6 +19,8 @@ import { OperationUpdateContract as OperationUpdateContractMapper, PolicyContract as PolicyContractMapper, TagCreateUpdateParameters as TagCreateUpdateParametersMapper, + ResolverContract as ResolverContractMapper, + ResolverUpdateContract as ResolverUpdateContractMapper, SchemaContract as SchemaContractMapper, DiagnosticContract as DiagnosticContractMapper, IssueContract as IssueContractMapper, @@ -26,8 +28,15 @@ import { IssueCommentContract as IssueCommentContractMapper, IssueAttachmentContract as IssueAttachmentContractMapper, TagDescriptionCreateParameters as TagDescriptionCreateParametersMapper, + WikiContract as WikiContractMapper, + WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, + AuthorizationProviderContract as AuthorizationProviderContractMapper, + AuthorizationContract as AuthorizationContractMapper, + AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, + AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, + AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, AuthorizationServerContract as AuthorizationServerContractMapper, AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, BackendContract as BackendContractMapper, @@ -44,6 +53,8 @@ import { ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, ApiManagementServiceCheckNameAvailabilityParameters as ApiManagementServiceCheckNameAvailabilityParametersMapper, ApiManagementServiceApplyNetworkConfigurationParameters as ApiManagementServiceApplyNetworkConfigurationParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper, EmailTemplateUpdateParameters as EmailTemplateUpdateParametersMapper, GatewayContract as GatewayContractMapper, GatewayKeyRegenerationRequestContract as GatewayKeyRegenerationRequestContractMapper, @@ -61,6 +72,8 @@ import { NamedValueUpdateParameters as NamedValueUpdateParametersMapper, OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, + PolicyFragmentContract as PolicyFragmentContractMapper, + PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, PortalSignupSettings as PortalSignupSettingsMapper, @@ -68,17 +81,23 @@ 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, SaveConfigurationParameter as SaveConfigurationParameterMapper, UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, - UserTokenParameters as UserTokenParametersMapper + UserTokenParameters as UserTokenParametersMapper, + WorkspaceContract as WorkspaceContractMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -109,6 +128,10 @@ export const $host: OperationURLParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", @@ -199,7 +222,7 @@ export const expandApiVersionSet: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01", + defaultValue: "2022-09-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -211,6 +234,9 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, xmlName: "subscriptionId", @@ -459,6 +485,32 @@ export const parameters6: OperationParameter = { mapper: TagCreateUpdateParametersMapper }; +export const resolverId: OperationURLParameter = { + parameterPath: "resolverId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "resolverId", + required: true, + xmlName: "resolverId", + type: { + name: "String" + } + } +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverContractMapper +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverUpdateContractMapper +}; + export const accept1: OperationParameter = { parameterPath: "accept", mapper: { @@ -488,7 +540,7 @@ export const schemaId: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: SchemaContractMapper }; @@ -521,7 +573,7 @@ export const diagnosticId: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: DiagnosticContractMapper }; @@ -554,12 +606,12 @@ export const issueId: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: IssueContractMapper }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: IssueUpdateContractMapper }; @@ -581,7 +633,7 @@ export const commentId: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: IssueCommentContractMapper }; @@ -603,7 +655,7 @@ export const attachmentId: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: IssueAttachmentContractMapper }; @@ -625,7 +677,7 @@ export const tagDescriptionId: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: TagDescriptionCreateParametersMapper }; @@ -641,6 +693,16 @@ export const includeNotTaggedOperations: OperationQueryParameter = { } }; +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: WikiContractMapper +}; + +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: WikiUpdateContractMapper +}; + export const format1: OperationQueryParameter = { parameterPath: "format", mapper: { @@ -682,16 +744,92 @@ export const versionSetId: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetContractMapper }; -export const parameters15: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetUpdateParametersMapper }; +export const authorizationProviderId: OperationURLParameter = { + parameterPath: "authorizationProviderId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationProviderId", + required: true, + xmlName: "authorizationProviderId", + type: { + name: "String" + } + } +}; + +export const parameters20: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationProviderContractMapper +}; + +export const authorizationId: OperationURLParameter = { + parameterPath: "authorizationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationId", + required: true, + xmlName: "authorizationId", + type: { + name: "String" + } + } +}; + +export const parameters21: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationContractMapper +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationConfirmConsentCodeRequestContractMapper +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationLoginRequestContractMapper +}; + +export const authorizationAccessPolicyId: OperationURLParameter = { + parameterPath: "authorizationAccessPolicyId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationAccessPolicyId", + required: true, + xmlName: "authorizationAccessPolicyId", + type: { + name: "String" + } + } +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationAccessPolicyContractMapper +}; + export const authsid: OperationURLParameter = { parameterPath: "authsid", mapper: { @@ -709,12 +847,12 @@ export const authsid: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerContractMapper }; -export const parameters17: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerUpdateContractMapper }; @@ -735,17 +873,17 @@ export const backendId: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: BackendContractMapper }; -export const parameters19: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendUpdateParametersMapper }; -export const parameters20: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: ["options", "parameters"], mapper: BackendReconnectContractMapper }; @@ -767,12 +905,12 @@ export const cacheId: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: CacheContractMapper }; -export const parameters22: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: CacheUpdateParametersMapper }; @@ -805,7 +943,7 @@ export const certificateId: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: CertificateCreateOrUpdateParametersMapper }; @@ -831,7 +969,7 @@ export const contentTypeId: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ContentTypeContractMapper }; @@ -852,7 +990,7 @@ export const contentItemId: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ContentItemContractMapper }; @@ -869,31 +1007,58 @@ export const location: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceBackupRestoreParametersMapper }; -export const parameters27: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceResourceMapper }; -export const parameters28: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceUpdateParametersMapper }; -export const parameters29: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper }; -export const parameters30: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: ["options", "parameters"], 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 parameters40: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper +}; + +export const parameters41: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper +}; + export const templateName: OperationURLParameter = { parameterPath: "templateName", mapper: { @@ -906,7 +1071,7 @@ export const templateName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: EmailTemplateUpdateParametersMapper }; @@ -927,17 +1092,17 @@ export const gatewayId: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: GatewayContractMapper }; -export const parameters33: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: GatewayKeyRegenerationRequestContractMapper }; -export const parameters34: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: GatewayTokenRequestContractMapper }; @@ -958,17 +1123,17 @@ export const hcId: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: GatewayHostnameConfigurationContractMapper }; -export const parameters36: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: ["options", "parameters"], mapper: AssociationContractMapper }; -export const parameters37: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: GatewayCertificateAuthorityContractMapper }; @@ -989,12 +1154,12 @@ export const groupId: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: GroupCreateParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: GroupUpdateParametersMapper }; @@ -1027,12 +1192,12 @@ export const identityProviderName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderCreateContractMapper }; -export const parameters41: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderUpdateParametersMapper }; @@ -1053,12 +1218,12 @@ export const loggerId: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: LoggerContractMapper }; -export const parameters43: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: LoggerUpdateContractMapper }; @@ -1079,12 +1244,12 @@ export const namedValueId: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: NamedValueCreateContractMapper }; -export const parameters45: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: NamedValueUpdateParametersMapper }; @@ -1144,12 +1309,12 @@ export const opid: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderContractMapper }; -export const parameters47: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderUpdateContractMapper }; @@ -1166,6 +1331,71 @@ export const scope1: OperationQueryParameter = { } }; +export const orderby: OperationQueryParameter = { + parameterPath: ["options", "orderby"], + mapper: { + serializedName: "$orderby", + xmlName: "$orderby", + type: { + name: "String" + } + } +}; + +export const id: OperationURLParameter = { + parameterPath: "id", + mapper: { + constraints: { + Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "id", + required: true, + xmlName: "id", + type: { + name: "String" + } + } +}; + +export const format2: OperationQueryParameter = { + parameterPath: ["options", "format"], + mapper: { + serializedName: "format", + xmlName: "format", + type: { + name: "String" + } + } +}; + +export const parameters59: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyFragmentContractMapper +}; + +export const portalConfigId: OperationURLParameter = { + parameterPath: "portalConfigId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "portalConfigId", + required: true, + xmlName: "portalConfigId", + type: { + name: "String" + } + } +}; + +export const parameters60: OperationParameter = { + parameterPath: "parameters", + mapper: PortalConfigContractMapper +}; + export const portalRevisionId: OperationURLParameter = { parameterPath: "portalRevisionId", mapper: { @@ -1182,22 +1412,22 @@ export const portalRevisionId: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PortalRevisionContractMapper }; -export const parameters49: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PortalSigninSettingsMapper }; -export const parameters50: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: PortalSignupSettingsMapper }; -export const parameters51: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PortalDelegationSettingsMapper }; @@ -1242,12 +1472,12 @@ export const expandGroups: OperationQueryParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: ProductContractMapper }; -export const parameters53: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: ProductUpdateParametersMapper }; @@ -1274,6 +1504,50 @@ export const includeNotTaggedProducts: OperationQueryParameter = { } }; +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 parameters67: 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 parameters68: OperationParameter = { + parameterPath: "parameters", + mapper: ProductGroupLinkContractMapper +}; + export const quotaCounterKey: OperationURLParameter = { parameterPath: "quotaCounterKey", mapper: { @@ -1286,7 +1560,7 @@ export const quotaCounterKey: OperationURLParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: QuotaCounterValueUpdateContractMapper }; @@ -1315,17 +1589,6 @@ export const filter1: OperationQueryParameter = { } }; -export const orderby: OperationQueryParameter = { - parameterPath: ["options", "orderby"], - mapper: { - serializedName: "$orderby", - xmlName: "$orderby", - type: { - name: "String" - } - } -}; - export const interval: OperationQueryParameter = { parameterPath: "interval", mapper: { @@ -1338,7 +1601,7 @@ export const interval: OperationQueryParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: GlobalSchemaContractMapper }; @@ -1371,7 +1634,7 @@ export const sid: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionCreateParametersMapper }; @@ -1398,11 +1661,60 @@ export const appType: OperationQueryParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionUpdateParametersMapper }; +export const parameters73: 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 parameters74: 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 parameters75: OperationParameter = { + parameterPath: "parameters", + mapper: TagProductLinkContractMapper +}; + export const accessName: OperationURLParameter = { parameterPath: "accessName", mapper: { @@ -1415,17 +1727,17 @@ export const accessName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationCreateParametersMapper }; -export const parameters59: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationUpdateParametersMapper }; -export const parameters60: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: DeployConfigurationParametersMapper }; @@ -1442,22 +1754,55 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: SaveConfigurationParameterMapper }; -export const parameters62: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: UserCreateParametersMapper }; -export const parameters63: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", mapper: UserUpdateParametersMapper }; -export const parameters64: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: "parameters", mapper: UserTokenParametersMapper }; + +export const workspaceId: OperationURLParameter = { + parameterPath: "workspaceId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "workspaceId", + required: true, + xmlName: "workspaceId", + type: { + name: "String" + } + } +}; + +export const parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceContractMapper +}; + +export const isKeyVaultRefreshFailed1: OperationQueryParameter = { + parameterPath: ["options", "isKeyVaultRefreshFailed"], + mapper: { + serializedName: "isKeyVaultRefreshFailed", + xmlName: "isKeyVaultRefreshFailed", + type: { + name: "String" + } + } +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c881a9a1936a..c1635689c9a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiContract, ApiListByServiceNextOptionalParams, @@ -54,7 +58,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -138,7 +142,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -218,7 +222,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -235,7 +239,7 @@ export class ApiImpl implements Api { /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -255,7 +259,7 @@ export class ApiImpl implements Api { /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -275,7 +279,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -289,8 +293,8 @@ export class ApiImpl implements Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > > { @@ -300,7 +304,7 @@ export class ApiImpl implements Api { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -333,15 +337,18 @@ export class ApiImpl implements Api { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apiId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -349,7 +356,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -375,7 +382,7 @@ export class ApiImpl implements Api { /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -400,7 +407,7 @@ export class ApiImpl implements Api { /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -423,7 +430,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -440,7 +447,7 @@ export class ApiImpl implements Api { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -459,7 +466,7 @@ export class ApiImpl implements Api { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @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 ListByTags method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index e07cce2b7b89..7f8a30b7977e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -45,7 +45,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -138,7 +138,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -157,7 +157,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -179,7 +179,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -201,7 +201,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -232,7 +232,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -267,7 +267,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -292,7 +292,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -408,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -439,7 +439,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index 88c3e56ef789..c87591913545 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -33,7 +33,7 @@ export class ApiExportImpl implements ApiExport { /** * 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. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 19350d2be36f..527cad10dd31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -46,7 +46,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -139,7 +139,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -179,7 +179,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -200,7 +200,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -223,7 +223,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -257,7 +257,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -281,7 +281,7 @@ export class ApiIssueImpl implements ApiIssue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -401,7 +401,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -432,7 +432,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index 75f8dc935675..b4e477407b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -43,7 +43,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a93a6852c7de..a7449a1a1e67 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -43,7 +43,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 681c8dbc4f35..874d5245fd79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupNextOptionalParams, @@ -36,6 +40,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -64,7 +70,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -189,7 +195,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -200,8 +206,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > > { @@ -211,7 +217,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -244,15 +250,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - restoreOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: restoreOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceRestoreResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -262,7 +271,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -285,7 +294,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -296,8 +305,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > > { @@ -307,7 +316,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -340,15 +349,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - backupOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: backupOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceBackupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -357,7 +369,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -380,7 +392,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -391,8 +403,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > > { @@ -402,7 +414,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -435,13 +447,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -451,7 +466,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -473,7 +488,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -484,8 +499,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > > { @@ -495,7 +510,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -528,13 +543,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -543,7 +561,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -565,7 +583,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -582,7 +600,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -590,14 +608,14 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -630,13 +648,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -645,7 +663,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -662,9 +680,104 @@ export class ApiManagementServiceImpl implements ApiManagementService { return poller.pollUntilDone(); } + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. 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 serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + > { + 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: migrateToStv2OperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceMigrateToStv2Response, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. 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 serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise { + const poller = await this.beginMigrateToStv2( + resourceGroupName, + serviceName, + options + ); + return poller.pollUntilDone(); + } + /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( @@ -689,7 +802,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -735,7 +848,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -744,8 +857,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -757,7 +870,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -790,15 +903,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - applyNetworkConfigurationUpdatesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: applyNetworkConfigurationUpdatesOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, + OperationState< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -807,7 +925,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -826,7 +944,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -880,7 +998,7 @@ const restoreOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -913,7 +1031,7 @@ const backupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -946,7 +1064,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -979,7 +1097,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1036,6 +1154,37 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const migrateToStv2OperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", @@ -1108,7 +1257,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1153,7 +1302,7 @@ const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index e6828b5fdf6f..4c96ac12b9bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -36,7 +36,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -120,7 +120,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -137,7 +137,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * ListAvailableServiceSkusNext - * @param resourceGroupName The name of the resource group. + * @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 ListAvailableServiceSkus * method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 6475a009ca4d..719e17d32e77 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -46,7 +46,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -140,7 +140,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -160,7 +160,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -183,7 +183,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -206,7 +206,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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. @@ -238,7 +238,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -274,7 +274,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -300,7 +300,7 @@ export class ApiOperationImpl implements ApiOperation { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 14650d18cd28..5bec2b5db52c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -39,7 +39,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -62,7 +62,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -87,7 +87,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -112,7 +112,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -147,7 +147,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 2c89c1c2e0cb..9bcc792f5dd5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -39,7 +39,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -59,7 +59,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -81,7 +81,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -103,7 +103,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -127,7 +127,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index 7fb3c2555b2d..b9a226a7aadb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -36,7 +36,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiProductImpl implements ApiProduct { /** * ListByApisNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByApis method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 09fa04bb1a6a..345185b5a2d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -47,7 +47,7 @@ export class ApiReleaseImpl implements ApiRelease { * 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. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -142,7 +142,7 @@ export class ApiReleaseImpl implements ApiRelease { * 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. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -161,7 +161,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -183,7 +183,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -205,7 +205,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -229,7 +229,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -264,7 +264,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -289,7 +289,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index 7ba66db5eb26..c76a9aa1f6bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -36,7 +36,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 2844e1b40479..81cdbcbce722 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SchemaContract, ApiSchemaListByApiNextOptionalParams, @@ -45,7 +49,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -139,7 +143,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -159,7 +163,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -181,7 +185,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -203,7 +207,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -219,8 +223,8 @@ export class ApiSchemaImpl implements ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > > { @@ -230,7 +234,7 @@ export class ApiSchemaImpl implements ApiSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -263,15 +267,25 @@ export class ApiSchemaImpl implements ApiSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + apiId, + schemaId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -279,7 +293,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -308,7 +322,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -333,7 +347,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -458,7 +472,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index f21da82fdc8a..34f2b6f132b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -45,7 +45,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @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. @@ -140,7 +140,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @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. @@ -160,7 +160,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -183,7 +183,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @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. @@ -206,7 +206,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -238,7 +238,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -271,7 +271,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 1d0ca238540f..2057a4b4532a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -46,7 +46,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -130,7 +130,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -147,7 +147,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -167,7 +167,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -187,7 +187,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -209,7 +209,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -241,7 +241,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -264,7 +264,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -375,7 +375,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -405,7 +405,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts new file mode 100644 index 000000000000..97883b205cfb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -0,0 +1,280 @@ +/* + * 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 { ApiWiki } 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 { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ApiWiki operations. */ +export class ApiWikiImpl implements ApiWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for an 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 apiId API 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, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for an 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 apiId API 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 Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from 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 apiId API 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, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +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", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ApiWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts new file mode 100644 index 000000000000..d4aeb49360f5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -0,0 +1,217 @@ +/* + * 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 { ApiWikis } 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 { + WikiContract, + ApiWikisListNextOptionalParams, + ApiWikisListOptionalParams, + ApiWikisListResponse, + ApiWikisListNextResponse +} from "../models"; + +/// +/** Class containing ApiWikis operations. */ +export class ApiWikisImpl implements ApiWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the wikis for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + 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.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ApiWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, serviceName, apiId, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Gets the wikis for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @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 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, + apiId: string, + nextLink: string, + options?: ApiWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, 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}/apis/{apiId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts new file mode 100644 index 000000000000..0edaee3936d4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -0,0 +1,464 @@ +/* + * 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 { Authorization } 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 { + AuthorizationContract, + AuthorizationListByAuthorizationProviderNextOptionalParams, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationListByAuthorizationProviderResponse, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse, + AuthorizationListByAuthorizationProviderNextResponse +} from "../models"; + +/// +/** Class containing Authorization operations. */ +export class AuthorizationImpl implements Authorization { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Authorization class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + public listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationProviderPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + 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.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationProviderPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationListByAuthorizationProviderResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationProviderNext( + resourceGroupName, + serviceName, + authorizationProviderId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationProviderPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + private _listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + listByAuthorizationProviderOperationSpec + ); + } + + /** + * Gets the details of the authorization 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 authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @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, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + confirmConsentCodeOperationSpec + ); + } + + /** + * ListByAuthorizationProviderNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorizationProvider + * method. + * @param options The options parameters. + */ + private _listByAuthorizationProviderNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + nextLink: string, + options?: AuthorizationListByAuthorizationProviderNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + nextLink, + options + }, + listByAuthorizationProviderNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..cfd70d5c5e91 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -0,0 +1,439 @@ +/* + * 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 { AuthorizationAccessPolicy } 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 { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyListByAuthorizationResponse, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams, + AuthorizationAccessPolicyListByAuthorizationNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationAccessPolicy operations. */ +export class AuthorizationAccessPolicyImpl + implements AuthorizationAccessPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationAccessPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + public listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + 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.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationAccessPolicyListByAuthorizationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationNext( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + private _listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + listByAuthorizationOperationSpec + ); + } + + /** + * Gets the details of the authorization access 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 authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access 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, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByAuthorizationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorization method. + * @param options The options parameters. + */ + private _listByAuthorizationNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + nextLink: string, + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + nextLink, + options + }, + listByAuthorizationNextOperationSpec + ); + } +} +// Operation Specifications +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", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + 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 + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + 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 + }, + 201: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + 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 + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts new file mode 100644 index 000000000000..520ea2bb23f4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -0,0 +1,91 @@ +/* + * 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 { AuthorizationLoginLinks } 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 { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Class containing AuthorizationLoginLinks operations. */ +export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationLoginLinks class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + postOperationSpec + ); + } +} +// Operation Specifications +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", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationLoginResponseContract, + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts new file mode 100644 index 000000000000..f1327c745e52 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -0,0 +1,366 @@ +/* + * 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 { AuthorizationProvider } 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 { + AuthorizationProviderContract, + AuthorizationProviderListByServiceNextOptionalParams, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderListByServiceResponse, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams, + AuthorizationProviderListByServiceNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationProvider operations. */ +export class AuthorizationProviderImpl implements AuthorizationProvider { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationProvider class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers 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 options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): 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?: AuthorizationProviderListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationProviderListByServiceResponse; + 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?: AuthorizationProviderListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers 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 options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the details of the authorization provider 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 authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific authorization provider from 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 authorizationProviderId Identifier of the authorization provider. + * @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, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + 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?: AuthorizationProviderListByServiceNextOptionalParams + ): 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}/authorizationProviders", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + 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/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 76fccf11be77..784dfdfa4332 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -48,7 +48,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -132,7 +132,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -149,7 +149,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -168,7 +168,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -187,7 +187,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -208,7 +208,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -273,7 +273,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index b0813f1e1097..c445f24cedbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -47,7 +47,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -131,7 +131,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -148,7 +148,7 @@ export class BackendImpl implements Backend { /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -168,7 +168,7 @@ export class BackendImpl implements Backend { /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -188,7 +188,7 @@ export class BackendImpl implements Backend { /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -210,7 +210,7 @@ export class BackendImpl implements Backend { /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -242,7 +242,7 @@ export class BackendImpl implements Backend { /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -264,9 +264,9 @@ export class BackendImpl implements Backend { } /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -286,7 +286,7 @@ export class BackendImpl implements Backend { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -427,7 +427,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -476,7 +476,7 @@ const reconnectOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index ba8151a6606b..4c8a2d9f2f7c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -46,7 +46,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -130,7 +130,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -147,7 +147,7 @@ export class CacheImpl implements Cache { /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -167,7 +167,7 @@ export class CacheImpl implements Cache { /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -187,7 +187,7 @@ export class CacheImpl implements Cache { /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -209,7 +209,7 @@ export class CacheImpl implements Cache { /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -234,7 +234,7 @@ export class CacheImpl implements Cache { /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -257,7 +257,7 @@ export class CacheImpl implements Cache { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -363,7 +363,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -393,7 +393,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index 2d327334eb6a..e4768349aeb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -46,7 +46,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -130,7 +130,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -147,7 +147,7 @@ export class CertificateImpl implements Certificate { /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -167,7 +167,7 @@ export class CertificateImpl implements Certificate { /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -187,7 +187,7 @@ export class CertificateImpl implements Certificate { /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -209,7 +209,7 @@ export class CertificateImpl implements Certificate { /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -232,7 +232,7 @@ export class CertificateImpl implements Certificate { /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -252,7 +252,7 @@ export class CertificateImpl implements Certificate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 2bfa42bde798..3f3cc3eac3b8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -43,7 +43,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -136,7 +136,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -156,7 +156,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -177,7 +177,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -198,7 +198,7 @@ export class ContentItemImpl implements ContentItem { /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -228,7 +228,7 @@ export class ContentItemImpl implements ContentItem { /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -259,7 +259,7 @@ export class ContentItemImpl implements ContentItem { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index 3b4aa882b28c..e9208395eed7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -42,7 +42,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -127,7 +127,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -145,7 +145,7 @@ export class ContentTypeImpl implements ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -166,7 +166,7 @@ export class ContentTypeImpl implements ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -189,7 +189,7 @@ export class ContentTypeImpl implements ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -211,7 +211,7 @@ export class ContentTypeImpl implements ContentType { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -294,7 +294,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index e6617d78ba61..8015d11d68df 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -38,7 +38,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -55,7 +55,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -72,7 +72,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -94,7 +94,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -113,7 +113,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -186,7 +186,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -214,7 +214,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 7373b2943cb3..8dd8dab2cfc4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeletedServiceContract, DeletedServicesListBySubscriptionNextOptionalParams, @@ -133,14 +137,14 @@ export class DeletedServicesImpl implements DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -173,15 +177,15 @@ export class DeletedServicesImpl implements DeletedServices { }; }; - const lro = new LroImpl( - sendOperation, - { serviceName, location, options }, - purgeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { serviceName, location, options }, + spec: purgeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index 6d479f38276e..d27a987dc82b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -45,7 +45,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -129,7 +129,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -146,7 +146,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -166,7 +166,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -186,7 +186,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -208,7 +208,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -240,7 +240,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -263,7 +263,7 @@ export class DiagnosticImpl implements Diagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -374,7 +374,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -404,7 +404,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts new file mode 100644 index 000000000000..413a9d3e3777 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -0,0 +1,467 @@ +/* + * 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 { Documentation } 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 { + DocumentationContract, + DocumentationListByServiceNextOptionalParams, + DocumentationListByServiceOptionalParams, + DocumentationListByServiceResponse, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams, + DocumentationListByServiceNextResponse +} from "../models"; + +/// +/** Class containing Documentation operations. */ +export class DocumentationImpl implements Documentation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Documentation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all Documentations 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?: DocumentationListByServiceOptionalParams + ): 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?: DocumentationListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DocumentationListByServiceResponse; + 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?: DocumentationListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists all Documentations 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?: DocumentationListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Documentation 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 documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Documentation 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 documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Documentation 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 documentationId Documentation 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, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Documentation for an 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 documentationId Documentation 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 Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Documentation from 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 documentationId Documentation 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, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, 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?: DocumentationListByServiceNextOptionalParams + ): 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}/documentations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + 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}/documentations/{documentationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.DocumentationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters40, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters41, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + 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/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index ebe9dfbf80ec..97bfeb43ece1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -47,7 +47,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -131,7 +131,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -148,7 +148,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -167,7 +167,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -186,7 +186,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -207,7 +207,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -238,7 +238,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -260,7 +260,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -369,7 +369,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -399,7 +399,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index dc93c4c32df9..b31f5df4965c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -52,7 +52,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -136,7 +136,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -153,7 +153,7 @@ export class GatewayImpl implements Gateway { /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -173,7 +173,7 @@ export class GatewayImpl implements Gateway { /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -193,7 +193,7 @@ export class GatewayImpl implements Gateway { /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @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' @@ -215,7 +215,7 @@ export class GatewayImpl implements Gateway { /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -247,7 +247,7 @@ export class GatewayImpl implements Gateway { /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -270,7 +270,7 @@ export class GatewayImpl implements Gateway { /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @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' @@ -290,7 +290,7 @@ export class GatewayImpl implements Gateway { /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @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' @@ -312,7 +312,7 @@ export class GatewayImpl implements Gateway { /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -334,7 +334,7 @@ export class GatewayImpl implements Gateway { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -445,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -475,7 +475,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -548,7 +548,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -573,7 +573,7 @@ const generateTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index 285c7b92f9d7..bd9b0e70b3cd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -41,7 +41,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -135,7 +135,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -155,7 +155,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -177,7 +177,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -199,7 +199,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -221,7 +221,7 @@ export class GatewayApiImpl implements GatewayApi { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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' @@ -311,7 +311,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index 5d0dcac613cd..668cd5f32686 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -44,7 +44,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -138,7 +138,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -158,7 +158,7 @@ export class GatewayCertificateAuthorityImpl /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @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' @@ -181,7 +181,7 @@ export class GatewayCertificateAuthorityImpl /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @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' @@ -204,7 +204,7 @@ export class GatewayCertificateAuthorityImpl /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @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' @@ -236,7 +236,7 @@ export class GatewayCertificateAuthorityImpl /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -269,7 +269,7 @@ export class GatewayCertificateAuthorityImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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' @@ -386,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index f37771fe631c..dfd9534da32a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -44,7 +44,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -138,7 +138,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -159,7 +159,7 @@ export class GatewayHostnameConfigurationImpl /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -182,7 +182,7 @@ export class GatewayHostnameConfigurationImpl /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @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' @@ -205,7 +205,7 @@ export class GatewayHostnameConfigurationImpl /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -230,7 +230,7 @@ export class GatewayHostnameConfigurationImpl /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -256,7 +256,7 @@ export class GatewayHostnameConfigurationImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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' @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 155516291aeb..0de86721a1dc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GlobalSchemaContract, GlobalSchemaListByServiceNextOptionalParams, @@ -45,7 +49,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -129,7 +133,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -146,7 +150,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -165,7 +169,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -184,7 +188,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -197,8 +201,8 @@ export class GlobalSchemaImpl implements GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > > { @@ -208,7 +212,7 @@ export class GlobalSchemaImpl implements GlobalSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -241,15 +245,18 @@ export class GlobalSchemaImpl implements GlobalSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, schemaId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -257,7 +264,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -282,7 +289,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 @@ -304,7 +311,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -423,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts new file mode 100644 index 000000000000..1d2fa2cedd2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -0,0 +1,513 @@ +/* + * 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 { GraphQLApiResolver } 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 { + ResolverContract, + GraphQLApiResolverListByApiNextOptionalParams, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverListByApiResponse, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams, + GraphQLApiResolverListByApiNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolver operations. */ +export class GraphQLApiResolverImpl implements GraphQLApiResolver { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolver class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @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 options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + 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, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @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 options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver 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 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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the GraphQL API Resolver 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 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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getOperationSpec + ); + } + + /** + * Creates a new resolver in the GraphQL 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 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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the resolver in the GraphQL 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 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 resolverId Resolver identifier within a GraphQL 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 GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified resolver in the GraphQL API. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, 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 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, + apiId: string, + nextLink: string, + options?: GraphQLApiResolverListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, 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}/apis/{apiId}/resolvers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..884fac6979f9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -0,0 +1,478 @@ +/* + * 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 { GraphQLApiResolverPolicy } 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, + GraphQLApiResolverPolicyListByResolverNextOptionalParams, + GraphQLApiResolverPolicyListByResolverOptionalParams, + GraphQLApiResolverPolicyListByResolverResponse, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams, + GraphQLApiResolverPolicyListByResolverNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolverPolicy operations. */ +export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolverPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + public listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResolverPagingAll( + resourceGroupName, + serviceName, + apiId, + resolverId, + 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.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options, + settings + ); + } + }; + } + + private async *listByResolverPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverPolicyListByResolverResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResolverNext( + resourceGroupName, + serviceName, + apiId, + resolverId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResolverPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + private _listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + listByResolverOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver 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 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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByResolverNext + * @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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByResolver method. + * @param options The options parameters. + */ + private _listByResolverNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + nextLink: string, + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, + listByResolverNextOperationSpec + ); + } +} +// Operation Specifications +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", + 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.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + 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 + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + 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 + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + 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 + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByResolverNextOperationSpec: 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.apiId, + Parameters.nextLink, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d225cc07780f..f2880b71cccb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -47,7 +47,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -131,7 +131,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -148,7 +148,7 @@ export class GroupImpl implements Group { /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -167,7 +167,7 @@ export class GroupImpl implements Group { /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -186,7 +186,7 @@ export class GroupImpl implements Group { /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -207,7 +207,7 @@ export class GroupImpl implements Group { /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 @@ -231,7 +231,7 @@ export class GroupImpl implements Group { /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 @@ -253,7 +253,7 @@ export class GroupImpl implements Group { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,7 +394,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index 294dc38310d2..d0e13397ab74 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -41,7 +41,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class GroupUserImpl implements GroupUser { /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -174,7 +174,7 @@ export class GroupUserImpl implements GroupUser { /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -195,7 +195,7 @@ export class GroupUserImpl implements GroupUser { /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -216,7 +216,7 @@ export class GroupUserImpl implements GroupUser { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index ea2f9ccc75d0..cd0dd18e233a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -50,7 +50,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -134,7 +134,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -151,7 +151,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -170,7 +170,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -189,7 +189,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -216,7 +216,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -247,7 +247,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -275,7 +275,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -294,7 +294,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -430,7 +430,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 24d2feb9be63..8dd3f606af8b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,8 +23,14 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; @@ -34,6 +42,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"; @@ -53,6 +62,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +75,10 @@ export * from "./productApi"; export * from "./productGroup"; 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"; @@ -73,6 +88,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"; @@ -81,3 +99,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +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 0bfb38519fe3..55bf4c71ee76 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -38,7 +38,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -122,7 +122,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -139,7 +139,7 @@ export class IssueImpl implements Issue { /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class IssueImpl implements Issue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index cbb641ad3889..0cae01ba48c2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -46,7 +46,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -130,7 +130,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -147,7 +147,7 @@ export class LoggerImpl implements Logger { /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -166,7 +166,7 @@ export class LoggerImpl implements Logger { /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -185,7 +185,7 @@ export class LoggerImpl implements Logger { /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -206,7 +206,7 @@ export class LoggerImpl implements Logger { /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -237,7 +237,7 @@ export class LoggerImpl implements Logger { /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -259,7 +259,7 @@ export class LoggerImpl implements Logger { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -400,7 +400,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index affd2e1348cc..dd976c51b9ae 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { NamedValueContract, NamedValueListByServiceNextOptionalParams, @@ -53,7 +57,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -137,7 +141,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -154,7 +158,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -173,7 +177,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -192,7 +196,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -205,8 +209,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > > { @@ -216,7 +220,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -249,15 +253,24 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + namedValueId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -265,7 +278,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -290,7 +303,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -306,8 +319,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > > { @@ -317,7 +330,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, @@ -360,12 +373,15 @@ export class NamedValueImpl implements NamedValue { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -402,7 +418,7 @@ export class NamedValueImpl implements NamedValue { /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -424,7 +440,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -443,7 +459,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -454,8 +470,8 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > > { @@ -465,7 +481,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -498,15 +514,18 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, options }, - refreshSecretOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, options }, + spec: refreshSecretOperationSpec + }); + const poller = await createHttpPoller< + NamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -514,7 +533,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -536,7 +555,7 @@ export class NamedValueImpl implements NamedValue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -656,7 +675,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -698,7 +717,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 87db0abd308a..8f9ab94e7fee 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -33,7 +33,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -51,7 +51,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 63b6e13b9603..330f9607e8cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -41,7 +41,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -125,7 +125,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -142,7 +142,7 @@ export class NotificationImpl implements Notification { /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -161,7 +161,7 @@ export class NotificationImpl implements Notification { /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -180,7 +180,7 @@ export class NotificationImpl implements Notification { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 946af96ea810..5532326268f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -37,7 +37,7 @@ export class NotificationRecipientEmailImpl /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientEmailImpl /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -77,7 +77,7 @@ export class NotificationRecipientEmailImpl /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -98,7 +98,7 @@ export class NotificationRecipientEmailImpl /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index b7e6e10f2013..ff459bec71fd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -37,7 +37,7 @@ export class NotificationRecipientUserImpl /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientUserImpl /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -77,7 +77,7 @@ export class NotificationRecipientUserImpl /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -98,7 +98,7 @@ export class NotificationRecipientUserImpl /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 9c5bd14f970a..2d3495279eac 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -48,7 +48,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -132,7 +132,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -149,7 +149,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -168,7 +168,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -187,7 +187,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -208,7 +208,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -273,7 +273,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 77c764bfea46..91d1fdf3b4ec 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -36,7 +36,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. @@ -130,7 +130,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. @@ -150,7 +150,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index aa4b77527265..5ac8f335aa65 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -31,7 +31,7 @@ export class OutboundNetworkDependenciesEndpointsImpl /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index 80875f42f6d8..57a2235e070c 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; @@ -39,11 +44,95 @@ export class PolicyImpl implements Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @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( + 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 + ): 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 @@ -56,7 +145,7 @@ export class PolicyImpl implements Policy { /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -75,7 +164,7 @@ export class PolicyImpl implements Policy { /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -94,7 +183,7 @@ export class PolicyImpl implements Policy { /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -115,7 +204,7 @@ export class PolicyImpl implements Policy { /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -134,6 +223,25 @@ export class PolicyImpl implements Policy { 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 + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -263,3 +371,24 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept, Parameters.ifMatch1], 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 1becb987491d..2f563e88f50e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -30,7 +30,7 @@ export class PolicyDescriptionImpl implements PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts new file mode 100644 index 000000000000..5d83a4ef4ca4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -0,0 +1,537 @@ +/* + * 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 { PolicyFragment } 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, + PolicyFragmentListByServiceNextOptionalParams, + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentListByServiceResponse, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse, + PolicyFragmentListByServiceNextResponse +} from "../models"; + +/// +/** Class containing PolicyFragment operations. */ +export class PolicyFragmentImpl implements PolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * 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. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + 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 + ); + } + + /** + * 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 id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, 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 id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, 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 id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + > { + 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, id, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PolicyFragmentCreateOrUpdateResponse, + 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 id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + 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 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, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, 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 id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, 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 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 + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.orderby + ], + 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}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/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 + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + 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 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts new file mode 100644 index 000000000000..2d05866fd234 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -0,0 +1,415 @@ +/* + * 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 { 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, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse, + PortalConfigListByServiceNextResponse +} from "../models"; + +/// +/** Class containing PortalConfig operations. */ +export class PortalConfigImpl implements PortalConfig { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PortalConfig class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * 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. + */ + 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, + 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 + ); + } + + /** + * Gets the entity state (Etag) version of the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getOperationSpec + ); + } + + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration 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 parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration 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 parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + 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 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 + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection + }, + 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}/portalconfigs/{portalConfigId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PortalConfigGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract, + headersMapper: Mappers.PortalConfigGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + 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 2de464de5b18..ca763a3f17a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -13,8 +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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PortalRevisionContract, PortalRevisionListByServiceNextOptionalParams, @@ -46,7 +50,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -130,7 +134,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -147,7 +151,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -167,7 +171,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -188,7 +192,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -202,8 +206,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > > { @@ -213,7 +217,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -246,15 +250,24 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, portalRevisionId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + portalRevisionId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -263,7 +276,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -289,7 +302,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -306,8 +319,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > > { @@ -317,7 +330,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, portalRevisionId, @@ -360,12 +373,15 @@ export class PortalRevisionImpl implements PortalRevision { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -403,7 +419,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -522,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -560,7 +576,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index 1024bf6cc0d9..da437e49d95b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -30,7 +30,7 @@ export class PortalSettingsImpl implements PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index 3be4ff820dab..e8e90e2250a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -12,8 +12,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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -46,7 +50,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -108,7 +112,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -125,7 +129,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -149,7 +153,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -162,8 +166,8 @@ export class PrivateEndpointConnectionOperationsImpl privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > > { @@ -173,7 +177,7 @@ export class PrivateEndpointConnectionOperationsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -206,19 +210,22 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -227,7 +234,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -252,7 +259,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -262,14 +269,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -302,18 +309,18 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -322,7 +329,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -344,7 +351,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -361,7 +368,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index dc5997d9491f..6f97093f594c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -51,7 +51,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -135,7 +135,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -215,7 +215,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -232,7 +232,7 @@ export class ProductImpl implements Product { /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -251,7 +251,7 @@ export class ProductImpl implements Product { /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -270,7 +270,7 @@ export class ProductImpl implements Product { /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create or update parameters. @@ -291,7 +291,7 @@ export class ProductImpl implements Product { /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -322,7 +322,7 @@ export class ProductImpl implements Product { /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -344,7 +344,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -361,7 +361,7 @@ export class ProductImpl implements Product { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -380,7 +380,7 @@ export class ProductImpl implements Product { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @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 ListByTags method. * @param options The options parameters. @@ -493,7 +493,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -523,7 +523,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index c10b5127698d..46a14b1d5042 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -41,7 +41,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -134,7 +134,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -153,7 +153,7 @@ export class ProductApiImpl implements ProductApi { /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. @@ -175,7 +175,7 @@ export class ProductApiImpl implements ProductApi { /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. @@ -197,7 +197,7 @@ export class ProductApiImpl implements ProductApi { /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. @@ -219,7 +219,7 @@ export class ProductApiImpl implements ProductApi { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @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. 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..5e7b3c6653a9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts @@ -0,0 +1,379 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters67, + 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 0d28c8eb3f47..5425cb6d2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -41,7 +41,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -134,7 +134,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -153,7 +153,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. @@ -174,7 +174,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. @@ -195,7 +195,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. @@ -216,7 +216,7 @@ export class ProductGroupImpl implements ProductGroup { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @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. 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..5393ddcee146 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts @@ -0,0 +1,379 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters68, + 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 021da2209b9d..3d385b8d5e5b 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; @@ -39,12 +44,105 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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?: 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. */ - listByProduct( + private _listByProduct( resourceGroupName: string, serviceName: string, productId: string, @@ -58,7 +156,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -79,7 +177,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -100,7 +198,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -130,7 +228,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -151,6 +249,27 @@ export class ProductPolicyImpl implements ProductPolicy { 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 + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -285,3 +404,25 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept, Parameters.ifMatch1], 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 c060e035234e..b602e9ea6996 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -36,7 +36,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -129,7 +129,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -148,7 +148,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @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 List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts new file mode 100644 index 000000000000..48c1fc393861 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -0,0 +1,287 @@ +/* + * 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 { ProductWiki } 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 { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ProductWiki operations. */ +export class ProductWikiImpl implements ProductWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for a Product 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 productId Product 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, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for a 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 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 Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from 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 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, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +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", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ProductWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + 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}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts new file mode 100644 index 000000000000..eb425ad22260 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -0,0 +1,224 @@ +/* + * 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 { ProductWikis } 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 { + WikiContract, + ProductWikisListNextOptionalParams, + ProductWikisListOptionalParams, + ProductWikisListResponse, + ProductWikisListNextResponse +} from "../models"; + +/// +/** Class containing ProductWikis operations. */ +export class ProductWikisImpl implements ProductWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + 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.listPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Gets the details of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @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 List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, 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}/products/{productId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListNextHeaders + }, + 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/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index e5a890c5fb3c..7544df591365 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -34,7 +34,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -57,7 +57,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -117,7 +117,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index ac89b9e1efc7..298c5e9890c6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -34,7 +34,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -64,7 +64,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -134,7 +134,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index c21e9d6a2cfd..b0ccf6b4bde2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -36,7 +36,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -120,7 +120,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -137,7 +137,7 @@ export class RegionImpl implements Region { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 157ba4ac13ff..34ec22b941f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -63,7 +63,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -155,7 +155,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -259,7 +259,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -362,7 +362,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -465,7 +465,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -568,7 +568,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -671,7 +671,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -784,7 +784,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -862,7 +862,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -881,7 +881,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -912,7 +912,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -942,7 +942,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -972,7 +972,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1002,7 +1002,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1032,7 +1032,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -1066,7 +1066,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1089,7 +1089,7 @@ export class ReportsImpl implements Reports { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @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 ListByApi method. * @param options The options parameters. @@ -1108,7 +1108,7 @@ export class ReportsImpl implements Reports { /** * ListByUserNext - * @param resourceGroupName The name of the resource group. + * @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 ListByUser method. * @param options The options parameters. @@ -1127,7 +1127,7 @@ export class ReportsImpl implements Reports { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @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 ListByOperation method. * @param options The options parameters. @@ -1146,7 +1146,7 @@ export class ReportsImpl implements Reports { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @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 ListByProduct method. * @param options The options parameters. @@ -1165,7 +1165,7 @@ export class ReportsImpl implements Reports { /** * ListByGeoNext - * @param resourceGroupName The name of the resource group. + * @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 ListByGeo method. * @param options The options parameters. @@ -1184,7 +1184,7 @@ export class ReportsImpl implements Reports { /** * ListBySubscriptionNext - * @param resourceGroupName The name of the resource group. + * @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 ListBySubscription method. * @param options The options parameters. @@ -1203,7 +1203,7 @@ export class ReportsImpl implements Reports { /** * ListByTimeNext - * @param resourceGroupName The name of the resource group. + * @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 ListByTime method. * @param options The options parameters. @@ -1239,8 +1239,8 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1267,8 +1267,8 @@ const listByUserOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1295,8 +1295,8 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1323,8 +1323,8 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1378,8 +1378,8 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1406,8 +1406,8 @@ const listByTimeOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, Parameters.orderby, + Parameters.filter1, Parameters.interval ], urlParameters: [ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 2967027b2087..02b348791e42 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -36,7 +36,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -53,7 +53,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -70,7 +70,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -92,7 +92,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index e7e78a3a9cd3..912da895c54d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -36,7 +36,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -53,7 +53,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -70,7 +70,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -92,7 +92,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 35671d914bac..b5ad201102f6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -51,7 +51,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -127,7 +127,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -144,7 +144,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -164,7 +164,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -184,7 +184,7 @@ export class SubscriptionImpl implements Subscription { /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -206,7 +206,7 @@ export class SubscriptionImpl implements Subscription { /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -231,7 +231,7 @@ export class SubscriptionImpl implements Subscription { /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -254,7 +254,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -274,7 +274,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -294,7 +294,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -314,7 +314,7 @@ export class SubscriptionImpl implements Subscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @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 List method. * @param options The options parameters. @@ -425,7 +425,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters71, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -459,7 +459,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters72, queryParameters: [ Parameters.apiVersion, Parameters.notify, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 074c6a371855..1cd000ec1f2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -79,7 +79,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -183,7 +183,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -277,7 +277,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -370,7 +370,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -454,7 +454,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -477,7 +477,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -502,7 +502,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -527,7 +527,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -552,7 +552,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -577,7 +577,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -597,7 +597,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -619,7 +619,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -641,7 +641,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -663,7 +663,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -685,7 +685,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -704,7 +704,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -725,7 +725,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -746,7 +746,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -767,7 +767,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -788,7 +788,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -805,7 +805,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -824,7 +824,7 @@ export class TagImpl implements Tag { /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -843,7 +843,7 @@ export class TagImpl implements Tag { /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create parameters. @@ -864,7 +864,7 @@ export class TagImpl implements Tag { /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -888,7 +888,7 @@ export class TagImpl implements Tag { /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -910,7 +910,7 @@ export class TagImpl implements Tag { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -935,7 +935,7 @@ export class TagImpl implements Tag { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -957,7 +957,7 @@ export class TagImpl implements Tag { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -978,7 +978,7 @@ export class TagImpl implements Tag { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. 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..0d88fb3aaa96 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts @@ -0,0 +1,372 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters73, + 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..e93bff77aa97 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts @@ -0,0 +1,379 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters74, + 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..09e3554448ea --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts @@ -0,0 +1,379 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters75, + 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 df4cf7d591aa..1a0a0f0a8cb1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -36,7 +36,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -120,7 +120,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -137,7 +137,7 @@ export class TagResourceImpl implements TagResource { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 3ba9f54c8dfc..135604ff94e9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -51,7 +51,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -135,7 +135,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -152,7 +152,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -171,7 +171,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -190,7 +190,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -221,7 +221,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -252,7 +252,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -271,7 +271,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -290,7 +290,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -309,7 +309,7 @@ export class TenantAccessImpl implements TenantAccess { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -411,7 +411,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9192c5d4ab14..9d7f1db29713 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -31,7 +31,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -50,7 +50,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 83a9667cb1be..ae1431c4be24 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -11,8 +11,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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -42,7 +46,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -55,8 +59,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > > { @@ -66,7 +70,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -99,21 +103,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - deployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deployOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationDeployResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -122,7 +129,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -148,7 +155,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -161,8 +168,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > > { @@ -172,7 +179,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -205,21 +212,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - saveOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: saveOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationSaveResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -228,7 +238,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -254,7 +264,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -267,8 +277,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > > { @@ -278,7 +288,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -311,21 +321,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - validateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: validateOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationValidateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -334,7 +347,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -360,7 +373,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. @@ -401,7 +414,7 @@ const deployOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -435,7 +448,7 @@ const saveOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -469,7 +482,7 @@ const validateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index 95ffbb632fc5..b46350a3c9ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -39,7 +39,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -123,7 +123,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -140,7 +140,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. @@ -159,7 +159,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 1b49230eb16c..c1d82422e243 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -52,7 +52,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -136,7 +136,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -153,7 +153,7 @@ export class UserImpl implements User { /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -172,7 +172,7 @@ export class UserImpl implements User { /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -191,7 +191,7 @@ export class UserImpl implements User { /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create or update parameters. @@ -212,7 +212,7 @@ export class UserImpl implements User { /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 @@ -236,7 +236,7 @@ export class UserImpl implements User { /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @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 @@ -259,7 +259,7 @@ export class UserImpl implements User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -278,7 +278,7 @@ export class UserImpl implements User { /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create Authorization Token parameters. @@ -299,7 +299,7 @@ export class UserImpl implements User { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @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. @@ -411,7 +411,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -520,7 +520,7 @@ const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 779715551c3a..0a9175427c03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -27,7 +27,7 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 9dc853240af8..1627954cbe7a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -36,7 +36,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -129,7 +129,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -148,7 +148,7 @@ export class UserGroupImpl implements UserGroup { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @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 nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index da05413071ae..4ff92b553f94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -36,7 +36,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -129,7 +129,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -148,7 +148,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @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 nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 7e4945d84920..8e4838abc76a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -38,7 +38,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -131,7 +131,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -150,7 +150,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @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 sid Subscription entity Identifier. The entity represents the association between a user and @@ -172,7 +172,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @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 nextLink The nextLink from the previous successful call to the List method. 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..36ce98c26937 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts @@ -0,0 +1,466 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters83, + 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.parameters83, + 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..63fd898e979b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts @@ -0,0 +1,617 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + 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}/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.parameters, + 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.parameters1, + 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..805a4044d77c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts @@ -0,0 +1,100 @@ +/* + * 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..e5e9ddf216a4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts @@ -0,0 +1,576 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + 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}/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.parameters3, + 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.parameters4, + 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.apiId, + Parameters.nextLink, + 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..a68a898ca79c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts @@ -0,0 +1,546 @@ +/* + * 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.parameters5, + 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.apiId, + Parameters.nextLink, + 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..acfef6cc1982 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts @@ -0,0 +1,478 @@ +/* + * 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.parameters5, + 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.apiId, + Parameters.nextLink, + 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..ae63e101bac3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.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 { 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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.parameters2, + 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.parameters2, + 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..ad941036131f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.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, 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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..99281e64b474 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts @@ -0,0 +1,584 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters9, + 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.apiId, + Parameters.nextLink, + 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..7edbdf45af53 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts @@ -0,0 +1,520 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters18, + 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.parameters19, + 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..2611d5a624be --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts @@ -0,0 +1,546 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters70, + 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..e4d32dcb842f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts @@ -0,0 +1,516 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters49, + 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.parameters50, + 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..d82597e3ccc4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts @@ -0,0 +1,400 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + 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..5ec1488b5ba5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts @@ -0,0 +1,912 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + 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.parameters55, + 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.parameters56, + 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..40b959f6e2cb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts @@ -0,0 +1,329 @@ +/* + * 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.top, Parameters.skip, 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}/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..3324bbb95c05 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,261 @@ +/* + * 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..493ee715d404 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts @@ -0,0 +1,261 @@ +/* + * 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..b243012ae8cc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts @@ -0,0 +1,442 @@ +/* + * 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.parameters5, + 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..f7f6f3d7be2c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts @@ -0,0 +1,586 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + 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.parameters59, + 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.top, Parameters.skip, Parameters.apiVersion], + 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..7575c4e0817e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts @@ -0,0 +1,517 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.apiVersion, + 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.parameters65, + 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.parameters66, + 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..a8e44c8aeaa6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts @@ -0,0 +1,431 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters67, + 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..a80effc16e95 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts @@ -0,0 +1,432 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters68, + 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..ecff696905d0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts @@ -0,0 +1,330 @@ +/* + * 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.parameters5, + 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..bb796d63f431 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts @@ -0,0 +1,659 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters71, + 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.parameters72, + 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..5c1768e6f644 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts @@ -0,0 +1,509 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + 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.parameters6, + 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.parameters6, + 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..0ba42ae15f60 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters73, + 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..cb4ba364adb7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts @@ -0,0 +1,425 @@ +/* + * 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters74, + 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..bb2904dcf16f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { 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.filter, + Parameters.top, + Parameters.skip, + 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}/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.parameters75, + 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/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index ce5051c792be..0ff932cdd76b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiContract, ApiListByServiceOptionalParams, @@ -31,7 +31,7 @@ import { export interface Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -42,7 +42,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -53,7 +53,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -67,7 +67,7 @@ export interface Api { ): Promise; /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -81,7 +81,7 @@ export interface Api { ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -95,14 +95,14 @@ export interface Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > >; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -118,7 +118,7 @@ export interface Api { ): Promise; /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. @@ -137,7 +137,7 @@ export interface Api { ): Promise; /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index 7b3ccbde09c6..d369a59d6f66 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -26,7 +26,7 @@ import { export interface ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -39,7 +39,7 @@ export interface ApiDiagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -55,7 +55,7 @@ export interface ApiDiagnostic { ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -71,7 +71,7 @@ export interface ApiDiagnostic { ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -89,7 +89,7 @@ export interface ApiDiagnostic { ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -110,7 +110,7 @@ export interface ApiDiagnostic { ): Promise; /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index d78896d9eee2..1efcf25c77c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -18,7 +18,7 @@ export interface ApiExport { /** * 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. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index 8df799f7dcdf..ca2f0189336a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -27,7 +27,7 @@ import { export interface ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -40,7 +40,7 @@ export interface ApiIssue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -55,7 +55,7 @@ export interface ApiIssue { ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -70,7 +70,7 @@ export interface ApiIssue { ): Promise; /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -87,7 +87,7 @@ export interface ApiIssue { ): Promise; /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -107,7 +107,7 @@ export interface ApiIssue { ): Promise; /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index 1624786031ef..b6e147b842e3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueAttachment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 91385b09dc5e..4d86b68407ce 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueComment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueComment { ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueComment { ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueComment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index d33e3983eb75..947d8acdd1d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupOptionalParams, @@ -25,6 +25,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -41,7 +43,7 @@ import { export interface ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -59,7 +61,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -70,8 +72,8 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > >; @@ -79,7 +81,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -93,7 +95,7 @@ export interface ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -104,15 +106,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > >; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -126,7 +128,7 @@ export interface ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -137,15 +139,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > >; /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -158,7 +160,7 @@ export interface ApiManagementService { ): Promise; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -169,14 +171,14 @@ export interface ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > >; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -189,7 +191,7 @@ export interface ApiManagementService { ): Promise; /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -200,7 +202,7 @@ export interface ApiManagementService { ): Promise; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -208,10 +210,10 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -220,9 +222,40 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceDeleteOptionalParams ): Promise; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. 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 serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + >; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. 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 serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -250,7 +283,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -259,8 +292,8 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -269,7 +302,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 5fbc73b80d88..49efcda76ba3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -17,7 +17,7 @@ import { export interface ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index 9e971caef8f5..bfe69dd00983 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -27,7 +27,7 @@ import { export interface ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -41,7 +41,7 @@ export interface ApiOperation { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -58,7 +58,7 @@ export interface ApiOperation { ): Promise; /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -75,7 +75,7 @@ export interface ApiOperation { ): Promise; /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @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. @@ -94,7 +94,7 @@ export interface ApiOperation { ): Promise; /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -116,7 +116,7 @@ export interface ApiOperation { ): Promise; /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 9660beb53789..224a85a7e194 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -41,7 +41,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -60,7 +60,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -79,7 +79,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -100,7 +100,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 62f7d6f45aa4..3d54b954c30e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -38,7 +38,7 @@ export interface ApiPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -54,7 +54,7 @@ export interface ApiPolicy { ): Promise; /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -70,7 +70,7 @@ export interface ApiPolicy { ): Promise; /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -88,7 +88,7 @@ export interface ApiPolicy { ): Promise; /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index 9ad6a6398327..d83bdb058e0a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -14,7 +14,7 @@ import { ProductContract, ApiProductListByApisOptionalParams } from "../models"; export interface ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 878ee1e01a43..15d74409908a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -28,7 +28,7 @@ export interface ApiRelease { * 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. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -41,7 +41,7 @@ export interface ApiRelease { ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -57,7 +57,7 @@ export interface ApiRelease { ): Promise; /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -73,7 +73,7 @@ export interface ApiRelease { ): Promise; /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -91,7 +91,7 @@ export interface ApiRelease { ): Promise; /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 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 @@ -112,7 +112,7 @@ export interface ApiRelease { ): Promise; /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @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 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 diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 61d8d76687c4..8264f54d3f06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -17,7 +17,7 @@ import { export interface ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @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 identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 35d79f66a387..2a2b5c2c807c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SchemaContract, ApiSchemaListByApiOptionalParams, @@ -25,7 +25,7 @@ import { export interface ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -39,7 +39,7 @@ export interface ApiSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -55,7 +55,7 @@ export interface ApiSchema { ): Promise; /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -71,7 +71,7 @@ export interface ApiSchema { ): Promise; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -87,14 +87,14 @@ export interface ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > >; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -112,7 +112,7 @@ export interface ApiSchema { ): Promise; /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index 9d1f7b47f63e..cd4303cd42c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -26,7 +26,7 @@ export interface ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @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. @@ -40,7 +40,7 @@ export interface ApiTagDescription { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -57,7 +57,7 @@ export interface ApiTagDescription { ): Promise; /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @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. @@ -74,7 +74,7 @@ export interface ApiTagDescription { ): Promise; /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -93,7 +93,7 @@ export interface ApiTagDescription { ): Promise; /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 552cec808f4e..4a5912de1735 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -27,7 +27,7 @@ import { export interface ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -38,7 +38,7 @@ export interface ApiVersionSet { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -52,7 +52,7 @@ export interface ApiVersionSet { ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -66,7 +66,7 @@ export interface ApiVersionSet { ): Promise; /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -82,7 +82,7 @@ export interface ApiVersionSet { ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -101,7 +101,7 @@ export interface ApiVersionSet { ): Promise; /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts new file mode 100644 index 000000000000..5d6bcdf9565c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -0,0 +1,100 @@ +/* + * 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 { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ApiWiki. */ +export interface ApiWiki { + /** + * Gets the entity state (Etag) version of the Wiki for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for an 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 apiId API 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, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for an 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 apiId API 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 Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from 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 apiId API 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, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts new file mode 100644 index 000000000000..b86f924bee02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -0,0 +1,28 @@ +/* + * 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 { WikiContract, ApiWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ApiWikis. */ +export interface ApiWikis { + /** + * Gets the wikis for an 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts new file mode 100644 index 000000000000..015f10f04d61 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -0,0 +1,106 @@ +/* + * 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 { + AuthorizationContract, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse +} from "../models"; + +/// +/** Interface representing a Authorization. */ +export interface Authorization { + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization 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 authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise; + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @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, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise; + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..9bbf78ae39d7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -0,0 +1,94 @@ +/* + * 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 { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationAccessPolicy. */ +export interface AuthorizationAccessPolicy { + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization access 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 authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access 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, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts new file mode 100644 index 000000000000..bcfc0be03fe5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.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 { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Interface representing a AuthorizationLoginLinks. */ +export interface AuthorizationLoginLinks { + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts new file mode 100644 index 000000000000..1b2c64bf2296 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -0,0 +1,78 @@ +/* + * 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 { + AuthorizationProviderContract, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationProvider. */ +export interface AuthorizationProvider { + /** + * Lists a collection of authorization providers 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 options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization provider 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 authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise; + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific authorization provider from 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 authorizationProviderId Identifier of the authorization provider. + * @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, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index b80767b9e50b..d70ac4bcaccc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -29,7 +29,7 @@ import { export interface AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -40,7 +40,7 @@ export interface AuthorizationServer { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface AuthorizationServer { ): Promise; /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -81,7 +81,7 @@ export interface AuthorizationServer { ): Promise; /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface AuthorizationServer { ): Promise; /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index a4ba6c8f742f..40e8e927c666 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -28,7 +28,7 @@ import { export interface Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -39,7 +39,7 @@ export interface Backend { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -53,7 +53,7 @@ export interface Backend { ): Promise; /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -67,7 +67,7 @@ export interface Backend { ): Promise; /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -83,7 +83,7 @@ export interface Backend { ): Promise; /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -102,7 +102,7 @@ export interface Backend { ): Promise; /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -118,9 +118,9 @@ export interface Backend { options?: BackendDeleteOptionalParams ): Promise; /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 4c50346e693c..8572de9ad24a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -27,7 +27,7 @@ import { export interface Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -38,7 +38,7 @@ export interface Cache { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -52,7 +52,7 @@ export interface Cache { ): Promise; /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -66,7 +66,7 @@ export interface Cache { ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -82,7 +82,7 @@ export interface Cache { ): Promise; /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -101,7 +101,7 @@ export interface Cache { ): Promise; /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 5ee50eb816d1..1cf2f8298d79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -27,7 +27,7 @@ import { export interface Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -38,7 +38,7 @@ export interface Certificate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -52,7 +52,7 @@ export interface Certificate { ): Promise; /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -66,7 +66,7 @@ export interface Certificate { ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -82,7 +82,7 @@ export interface Certificate { ): Promise; /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -99,7 +99,7 @@ export interface Certificate { ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index 16558538d39f..d6db18227d54 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -24,7 +24,7 @@ import { export interface ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -53,7 +53,7 @@ export interface ContentItem { ): Promise; /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -68,7 +68,7 @@ export interface ContentItem { ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -85,7 +85,7 @@ export interface ContentItem { ): Promise; /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 1f84eaa59691..68c247315096 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -23,7 +23,7 @@ export interface ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -35,7 +35,7 @@ export interface ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -67,7 +67,7 @@ export interface ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 58e679b7f001..650d46f719ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -23,7 +23,7 @@ import { export interface DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -34,7 +34,7 @@ export interface DelegationSettings { ): Promise; /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -45,7 +45,7 @@ export interface DelegationSettings { ): Promise; /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -61,7 +61,7 @@ export interface DelegationSettings { ): Promise; /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -74,7 +74,7 @@ export interface DelegationSettings { ): Promise; /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index ececcf7fb126..fda32ab5743c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeletedServiceContract, DeletedServicesListBySubscriptionOptionalParams, @@ -47,7 +47,7 @@ export interface DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). * @param serviceName The name of the API Management service. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a0e209ed079a..a33338aa2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -26,7 +26,7 @@ import { export interface Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -37,7 +37,7 @@ export interface Diagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -51,7 +51,7 @@ export interface Diagnostic { ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -65,7 +65,7 @@ export interface Diagnostic { ): Promise; /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -81,7 +81,7 @@ export interface Diagnostic { ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -100,7 +100,7 @@ export interface Diagnostic { ): Promise; /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts new file mode 100644 index 000000000000..6a9cc7551419 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -0,0 +1,119 @@ +/* + * 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 { + DocumentationContract, + DocumentationListByServiceOptionalParams, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Documentation. */ +export interface Documentation { + /** + * Lists all Documentations 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?: DocumentationListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Documentation 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 documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Documentation 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 documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise; + /** + * Creates a new Documentation 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 documentationId Documentation 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, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Documentation for an 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 documentationId Documentation 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 Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Documentation from 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 documentationId Documentation 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, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index d65cdcb343ea..daa6c97bed59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -28,7 +28,7 @@ import { export interface EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -39,7 +39,7 @@ export interface EmailTemplate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface EmailTemplate { ): Promise; /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface EmailTemplate { ): Promise; /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -80,7 +80,7 @@ export interface EmailTemplate { ): Promise; /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -98,7 +98,7 @@ export interface EmailTemplate { ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 6e2b9f2954a7..00a5b5b809c8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -33,7 +33,7 @@ import { export interface Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -44,7 +44,7 @@ export interface Gateway { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -58,7 +58,7 @@ export interface Gateway { ): Promise; /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -72,7 +72,7 @@ export interface Gateway { ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @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' @@ -88,7 +88,7 @@ export interface Gateway { ): Promise; /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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' @@ -107,7 +107,7 @@ export interface Gateway { ): Promise; /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -124,7 +124,7 @@ export interface Gateway { ): Promise; /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @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' @@ -138,7 +138,7 @@ export interface Gateway { ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @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' @@ -154,7 +154,7 @@ export interface Gateway { ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @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' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 43f847c08a83..40fbda7aec7f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -22,7 +22,7 @@ import { export interface GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -36,7 +36,7 @@ export interface GatewayApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -52,7 +52,7 @@ export interface GatewayApi { ): Promise; /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -68,7 +68,7 @@ export interface GatewayApi { ): Promise; /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 73a9c1c61e87..8295474134eb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -24,7 +24,7 @@ import { export interface GatewayCertificateAuthority { /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -38,7 +38,7 @@ export interface GatewayCertificateAuthority { ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @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' @@ -55,7 +55,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @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' @@ -72,7 +72,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @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' @@ -91,7 +91,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @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' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index d4bd2f9ac759..51859ce26a5e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -24,7 +24,7 @@ import { export interface GatewayHostnameConfiguration { /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -39,7 +39,7 @@ export interface GatewayHostnameConfiguration { /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @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' @@ -56,7 +56,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @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' @@ -73,7 +73,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @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' @@ -92,7 +92,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @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' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index 48f2f7894751..a41c3a8d9396 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GlobalSchemaContract, GlobalSchemaListByServiceOptionalParams, @@ -25,7 +25,7 @@ import { export interface GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -36,7 +36,7 @@ export interface GlobalSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -49,7 +49,7 @@ export interface GlobalSchema { ): Promise; /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -62,7 +62,7 @@ export interface GlobalSchema { ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -75,14 +75,14 @@ export interface GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > >; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -97,7 +97,7 @@ export interface GlobalSchema { ): Promise; /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts new file mode 100644 index 000000000000..a26be7a75349 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.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 { + ResolverContract, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolver. */ +export interface GraphQLApiResolver { + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @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 options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver 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 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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the GraphQL API Resolver 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 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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise; + /** + * Creates a new resolver in the GraphQL 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 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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the resolver in the GraphQL 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 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 resolverId Resolver identifier within a GraphQL 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 GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise; + /** + * Deletes the specified resolver in the GraphQL API. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..d2bba1d665a9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.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, + GraphQLApiResolverPolicyListByResolverOptionalParams, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolverPolicy. */ +export interface GraphQLApiResolverPolicy { + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver 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 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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @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 resolverId Resolver identifier within a GraphQL 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, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index b94d8b460d25..2be3ae28bb90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -28,7 +28,7 @@ import { export interface Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -39,7 +39,7 @@ export interface Group { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface Group { ): Promise; /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface Group { ): Promise; /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -80,7 +80,7 @@ export interface Group { ): Promise; /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 @@ -98,7 +98,7 @@ export interface Group { ): Promise; /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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 diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 342840405955..3eb645744d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -22,7 +22,7 @@ import { export interface GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface GroupUser { ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -50,7 +50,7 @@ export interface GroupUser { ): Promise; /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -65,7 +65,7 @@ export interface GroupUser { ): Promise; /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index 709832cf4a8c..c5317c014fbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -31,7 +31,7 @@ import { export interface IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -42,7 +42,7 @@ export interface IdentityProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -55,7 +55,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -68,7 +68,7 @@ export interface IdentityProvider { ): Promise; /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -83,7 +83,7 @@ export interface IdentityProvider { ): Promise; /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -101,7 +101,7 @@ export interface IdentityProvider { ): Promise; /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -117,7 +117,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 24d2feb9be63..8dd3f606af8b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,8 +23,14 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; @@ -34,6 +42,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"; @@ -53,6 +62,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +75,10 @@ export * from "./productApi"; export * from "./productGroup"; 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"; @@ -73,6 +88,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"; @@ -81,3 +99,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +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 91faf0f923b5..9b26a41c56f2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -19,7 +19,7 @@ import { export interface Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -30,7 +30,7 @@ export interface Issue { ): PagedAsyncIterableIterator; /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index af2ca6fd832c..8ec31d0af0c0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -27,7 +27,7 @@ import { export interface Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -38,7 +38,7 @@ export interface Logger { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -51,7 +51,7 @@ export interface Logger { ): Promise; /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -64,7 +64,7 @@ export interface Logger { ): Promise; /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -79,7 +79,7 @@ export interface Logger { ): Promise; /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -97,7 +97,7 @@ export interface Logger { ): Promise; /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index 86a6969ff0c9..d325fdb15112 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NamedValueContract, NamedValueListByServiceOptionalParams, @@ -33,7 +33,7 @@ import { export interface NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -44,7 +44,7 @@ export interface NamedValue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface NamedValue { ): Promise; /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface NamedValue { ): Promise; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -83,14 +83,14 @@ export interface NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > >; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -105,7 +105,7 @@ export interface NamedValue { ): Promise; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -121,14 +121,14 @@ export interface NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > >; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -146,7 +146,7 @@ export interface NamedValue { ): Promise; /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -162,7 +162,7 @@ export interface NamedValue { ): Promise; /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -175,7 +175,7 @@ export interface NamedValue { ): Promise; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -186,14 +186,14 @@ export interface NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > >; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6df394bd96f5..6bed7641b6b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -18,7 +18,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -30,7 +30,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index a5719865ce1a..344725e96540 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -22,7 +22,7 @@ import { export interface Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -33,7 +33,7 @@ export interface Notification { ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -46,7 +46,7 @@ export interface Notification { ): Promise; /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index b720f0838181..0d0742d5c743 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientEmail { /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -49,7 +49,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -64,7 +64,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 16feb4ea5822..1e31f45716ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientUser { /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -49,7 +49,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -64,7 +64,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index eb15628140c9..580369d0e3de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -29,7 +29,7 @@ import { export interface OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -40,7 +40,7 @@ export interface OpenIdConnectProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -81,7 +81,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index b287f56a4ad0..f5415a244e27 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -17,7 +17,7 @@ import { export interface OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index 44d441b19c73..dd3d17095902 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -15,7 +15,7 @@ import { export interface OutboundNetworkDependenciesEndpoints { /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index c69604e0a097..f003204a7420 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -6,25 +6,26 @@ * 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 } from "../models"; +/// /** Interface representing a Policy. */ export interface Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -32,10 +33,10 @@ export interface Policy { resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams - ): Promise; + ): 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. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -48,7 +49,7 @@ export interface Policy { ): Promise; /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -61,7 +62,7 @@ export interface Policy { ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -76,7 +77,7 @@ export interface Policy { ): Promise; /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 4602fdaf931e..452f51ef1fdd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -15,7 +15,7 @@ import { export interface PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts new file mode 100644 index 000000000000..1d71ccad7dd5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -0,0 +1,129 @@ +/* + * 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, + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse +} from "../models"; + +/// +/** Interface representing a PolicyFragment. */ +export interface PolicyFragment { + /** + * 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. + */ + listByService( + resourceGroupName: string, + serviceName: string, + 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. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): 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 id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): 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 id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + >; + /** + * 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 id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): 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 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, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): 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 id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts new file mode 100644 index 000000000000..2ab8e758ca2b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PortalConfigContract, + PortalConfigListByServiceOptionalParams, + PortalConfigGetEntityTagOptionalParams, + PortalConfigGetEntityTagResponse, + PortalConfigGetOptionalParams, + PortalConfigGetResponse, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a PortalConfig. */ +export interface PortalConfig { + /** + * 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. + */ + listByService( + resourceGroupName: string, + serviceName: string, + 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. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise; + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise; + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration 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 parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise; + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration 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 parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index 13f28be90928..e0f92866e5f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PortalRevisionContract, PortalRevisionListByServiceOptionalParams, @@ -26,7 +26,7 @@ import { export interface PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -37,7 +37,7 @@ export interface PortalRevision { ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -51,7 +51,7 @@ export interface PortalRevision { ): Promise; /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -66,7 +66,7 @@ export interface PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -80,15 +80,15 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > >; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -104,7 +104,7 @@ export interface PortalRevision { ): Promise; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -121,14 +121,14 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > >; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7c5274a3d18..a7ce1b08a936 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -15,7 +15,7 @@ import { export interface PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 47769f028af9..b6f6c5b9b32b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -28,7 +28,7 @@ import { export interface PrivateEndpointConnectionOperations { /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -39,7 +39,7 @@ export interface PrivateEndpointConnectionOperations { ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -65,14 +65,14 @@ export interface PrivateEndpointConnectionOperations { privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > >; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -87,7 +87,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -97,10 +97,10 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -113,7 +113,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -124,7 +124,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index 66b903667cd3..f6a72fe292f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -29,7 +29,7 @@ import { export interface Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -40,7 +40,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -51,7 +51,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -64,7 +64,7 @@ export interface Product { ): Promise; /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -77,7 +77,7 @@ export interface Product { ): Promise; /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create or update parameters. @@ -92,7 +92,7 @@ export interface Product { ): Promise; /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -110,7 +110,7 @@ export interface Product { ): Promise; /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 4e19ecab6cd3..7051be981009 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -22,7 +22,7 @@ import { export interface ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -35,7 +35,7 @@ export interface ProductApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. @@ -51,7 +51,7 @@ export interface ProductApi { ): Promise; /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. @@ -67,7 +67,7 @@ export interface ProductApi { ): Promise; /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @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 apiId API revision identifier. Must be unique in the current API Management service instance. 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..621e940bf2c1 --- /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 b6c66bd9df75..e44872094a3d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -22,7 +22,7 @@ import { export interface ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -35,7 +35,7 @@ export interface ProductGroup { ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. @@ -50,7 +50,7 @@ export interface ProductGroup { ): Promise; /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. @@ -65,7 +65,7 @@ export interface ProductGroup { ): Promise; /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. 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..3daafe58e8e2 --- /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 8db0d28d5500..8dd6df7ea846 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -6,25 +6,26 @@ * 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 } from "../models"; +/// /** Interface representing a ProductPolicy. */ export interface ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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. @@ -34,10 +35,10 @@ export interface ProductPolicy { serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -52,7 +53,7 @@ export interface ProductPolicy { ): Promise; /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -67,7 +68,7 @@ export interface ProductPolicy { ): Promise; /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. @@ -84,7 +85,7 @@ export interface ProductPolicy { ): Promise; /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @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 policyId The identifier of the Policy. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 871a22f687f3..804f5bf882b7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -17,7 +17,7 @@ import { export interface ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @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. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts new file mode 100644 index 000000000000..540bdf5fa04a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -0,0 +1,100 @@ +/* + * 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 { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ProductWiki. */ +export interface ProductWiki { + /** + * Gets the entity state (Etag) version of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for a Product 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 productId Product 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, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for a 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 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 Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from 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 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, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts new file mode 100644 index 000000000000..878251c2a6a7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -0,0 +1,28 @@ +/* + * 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 { WikiContract, ProductWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ProductWikis. */ +export interface ProductWikis { + /** + * Gets the details of the Wiki for a 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 productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 6c6dffef8515..8b06db3207dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -36,7 +36,7 @@ export interface QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index da9ef6b67f9b..49641b09add3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -37,7 +37,7 @@ export interface QuotaByPeriodKeys { ): Promise; /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index 96384a2f7965..b65177a34f8c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -14,7 +14,7 @@ import { RegionContract, RegionListByServiceOptionalParams } from "../models"; export interface Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 3f7015b510e5..0069ea94bbfc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -25,7 +25,7 @@ import { export interface Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -63,7 +63,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -87,7 +87,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -111,7 +111,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -135,7 +135,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -159,7 +159,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -187,7 +187,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 0c6dd957763a..1c4b94321adb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -21,7 +21,7 @@ import { export interface SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -32,7 +32,7 @@ export interface SignInSettings { ): Promise; /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -43,7 +43,7 @@ export interface SignInSettings { ): Promise; /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -59,7 +59,7 @@ export interface SignInSettings { ): Promise; /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 56ee69ef6406..1dbcacd372e8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -21,7 +21,7 @@ import { export interface SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -32,7 +32,7 @@ export interface SignUpSettings { ): Promise; /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -43,7 +43,7 @@ export interface SignUpSettings { ): Promise; /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @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. @@ -59,7 +59,7 @@ export interface SignUpSettings { ): Promise; /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 17b0413f92fa..74d50388f102 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -32,7 +32,7 @@ import { export interface Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -43,7 +43,7 @@ export interface Subscription { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -57,7 +57,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -71,7 +71,7 @@ export interface Subscription { ): Promise; /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -87,7 +87,7 @@ export interface Subscription { ): Promise; /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -106,7 +106,7 @@ export interface Subscription { ): Promise; /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -123,7 +123,7 @@ export interface Subscription { ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -137,7 +137,7 @@ export interface Subscription { ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -151,7 +151,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index b1340408f80e..dca054554a45 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -51,7 +51,7 @@ import { export interface Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -68,7 +68,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -82,7 +82,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @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. @@ -95,7 +95,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -106,7 +106,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -125,7 +125,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -144,7 +144,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -163,7 +163,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @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. @@ -182,7 +182,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -198,7 +198,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @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. @@ -214,7 +214,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -230,7 +230,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @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. @@ -246,7 +246,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -261,7 +261,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -276,7 +276,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -291,7 +291,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @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 tagId Tag identifier. Must be unique in the current API Management service instance. @@ -306,7 +306,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -319,7 +319,7 @@ export interface Tag { ): Promise; /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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. @@ -332,7 +332,7 @@ export interface Tag { ): Promise; /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create parameters. @@ -347,7 +347,7 @@ export interface Tag { ): Promise; /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -365,7 +365,7 @@ export interface Tag { ): Promise; /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @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 ifMatch ETag of the Entity. ETag should match the current entity state from the header 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..2529567cae02 --- /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..84c46191f201 --- /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..c715c4c30473 --- /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 ed9c78851f25..9290bd0da6f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -17,7 +17,7 @@ import { export interface TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @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. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 9e9bb9288bd5..21cdd2908a90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -32,7 +32,7 @@ import { export interface TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -43,7 +43,7 @@ export interface TenantAccess { ): PagedAsyncIterableIterator; /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -56,7 +56,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -69,7 +69,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -87,7 +87,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -105,7 +105,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -118,7 +118,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -131,7 +131,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index b025d713a3d4..12b13c1b73e1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -16,7 +16,7 @@ import { export interface TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -29,7 +29,7 @@ export interface TenantAccessGit { ): Promise; /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 7ddc553fbb14..81a7460fa896 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -26,7 +26,7 @@ export interface TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -39,15 +39,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > >; /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -63,7 +63,7 @@ export interface TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -76,15 +76,15 @@ export interface TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > >; /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -100,7 +100,7 @@ export interface TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -113,15 +113,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > >; /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -137,7 +137,7 @@ export interface TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index a9435f3e6012..4f8c4c6faa9f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -20,7 +20,7 @@ import { export interface TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -31,7 +31,7 @@ export interface TenantSettings { ): PagedAsyncIterableIterator; /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index f62b70593d15..0b6102704805 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -33,7 +33,7 @@ import { export interface User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @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. */ @@ -44,7 +44,7 @@ export interface User { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -57,7 +57,7 @@ export interface User { ): Promise; /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -70,7 +70,7 @@ export interface User { ): Promise; /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create or update parameters. @@ -85,7 +85,7 @@ export interface User { ): Promise; /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @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 @@ -103,7 +103,7 @@ export interface User { ): Promise; /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @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 @@ -120,7 +120,7 @@ export interface User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -133,7 +133,7 @@ export interface User { ): Promise; /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @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 parameters Create Authorization Token parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 5044849cb033..0479110f882e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -12,7 +12,7 @@ import { UserConfirmationPasswordSendOptionalParams } from "../models"; export interface UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index 1dc89d586dce..a2fbd8f792de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -14,7 +14,7 @@ import { GroupContract, UserGroupListOptionalParams } from "../models"; export interface UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1c9fb3765d37..1a242a6c686d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -17,7 +17,7 @@ import { export interface UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 8ed8472b2794..548a266d86dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -19,7 +19,7 @@ import { export interface UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @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 options The options parameters. @@ -32,7 +32,7 @@ export interface UserSubscription { ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @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 sid Subscription entity Identifier. The entity represents the association between a user and 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..54ab4b0b7b88 --- /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..7fef06151f76 --- /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..d94b80bae004 --- /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..af57497d617a --- /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..0f00c1c574ce --- /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..7a4954ba15a4 --- /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..f9519c8aaf63 --- /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..940a303f9bb2 --- /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..36fc60304641 --- /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..4ae68b6257ba --- /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..317b1d605452 --- /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..6ae9d1be0a0d --- /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..157f0fc5e1a6 --- /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..36d234f1bfa5 --- /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..4ac9483b5120 --- /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..9c61059cc061 --- /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..032695411cc1 --- /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..3a5876e4ec30 --- /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..205c96bb7c3d --- /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..4fe4c50fa31b --- /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..edaa74fafd4c --- /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..a417c77793dd --- /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..5678e472e5ca --- /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..1a317b961068 --- /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..3f33fedf8e44 --- /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..3d2eac6c1065 --- /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..06bd8954941d --- /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..6e26dd0aaad0 --- /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/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /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"