From a6e7619f94a5e03b2ace9246edbd7a3442bc8b54 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 May 2024 15:11:43 +0000 Subject: [PATCH] CodeGen from PR 29207 in Azure/azure-rest-api-specs Merge 1b17b30d80e177c11bd90496a9d0a4f56a1c9546 into 950be8e3f9f0937d9238b11714d895712046c2b8 --- common/config/rush/pnpm-lock.yaml | 777 +- .../arm-apimanagement/CHANGELOG.md | 810 +- sdk/apimanagement/arm-apimanagement/LICENSE | 2 +- sdk/apimanagement/arm-apimanagement/README.md | 2 +- .../arm-apimanagement/_meta.json | 8 +- .../arm-apimanagement/package.json | 28 +- .../review/arm-apimanagement.api.md | 3593 +- .../src/apiManagementClient.ts | 322 +- .../arm-apimanagement/src/lroImpl.ts | 6 +- .../arm-apimanagement/src/models/index.ts | 14112 ++++--- .../arm-apimanagement/src/models/mappers.ts | 30897 +++++++++------- .../src/models/parameters.ts | 1303 +- .../src/operations/allPolicies.ts | 201 + .../arm-apimanagement/src/operations/api.ts | 329 +- .../src/operations/apiDiagnostic.ts | 150 +- .../src/operations/apiExport.ts | 23 +- .../src/operations/apiIssue.ts | 152 +- .../src/operations/apiIssueAttachment.ts | 129 +- .../src/operations/apiIssueComment.ts | 129 +- .../src/operations/apiManagementGateway.ts | 728 + .../apiManagementGatewayConfigConnection.ts | 537 + .../operations/apiManagementGatewaySkus.ts | 201 + .../src/operations/apiManagementOperations.ts | 32 +- .../src/operations/apiManagementService.ts | 544 +- .../operations/apiManagementServiceSkus.ts | 51 +- .../src/operations/apiManagementSkus.ts | 37 +- .../operations/apiManagementWorkspaceLink.ts | 77 + .../operations/apiManagementWorkspaceLinks.ts | 203 + .../src/operations/apiOperation.ts | 150 +- .../src/operations/apiOperationPolicy.ts | 95 +- .../src/operations/apiPolicy.ts | 91 +- .../src/operations/apiProduct.ts | 53 +- .../src/operations/apiRelease.ts | 148 +- .../src/operations/apiRevision.ts | 53 +- .../src/operations/apiSchema.ts | 158 +- .../src/operations/apiTagDescription.ts | 129 +- .../src/operations/apiVersionSet.ts | 148 +- .../src/operations/apiWiki.ts | 95 +- .../src/operations/apiWikis.ts | 51 +- .../src/operations/authorization.ts | 133 +- .../operations/authorizationAccessPolicy.ts | 119 +- .../src/operations/authorizationLoginLinks.ts | 21 +- .../src/operations/authorizationProvider.ts | 110 +- .../src/operations/authorizationServer.ts | 163 +- .../src/operations/backend.ts | 165 +- .../arm-apimanagement/src/operations/cache.ts | 146 +- .../src/operations/certificate.ts | 144 +- .../src/operations/contentItem.ts | 127 +- .../src/operations/contentType.ts | 106 +- .../src/operations/delegationSettings.ts | 93 +- .../src/operations/deletedServices.ts | 96 +- .../src/operations/diagnostic.ts | 148 +- .../src/operations/documentation.ts | 148 +- .../src/operations/emailTemplate.ts | 148 +- .../src/operations/gateway.ts | 342 +- .../src/operations/gatewayApi.ts | 106 +- .../operations/gatewayCertificateAuthority.ts | 132 +- .../gatewayHostnameConfiguration.ts | 128 +- .../src/operations/globalSchema.ts | 156 +- .../src/operations/graphQLApiResolver.ts | 150 +- .../operations/graphQLApiResolverPolicy.ts | 129 +- .../arm-apimanagement/src/operations/group.ts | 146 +- .../src/operations/groupUser.ts | 102 +- .../src/operations/identityProvider.ts | 167 +- .../arm-apimanagement/src/operations/index.ts | 52 +- .../arm-apimanagement/src/operations/issue.ts | 70 +- .../src/operations/logger.ts | 148 +- .../src/operations/namedValue.ts | 279 +- .../src/operations/networkStatus.ts | 44 +- .../src/operations/notification.ts | 87 +- .../operations/notificationRecipientEmail.ts | 71 +- .../operations/notificationRecipientUser.ts | 71 +- .../src/operations/openIdConnectProvider.ts | 163 +- .../src/operations/operationOperations.ts | 55 +- .../src/operations/operationStatus.ts | 71 + .../src/operations/operationsResults.ts | 72 + .../outboundNetworkDependenciesEndpoints.ts | 22 +- .../src/operations/policy.ts | 224 +- .../src/operations/policyDescription.ts | 19 +- .../src/operations/policyFragment.ts | 278 +- .../src/operations/policyRestriction.ts | 454 + .../policyRestrictionValidations.ts | 161 + .../src/operations/portalConfig.ts | 232 +- .../src/operations/portalRevision.ts | 195 +- .../src/operations/portalSettings.ts | 19 +- .../privateEndpointConnectionOperations.ts | 183 +- .../src/operations/product.ts | 201 +- .../src/operations/productApi.ts | 102 +- .../src/operations/productApiLink.ts | 375 + .../src/operations/productGroup.ts | 102 +- .../src/operations/productGroupLink.ts | 375 + .../src/operations/productPolicy.ts | 238 +- .../src/operations/productSubscriptions.ts | 53 +- .../src/operations/productWiki.ts | 97 +- .../src/operations/productWikis.ts | 53 +- .../src/operations/quotaByCounterKeys.ts | 38 +- .../src/operations/quotaByPeriodKeys.ts | 42 +- .../src/operations/region.ts | 51 +- .../src/operations/reports.ts | 410 +- .../src/operations/signInSettings.ts | 76 +- .../src/operations/signUpSettings.ts | 76 +- .../src/operations/subscription.ts | 193 +- .../arm-apimanagement/src/operations/tag.ts | 507 +- .../src/operations/tagApiLink.ts | 368 + .../src/operations/tagOperationLink.ts | 375 + .../src/operations/tagProductLink.ts | 375 + .../src/operations/tagResource.ts | 53 +- .../src/operations/tenantAccess.ts | 180 +- .../src/operations/tenantAccessGit.ts | 32 +- .../src/operations/tenantConfiguration.ts | 177 +- .../src/operations/tenantSettings.ts | 70 +- .../arm-apimanagement/src/operations/user.ts | 292 +- .../operations/userConfirmationPassword.ts | 15 +- .../src/operations/userGroup.ts | 53 +- .../src/operations/userIdentities.ts | 51 +- .../src/operations/userSubscription.ts | 70 +- .../src/operations/workspace.ts | 460 + .../src/operations/workspaceApi.ts | 610 + .../src/operations/workspaceApiDiagnostic.ts | 561 + .../src/operations/workspaceApiExport.ts | 99 + .../src/operations/workspaceApiOperation.ts | 570 + .../operations/workspaceApiOperationPolicy.ts | 542 + .../src/operations/workspaceApiPolicy.ts | 473 + .../src/operations/workspaceApiRelease.ts | 564 + .../src/operations/workspaceApiRevision.ts | 239 + .../src/operations/workspaceApiSchema.ts | 578 + .../src/operations/workspaceApiVersionSet.ts | 514 + .../src/operations/workspaceBackend.ts | 514 + .../src/operations/workspaceCertificate.ts | 496 + .../src/operations/workspaceDiagnostic.ts | 514 + .../src/operations/workspaceGlobalSchema.ts | 540 + .../src/operations/workspaceGroup.ts | 510 + .../src/operations/workspaceGroupUser.ts | 396 + .../src/operations/workspaceLogger.ts | 509 + .../src/operations/workspaceNamedValue.ts | 901 + .../src/operations/workspaceNotification.ts | 326 + .../workspaceNotificationRecipientEmail.ts | 258 + .../workspaceNotificationRecipientUser.ts | 258 + .../src/operations/workspacePolicy.ts | 437 + .../src/operations/workspacePolicyFragment.ts | 579 + .../src/operations/workspaceProduct.ts | 511 + .../src/operations/workspaceProductApiLink.ts | 427 + .../operations/workspaceProductGroupLink.ts | 429 + .../src/operations/workspaceProductPolicy.ts | 325 + .../src/operations/workspaceSubscription.ts | 650 + .../src/operations/workspaceTag.ts | 503 + .../src/operations/workspaceTagApiLink.ts | 420 + .../operations/workspaceTagOperationLink.ts | 422 + .../src/operations/workspaceTagProductLink.ts | 420 + .../src/operationsInterfaces/allPolicies.ts | 29 + .../src/operationsInterfaces/api.ts | 42 +- .../src/operationsInterfaces/apiDiagnostic.ts | 14 +- .../src/operationsInterfaces/apiExport.ts | 6 +- .../src/operationsInterfaces/apiIssue.ts | 14 +- .../apiIssueAttachment.ts | 12 +- .../operationsInterfaces/apiIssueComment.ts | 12 +- .../apiManagementGateway.ts | 147 + .../apiManagementGatewayConfigConnection.ts | 125 + .../apiManagementGatewaySkus.ts | 29 + .../apiManagementOperations.ts | 4 +- .../apiManagementService.ts | 46 +- .../apiManagementServiceSkus.ts | 4 +- .../operationsInterfaces/apiManagementSkus.ts | 4 +- .../apiManagementWorkspaceLink.ts | 30 + .../apiManagementWorkspaceLinks.ts | 29 + .../src/operationsInterfaces/apiOperation.ts | 14 +- .../apiOperationPolicy.ts | 12 +- .../src/operationsInterfaces/apiPolicy.ts | 12 +- .../src/operationsInterfaces/apiProduct.ts | 2 +- .../src/operationsInterfaces/apiRelease.ts | 14 +- .../src/operationsInterfaces/apiRevision.ts | 4 +- .../src/operationsInterfaces/apiSchema.ts | 14 +- .../operationsInterfaces/apiTagDescription.ts | 12 +- .../src/operationsInterfaces/apiVersionSet.ts | 14 +- .../src/operationsInterfaces/apiWiki.ts | 12 +- .../src/operationsInterfaces/apiWikis.ts | 2 +- .../src/operationsInterfaces/authorization.ts | 12 +- .../authorizationAccessPolicy.ts | 10 +- .../authorizationLoginLinks.ts | 4 +- .../authorizationProvider.ts | 10 +- .../authorizationServer.ts | 16 +- .../src/operationsInterfaces/backend.ts | 16 +- .../src/operationsInterfaces/cache.ts | 14 +- .../src/operationsInterfaces/certificate.ts | 14 +- .../src/operationsInterfaces/contentItem.ts | 12 +- .../src/operationsInterfaces/contentType.ts | 10 +- .../delegationSettings.ts | 12 +- .../operationsInterfaces/deletedServices.ts | 10 +- .../src/operationsInterfaces/diagnostic.ts | 14 +- .../src/operationsInterfaces/documentation.ts | 14 +- .../src/operationsInterfaces/emailTemplate.ts | 14 +- .../src/operationsInterfaces/gateway.ts | 73 +- .../src/operationsInterfaces/gatewayApi.ts | 10 +- .../gatewayCertificateAuthority.ts | 12 +- .../gatewayHostnameConfiguration.ts | 12 +- .../src/operationsInterfaces/globalSchema.ts | 14 +- .../graphQLApiResolver.ts | 14 +- .../graphQLApiResolverPolicy.ts | 12 +- .../src/operationsInterfaces/group.ts | 14 +- .../src/operationsInterfaces/groupUser.ts | 10 +- .../operationsInterfaces/identityProvider.ts | 16 +- .../src/operationsInterfaces/index.ts | 52 +- .../src/operationsInterfaces/issue.ts | 6 +- .../src/operationsInterfaces/logger.ts | 14 +- .../src/operationsInterfaces/namedValue.ts | 24 +- .../src/operationsInterfaces/networkStatus.ts | 6 +- .../src/operationsInterfaces/notification.ts | 8 +- .../notificationRecipientEmail.ts | 10 +- .../notificationRecipientUser.ts | 10 +- .../openIdConnectProvider.ts | 16 +- .../operationOperations.ts | 4 +- .../operationsInterfaces/operationStatus.ts | 27 + .../operationsInterfaces/operationsResults.ts | 27 + .../outboundNetworkDependenciesEndpoints.ts | 4 +- .../src/operationsInterfaces/policy.ts | 19 +- .../operationsInterfaces/policyDescription.ts | 4 +- .../operationsInterfaces/policyFragment.ts | 23 +- .../operationsInterfaces/policyRestriction.ts | 111 + .../policyRestrictionValidations.ts | 44 + .../src/operationsInterfaces/portalConfig.ts | 19 +- .../operationsInterfaces/portalRevision.ts | 16 +- .../operationsInterfaces/portalSettings.ts | 4 +- .../privateEndpointConnectionOperations.ts | 18 +- .../src/operationsInterfaces/product.ts | 16 +- .../src/operationsInterfaces/productApi.ts | 10 +- .../operationsInterfaces/productApiLink.ts | 86 + .../src/operationsInterfaces/productGroup.ts | 10 +- .../operationsInterfaces/productGroupLink.ts | 86 + .../src/operationsInterfaces/productPolicy.ts | 19 +- .../productSubscriptions.ts | 4 +- .../src/operationsInterfaces/productWiki.ts | 12 +- .../src/operationsInterfaces/productWikis.ts | 2 +- .../quotaByCounterKeys.ts | 6 +- .../operationsInterfaces/quotaByPeriodKeys.ts | 6 +- .../src/operationsInterfaces/region.ts | 2 +- .../src/operationsInterfaces/reports.ts | 18 +- .../operationsInterfaces/signInSettings.ts | 10 +- .../operationsInterfaces/signUpSettings.ts | 10 +- .../src/operationsInterfaces/subscription.ts | 20 +- .../src/operationsInterfaces/tag.ts | 44 +- .../src/operationsInterfaces/tagApiLink.ts | 86 + .../operationsInterfaces/tagOperationLink.ts | 86 + .../operationsInterfaces/tagProductLink.ts | 86 + .../src/operationsInterfaces/tagResource.ts | 4 +- .../src/operationsInterfaces/tenantAccess.ts | 18 +- .../operationsInterfaces/tenantAccessGit.ts | 6 +- .../tenantConfiguration.ts | 16 +- .../operationsInterfaces/tenantSettings.ts | 6 +- .../src/operationsInterfaces/user.ts | 42 +- .../userConfirmationPassword.ts | 2 +- .../src/operationsInterfaces/userGroup.ts | 2 +- .../operationsInterfaces/userIdentities.ts | 4 +- .../operationsInterfaces/userSubscription.ts | 6 +- .../src/operationsInterfaces/workspace.ts | 118 + .../src/operationsInterfaces/workspaceApi.ts | 165 + .../workspaceApiDiagnostic.ts | 149 + .../workspaceApiExport.ts | 41 + .../workspaceApiOperation.ts | 155 + .../workspaceApiOperationPolicy.ts | 139 + .../workspaceApiPolicy.ts | 124 + .../workspaceApiRelease.ts | 150 + .../workspaceApiRevision.ts | 34 + .../workspaceApiSchema.ts | 150 + .../workspaceApiVersionSet.ts | 137 + .../operationsInterfaces/workspaceBackend.ts | 137 + .../workspaceCertificate.ts | 132 + .../workspaceDiagnostic.ts | 137 + .../workspaceGlobalSchema.ts | 134 + .../operationsInterfaces/workspaceGroup.ts | 133 + .../workspaceGroupUser.ts | 93 + .../operationsInterfaces/workspaceLogger.ts | 132 + .../workspaceNamedValue.ts | 240 + .../workspaceNotification.ts | 69 + .../workspaceNotificationRecipientEmail.ts | 92 + .../workspaceNotificationRecipientUser.ts | 92 + .../operationsInterfaces/workspacePolicy.ts | 109 + .../workspacePolicyFragment.ts | 150 + .../operationsInterfaces/workspaceProduct.ts | 132 + .../workspaceProductApiLink.ts | 98 + .../workspaceProductGroupLink.ts | 98 + .../workspaceProductPolicy.ts | 118 + .../workspaceSubscription.ts | 195 + .../src/operationsInterfaces/workspaceTag.ts | 132 + .../workspaceTagApiLink.ts | 98 + .../workspaceTagOperationLink.ts | 98 + .../workspaceTagProductLink.ts | 98 + .../arm-apimanagement/src/pagingHelper.ts | 2 +- .../arm-apimanagement/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 289 files changed, 64513 insertions(+), 25444 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewayConfigConnection.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewaySkus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/operationStatus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/operationsResults.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiDiagnostic.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/workspaceBackend.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceCertificate.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceDiagnostic.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/workspaceLogger.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewayConfigConnection.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewaySkus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationStatus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationsResults.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiDiagnostic.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/workspaceBackend.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceCertificate.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceDiagnostic.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/workspaceLogger.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 0aa50c39c00d..a9aabc1ab884 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11265,7 +11265,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-QZ0E3RZB7pUg1bZN5ItGSjX9TUZc+boHlKqirCXSsH8IzCA8TBWImWCYFzXDIMhnk5DZQZUd7+S5MoTWtNqANA==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-QyNMkQBrSPMQA1WJFyuFJMd14vykwwDw7955MmKvLopfcjj+sewnzO4+bIaNC9DwROFRiY8oHGD1HZc7fABncg==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -11297,7 +11297,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-HZSx6lhjPi5qHvHdGJccgLOkO81zZ1uPpbrb/XHkIDJYEgZKztojGreO4E/YfNCWywHBz9HcH2VwcnXG5Dd3kw==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-YIKoS//F+JC5Z5U03+oik6ddqcAUnyYDkanBpy0t6pKx/mrIkSpw+lVv575Mt911JnxS4GzjMskGBwtoelNVSw==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11344,7 +11344,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-iCAJGraXxuPI6HnvhvqvAEsc6J/bDEv5oJf79EEH+aEgVxoX7j8l2utPd3HZUQcS0fy6PvZS0SoKxaV8o6kleQ==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-NIN7uMdpYqfkcL6RqgMwImlrU/cYjQaUThas3kTdOiyYJVB1+i88KSNP0vkn5yhiHuA9Tg/PagvkiBisV+NEtg==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -11391,7 +11391,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-TMcjYfnMtjYkygH9JvMeRQ6/0tushS9oAbPiK8HQXvgfqAdEHfIX14eABYavFiBPOUiuodNriCrXF3OsnHroaQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-e3gc7GLlQFLoH5AOBQKbXBDg0CiRDL+HTvlQgKgoMuays937daJUZ0bPNahhGiUVmD39PmmcPRSKWNJaFSE9LQ==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -11436,7 +11436,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-F0qhC9gs36W1qaV+CqxLt36IB8nHJlEzUNxix/VzmLKtD8V3mniIkpshChzYiebnJNjbxpwGTq+xt/bouutU6Q==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-O9KnUHux32czxiSlcW374f0zP9DdGzzXaabJZuYiomrLGUU8201g6s26DKRzcgsNL/JG8eq4M67mikOYiSnkkg==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -11483,7 +11483,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-Vf7Fo170U5+VKVsZlQB7o8PSsjaoROE5O1knRdMAx6HvIvBT8J8DLMk2MLcxLbLn/u4SNu6DdB21AwyIVf6Nog==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-bFjyePKkhsvdY3PQfILXwbzQ3dSKvIvWNz7di+J9n2dunU3VEE35QNWt92V8rBFVsTyjblGqdbEFRPVg+U9wtA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -11528,7 +11528,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-8YLmzSpFghgvblc3nHGSAkb1t99w6YFPK5LwycwDzoXSbm8v34TaMe//RC/A73OjaLJt6peCDSsXkVU/KcJddA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-K9BlR/HQSbQPbwEAgCqPPDIKEZ30WKLt+Xteh9jEsA7pImFX1nYLBqJIhG+jw/JVMhRkOmtaDsl+RN0FOJmKCw==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -11577,7 +11577,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-y38041Ljdkb8VoAZ0hkf5qCrl6nTVeoQogPMipCxamrWXrj1aYBGgyVmuefZvI/P17kXE9I81zqrrrawYnGm4Q==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-brgEmjbbi4zBMY2W4ori3NJoiMNFUXTlPqW9v90z6vD+nai+GQzAzYO6IzMl1WC8A4kSdImKXePvK8BWRXY2Zg==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -11627,7 +11627,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-4Mp2wIsSdCqKIdF6x5Muz0VeTwNMNJuLAyYFP0u6MMi54YjG6YN7AO0/Ojy8irIhKHYjMtYgyzcjVBQKUsmY9A==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-y6j25M99pYlSstK3r+7DsGkfbXzx7DlAcWfiy9EWcHzp7/BRZ/Dg177z5S4lohg+Jd/9JGGFaxpNIcECH1HTNA==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -11676,7 +11676,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-6nr5OO05e+OLV++CpNwQeJiDe117qAcNaLsW6+TUEB5JlgfPV7GQjflepC9nW0UP7bM/Usjxe/1D5/uqJQA9Vg==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-4SPopXyXGIBZl/+zClplXf5AcN8/WSICaaI+51NQ56xccla9T+K+UtJJPjfq763q1BAiAPGLOYyJRW0UDmh1aQ==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -11703,7 +11703,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-eGjg+bP9U9y4AsSuJTTQJXr1k2csDmjD/6ZZnySt0KkrjJheCO4xh22geeSvkuEJBHyodoDy8YDN+LhOuggx7w==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-XIzn2uwGPF4f/p7zQ16REsiz9ONPfc2nt0aL/G1p+7kavtRwesAc6zjNxx5kmQu07IuN1GOaW75za3EsfiGcoQ==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -11748,7 +11748,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-aisDCcckty5/Qw10RuHTrbDf8kf0WgTR1WcAgQ9REcu9h8Gmm3YHaom0CYHiFmIz1zk4RTII4RUQcthYbFM5pg==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-ihwgmnQpcNkQOaZssCcb7vo90Q9NGp8yw3GIFrbsaq7jeOzo51oplw/C7+gWVMc97eRI2ohE7uVygaIfOiwAug==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -11796,7 +11796,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-TwO9ZrOIhwXstbhTsU9mTvzm6Cr7Gaa+HDt/4CkUsyRXyltW97WSQ0czdMoZS3+icSErRJYRprBS2IyO04KoZA==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-nGLU9Cy/C48q4NQH/g2PCch0u+lw/vQjTssiVpNKc+NOFKQliTF/TFkkXevsAcanh8elPXKT1gp560CEBD44rw==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -11841,7 +11841,7 @@ packages: dev: false file:projects/ai-vision-face.tgz: - resolution: {integrity: sha512-MSxrXH46y77Vn7DU26EJAGrJC1s103JsoEI1EBVxa7c0CR33/H6ZkXRoDt8SRWW6pE5AFdqEKG8YShN2DMh2Ug==, tarball: file:projects/ai-vision-face.tgz} + resolution: {integrity: sha512-soAai5Dkj4Dh+EhIwfe6NNkFmTnw5os6uc5zrCu0Ld0qeI++SCZz9x7gAIvQPcb9buL7DrJ02mz0JiL3TzWvUQ==, tarball: file:projects/ai-vision-face.tgz} name: '@rush-temp/ai-vision-face' version: 0.0.0 dependencies: @@ -11880,7 +11880,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-XoJviqs0EVB+5vHHC8cukN0rC+ze+fdGdhtyfyR949LXDZa/9npCnpu1cuZFaPoSK0eu+vYxOJi/kZA3Ar6Tag==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-iTZJIfDxQPc54T9fL9/8QK4wb+1w/2+K7eh2MZn903yAG08gnhXzLXk6rC+VlqEaiItmLZr7RLBHWmKGaYsGYQ==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11925,7 +11925,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-JbBeeqxT29/SMna+CRVXEaTh6A23O9GMDd8djYxz5bdFEhWxGwqvYVos0V/6pp82Ohmp57shkbg0t9y5urOubA==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-lMLjThvDdunhTGs97/cZydb8QqJM9THIOU83yszP/TU5pRgQgJ1hbTSkENYZevGdnRvo2KF8u4tkRepwT+GBzg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11967,7 +11967,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-fRrbQBQLd8yZNoZLM2bVchzax18ri041vIt9m42eFaLioP1KZesMVobBkEqf6qVhFOn47TMju9SFMfSMmQ3Idw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-pjIub72PGhWxnGf2w/fDNSFgqU/Kx6xZrbxUAYMRypxSCuPhERVPDT6tu2bakNa6o31u5NPuEm2lg5VtIfS7eA==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -12004,7 +12004,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-xS3GFMp6rhn0j3PLEFnWq5O0vL8ANSw5a3DM5JT3jdITPTBd2iJC/9Ntyh9aj74yMz13rGal+w17Px+qOKhaxA==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-VNYxYcU7mbxAE0503atyo5jvkr/g0b8GVZBcE2JTFh6VMWXHZRtaUmwTPYmHFwwJ7Lr5mubT1GKvpTvfUJCq6w==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -12046,7 +12046,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-4n/AKXjIFLfkmxdcXVmi6ZsOeyVJe7MhJVu9hmVAPf1C5fTOZDqCjKDiZ6UoySFVQwA5J9SeSvrt4DEaNrK5xw==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-0hN4zHzXqSx4Sv/N3QEL7ahjbTXvrmO05r3y6GPMNq+6AlLl7uHTAD6DfCHpSYlaV+lLQq+ODveQKUSYx3Ya4w==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -12074,7 +12074,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-46uFsEF53m7H7vEkK9M5QgqcBxKNw0odYTixjlf6I7kkjGFgQX0388Yjd8eTdsBbAI6HY59uaJPHWEzAVkatwQ==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-DtgnjSI/ClXFSU+VynFUq66VKFdk9zXSpKyCZ9zCoo97F7+ZTQY7p1idG+HPAMiluIyUugPBfDW2IQN/hFFVrg==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -12103,7 +12103,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-hpMtD6tCsrz/UQkre+nKHCWWEiOkl287AIdOzU3FRO+frq8fvZ2dJ4ROs9XAPmvv7V3YittnVVxyWUhGILmhjw==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-5BpkKa44miE0VH587+jqxINWYLsMGmM3Bkg6QBfGdVwqFgrq4sZKSPpquoPLt4K/nQnHUBTs3RNpMZuP+UQYWA==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -12132,7 +12132,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-/PQPMfrsBKFGoVPRTpVmlLoV9j5cYZjNYxLUj9B9+VL7CljtvIKIQvNW1frmOA9UBD/tMpU1hO54Skv0zof/9Q==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-03HM2Bx6+knOBc8hvWGtEOupSEUOWeNfVxcu5OcyKKQc96xXOtLbIFXkUQM8QImTyT90ryRzaeyB9pRrK0ssIw==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -12162,7 +12162,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-qw5NGvTpjnkp19UXOPslhDhzsuhT/c8l0XerShkRA4hUdQnVRbVjiUSvAIa6j29dhykPU5Gd2T0RNz8VIFPHbg==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-MgKVxcihtOSZZnV1K5M4R/Qm4T6giJaV53iCogC2rV8cB3hyzweEJkIr8xFs9aDduHRV8hflXghTkoMUwUrXqw==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -12183,6 +12183,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -12192,7 +12193,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-kAYEheOc/6MjuSrvSaoxOGHfmMj8PuZDQfyjnzLdHloUtPaczM7hixmZtqAcUJcPvq42U7Rycq3QtgWf34yA5g==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-9sn969aZYnAGicmEOTkxX3+sAgDLqVugjhsuu9OEzop8QVFY3xk+YjH1Tg8DoAcDQ9NRg106o/8cMhJSFyrsFg==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -12221,7 +12222,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-iapgi1DwZGcDL6Oy1VNg80Nl4xWiQ1LiTinbcnY53ACteC3jP5QxMWa7R6GJtU9xOgTtPWHTXX9Zutw1tc2dvg==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-vhMz0aVWBB5i61Y4ed6CiBDJkOBrIr+qoDLxUXas47SkbyrA03rEQ0TbNkQAP22ragEVSAD+XK400hLSOjsL2Q==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -12251,7 +12252,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-aO1U72geingTSGhKO7bj/QxqeyF1suw86Rc/hnIGj5a91e+41mwTX0p0JW/d0MNelVfXwWfNJIgbRvVibllqhA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-5CdbeO1IFlnvg6IK3AmC4+lAcpYv1ETJE91Yfpk33AzVi90PPVlmnZ8i0pMBkUdYWl9rqxeZHwEZf7YK/vULcQ==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -12281,7 +12282,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-0vRtSGFW0eqMFp4ErlCMkiCGYqeCsmfegVz3R2EjMyqS+vydUI5OKtQWRgG3c8kacxbeC3lh7pDz87w2v3f9bQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-0pblb4YxNqqK85WDJh+AURSCDOFrMozw6E7NM0pw4eB4AQ3iRz2UlTgyx+Z/Sb56uZVM7gTUxFtj3AiSWUZoVA==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -12308,7 +12309,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-a2FqK4wHZahTc6S8Mdj9sMUw+Hp9dscWJhJQBGCnxGlTkl7Z5yMgGT8oR1TJR8AfvrWlRCeqNeu8KAioPcS0wQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-tR5b5dY+3RToVwVjqVz9TjAeeusanyWLdjba0PKXInK5vfFDtlq3MmQsdk0uRcGleUw4wQgwY/zWHYfz5x7jOA==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -12338,7 +12339,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-6tSKM0h7zjubB649Rf1vVd4OruJ4ogoqN60KPnqFZ7+31XWb3uFTlw51mdUSYv1oEPs/sEDTi2b/opNsJ7VMeA==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-ty0dMNeEV6BYj7X9wqgW86iHPuaXcM0lAES4/XffcGi7IzZVfuzg0li8Vena/FOmW2SlqDDmxT0/RJNMNnLKaQ==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -12368,7 +12369,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-whUX2YPHhh1/1B8yijOZ+MVaMny4mzXsvIeYbeTimDlH5dH4rZyo5NCfoNa2tP7cPqKMYuMmS7TR+CZH+JhH6g==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-Apz1K4e7aesryi0AOP34AxNltFvAPsP45TV+2XenHAxNl5ygfZT+CFnFOFZfJCNgk/Ewh/QqL6vQIRvzr4MDwQ==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12398,7 +12399,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-TZ+pwPsX4jXB9tKeA/BvuZ5VLmc9U5zyHyMwzJKzvqkwfOX9hRW3UvW4k3kVftlX2Rqrn4fFQwVZiZjfXMOfIg==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-tlVIi+9KEEe1c396LdNzAp1KE387pmk8aLu1cjg2G3KjYdp5f2WVI7L9H8RNGCtTrwPv2Hg97Z8txnwe5E9YjQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -12444,7 +12445,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-PKjfzziOiYxgAA0a4ZIpFY1qlLuIzQ3CzkIZNyk6vQuPRRVq61xoNhM3FyQvtXJkitiCb8Loh/30YyL/QiPHgA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-ma2TgG60LV1yItrVF4C7B087d+k0tSs/jjPfArugBJUka1AKfJddjKblL+1nWra/V3GjdtON7mif9wzTcfcV9Q==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -12474,7 +12475,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-4F9tLM3y4f0vvq49n1pSLDJaEUcKZ9QIvKMrtH5egIdNeYgh7vLYM9rfpMHJTA2CiowYWyg7sgPXa5JDmkEvlg==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-ZpKkQ7nL15UcYHsPuO94vmMWx5YvBUls1OY/j9MFmof1LP8FgPACfD9TIScidhM7ZAkN5l+zMlwRTB6mWIIE1g==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -12501,7 +12502,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-DqP28/Rs+gO7bSS66OpdWldz09504z1uzoDKQM9PZqR7pcaMxNObnRPjM2vlfGRsPBLvWjKBlunHBG9fXYbesg==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-M1upRU0MOdHmzaU4l4K2SxdJ0CJOAyPbSMEEh7yZqAoC/I7IkfB+JA0x4uwqUMJq9ivHLpZQG8VLrpfRMhaUQA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12529,7 +12530,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-qSxeQYBN1XKMBYY+cVj3+biEV06litUjNR+KOol+ZtCSj241Y0oP13JrlE0SrxPXYYaOj+U4GKcDqbBhwF/RKA==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-nfy8arolZejYYp2RM3UjjrMiHyykaAPVfBXzGEF+xf+vOPVvf8kWakESduqWY8HghbMnGE/Nf5q5ge8GDm97Wg==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -12559,7 +12560,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-lq87gvc5pAYa1/MAeQLaviX9fc33iq/2D/pi4gteOf+bbx6NZJOWKSAiWthJGosZutv3ds3nBQ91GwiWdQMWRg==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-ds3ivqdQDfHHDy09XwQWiCSKLtbh2eLK02WzJHAwLe/AUYSsmrrAKwbxWchjWmJKsBGLOxPelHDUBhseIBZBRg==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -12587,7 +12588,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-Hop/T9O6fMv+7I96zSAL5BNao3YeUE19LGUDuBJZZR+tPbL6meodzAaEoZhSrFgepY1RmPxonuMN3X0UGtYniw==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-SJQRTguNauleDan4YtWkjJC3DD+VtCOUnljoO8htFtIith3PluNsMFT9oOxiHrqsv8+wJ20KDZ17mjwYyNq95g==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -12617,7 +12618,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-mTOS9gnSgQeVjaXOODq73/MxYLvfL+gotRZ8G7yixnLelChfDK96qyaYnIBluZLAKQJ+UNyYjpNla4YhheFrQg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-a18JtfHB9CiIXMyh+bqd1UHcjJqfomgibayRWgUemCeH6t9W7PWHYlIq5+0V/8MtjuJa2Mjrc0v8npl2t50qTA==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -12647,7 +12648,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-nmhJXSdVKJJdhkfFDcGdVj770fTQDy/Sl6ShPydOJzvpHG4+pudqysik4HW/ftlEVmlAm+KcRKTviSsxIpWy9A==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-TU9BGdnHF5ib87zgQHQyDr+ftp0o3af8SaTG9v55+D7Wz4NKEME5j2DqK1i1jnUUBobtlCj8DidS/8Mm/8ElRw==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -12676,7 +12677,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-hu9x6gVISMUJx6VDeZAQbWxQEvdOVB+DmzRVkhgYVIZr+BzbWtaj1IHuLZM6h+3PPYhfGyls303vnPb32TKehw==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-+XjcjuES/pBub1qxpRJVJc/rh5MDzvt7x2lL/+1HqhN0TUgzoUq/vYv+hgRtvFQTLJGOHULccTBvQGJAqsZFCA==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -12703,7 +12704,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-nLRq05d5Sl0851EDg18dmJ13RSjc6ieZKCcIdB8ilS8v8SuHFZxFKh/5gZvgVGFBFgOZNwVPUKZ3tezWk/JVPA==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-YKx28o5Lmc3QIWJT1D6EJ+xHmCIa88iiRl0fkmzS6ri1ZpaD1jbt5YBmT9H/F18wPQ/D2dR9bhtiaq9ht6mWdw==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -12733,7 +12734,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-guuc6MMlWahsA5b57gRskL4v1prXdCAmWiFo4Rv0ANpF22qAxrMRV/5i8O3oCZSv8ExdgSVBj+BmLVBR+BWsQQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-MHM8KKCWsz6p5pWBa+ni+wEtDRS87r3T1RalaYNjWicFwj4PNIA4bps3AgXnrMMgJqZlVO0JNgp1EKbSfeX48g==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -12763,7 +12764,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-EHowwGdBPNvp4oIMAOQXNPSFr3mMko7qfWr43Q4eH+sNBj6YPft0k+USkWyOQ2lcKOTBF0SddisrOUd/7jn0bw==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-sJ7cHVAQxUZ+/gkh1e4dSMSXKQmT0whaTnswSrfXCr0MYW6LbfDKwEyRIkW6Yet6hzIIdAB9erddf8zdxjbNfg==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -12793,7 +12794,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-uY/GXYonZIqqgk7DLTkc9ejZQ4MMaKn6T1hH2/WAKbblDvxubI/oWYWEPrUxveAObAZEaDOI8cBctfrzLeeeeA==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-GUc3kXnlOoK2tGKsyEPEy4M39kkRrFUB0a4Ja+LlRsX5ia1/b6RuIjliBf+ArgsGtN4mQtgbNQRSrAkfp9f4vw==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -12822,7 +12823,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-3ZtaCA+1LSMf5cMqtZLXjir3NvjaE1Zz0JRdo1SeGdG2net0Wl8OXL/LgHqme/M+vNVfet7uv2yw8pB2u5Gixw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-Eq6rb2WZ6pvbw8caLmTH6C6HiU/Ku9XkC0181tbgMf+MASmsIj3sM3FvE2l0Hmlc546wRkX2w3YBBfJcGw/ZVA==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -12851,7 +12852,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-G2MhZd6mXFj8U2E72/U9LSL1iqHv1nqlgcL5otZR8wq4KBhpVSaRRDHx5LpW9TOlQ+OzP1Ydnko/Mu0oKWvYHg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-6lrDqa5ijtWtJ3ROUk0vnTfTQ3Iiu1M4JM0Ar7xYAbXd1nv1i1Ggb8mJuJhQ+iCVMHNs5eXMFVEZgiMNJ4TsaA==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -12881,7 +12882,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-bwve/TRV3QK91p0HCg5fYZ6H5mIFIChusBt+s2G8r5WTs2xGhvcxANsFimxkUTSK0I21bmqNvJO5pxx94YH3IQ==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-cQZtpoog9FVwc/Tf9gqbv3f4tdMFO2hdnY24eGUAGqnJP7G8THm88e3NAA0WBfphlR/nC1HbfbBgFfM8GnsazQ==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -12911,7 +12912,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-RopFbyzc+xCSkChS/TRZS2/Jc2gz20n+Ci7IEF5yf/HVOW1hk2o2zbI97LUh3R0E7Vah4VRdmJcC10/PiND7YA==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-ZDolxwkx6zE6VYo6pBRoC0hMViB4ZTb+vwtK2IU0mw2/Wbi95um2IyzP90c/QBSvLam/DC8xRVdVWNgUhkOVmw==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -12938,7 +12939,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-lCTdOatplptheBSSJBDGoqHZ07REfY+HjVeUJFqyZq7O5tBs7T3C4B647gztgwRGwCdpZuLhbzoOUnAVuLmjhg==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-pZhlztz/mqUH7gyprhhAUI4W6Qig9MZJSok5A0LRH4Fxcnzx2uUlVUn7u2Xf/VLcHcpHfaJLFLGURQHeO3HnHg==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -12965,7 +12966,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-sU++TWVH6yYx7AlGU2P9vb3zgV7ZHXauGcyqEXDafNPavJvz0Efq82cqOxNDVKcgEPJ3LAQGvhA6uf+mXQ9xcw==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-Tvz4NRZorCynnGHunqsg1GsvC+JKyZcFABURmpXYX+YTYUzW/0u7zIU/qC07St3KZLKxsmHl0J2GHQe9vOtj3g==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -12996,7 +12997,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-eVHMyz50I9iAgHKmvGnFcHSKt+Ue/BO14h5QVcn4hWRJj8MMS+AiGKdcmy5xAGW4/l7AZrY/MJPaLQUB05CgYQ==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-d4L6DkRzWiD0z713gSD3attJGYO5hJ5ym37WbWbf4vjAeN/xQo5V54cvj+LwNb2448qVaHgnzNFDklpZMRSvCQ==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -13026,7 +13027,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-sYqIy6shQSmpsDwAucMGZHPyztLjnpwGjHI9CC3iUQwgc58EbwAqe/Cv1SkfJLYRlVSVcvmpRVB650I8StaXIQ==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-eimMoCEXqNCN/uBQ2qYqOdVWXXytkbDm8lijw+G5qw6Zj4g80mVWTHebNU/mzfqM/LdlBIjgKQTlgY0tC1l44A==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13054,7 +13055,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-5iiFDyT1o4aX4V2+FSHDPgjUYJWw1laPRpXWUlj7i+aWysMwqTsgvNdcip0Ov2sYb4nTxE6xET58qGwVaXobwg==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-UkGfaswQUf4IrCsIafxZm1pZdm6ARzhwuWY7wdHS9UNPKBOUN/s33ajLHYgswGxeCWMF9yM0bpKtB2CdwcRoSg==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -13081,7 +13082,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-vCIt4Y3MOl70j9eEj/Aa7Xvigmyqzh4/l8fMJznWdTQWoieCbu3IYhF9gqkBdMPitdiBbIZTBngAbxpCSYNFoA==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-HcWHFGs3LkI2cObWbHBgyLbtkUANRx/CcpQB94Ij1bRecNnKlECSYUWO/Sbaa/KuM0gRC4Qe5qMhF8hJZx6TCw==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -13108,7 +13109,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-SZl0h9qRxxIedVdvEXUmJ6SzYggsek9T0HjDpWWQH8/WaU4kPP7tOUDOvVwGmu4Y1HfZ+J8TMfxCxEz2a7hJPA==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-ZHGKr0y2aKvxmZ/n9R1GveuVTXpxuuGCxF72dfIDbWY2f057+xVojBh5RUi0a6DvQwA3qxwrztZ8DSNRxsKDVQ==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -13138,7 +13139,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-Nn/kOyVC0eXuzUaWD8RBfQc4AhoMhISBWsOp0zBylsW+/394F4R5EMZ6sLYSPedqK8323hZYJM0E2Q0oTK4Aqw==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-D5urrfqEdVKKBCW/Z9tNK8m9M56W0IjKOhRWCutVSUoAziqB/JuRP0KCKgaqomEeDX4j0xQwXSmWo7SueqNpkw==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13169,7 +13170,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-QgesjisprNmFJvRUxfjNj3jmTMGggBQkSzFAlxOBrddPmmrxgOpiR77b8MBLg1bxtP5C4IfNYS3CqIOYVwNIag==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-WXIdu4X6gR2UKY3M1JON39/Zpau9HOvduoeYJCTD08tUa3j0UgOhQRm5Vup1M8rGfVVvmBTHXiP5MIyEIhUr8A==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13199,7 +13200,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-ayS77Ztox2i7yCBld3HpfQ/618UH6P2ImLR3rDlI3t5O0hxfxTWMhXl3CnJ33znD7o2aiFof/z5kc30RCkGTpw==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-C6YIc6rBW1tCZ2KOCe58SuxgPbwwX76X1koD4na8WgV4/LvapBROHlZ/ZiWziK+7wCMn7msg2yIvisJf17Fsxw==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -13246,7 +13247,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-PxPlIFyWJfww6m8WDQSiJb1g8FQrGOqqFgj06zGEKXlXJPpOxY9x0kvfFk0ZLV4t2XKf2VTdjhZTZjfjx9xSwg==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-vw9tyQrxgn/u61pr4GtAF1R4zmQ/UP0ORXJHKQ5rc757o8tOo76WWTZCJHT9FUYA8ciTSoTNShTHeRxb1YRfaQ==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -13277,7 +13278,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-+zshbbjMcl87yuPPlnT6evvsRpYvqbYCilnNxKhbyDwcXqi6EBlFn+1kQWot9jo2qCd5QaIMk9+QbC9HUWqzZw==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-+x51mU5Nar6WM4zihTTvonFGKpdVivQ+zw3fJsagt4qxTyrE9DUeGONQPC5H02e5+eQIJ2COHosU/ke7E6Ij+g==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -13307,7 +13308,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-+UeqKircD5Uz4XV7Na6l7fr7zkqsT2eB/Ky+0iqK3aN3xcwIu08empCUBbUarkR8tviLZy95Tq6gro+KJgBabA==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-Apk/DxbCgdHvRMIYCXkTFXP6JWehXKX1OmAHOad/B9d5GcVp3/5tbWCKG1BBj7pOyQrsZgfhpo7imy1pY9/yoQ==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -13337,7 +13338,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-7z4Dk0TnOxXF7frKJzg5I8P/nZWmexC9OjcIghnHSwT6CLgXr9GHC8okGAnFeOocRjp24jQMjsdwVV+wD+IDZw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-v6xA9WG28R+kxnnTRE3IG7q11bNX9BKXbyDUw4DNejhOUqUc3UjUh43v+QGbxR92ExYVQ0EReN7q7j/kqDNjVg==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -13365,7 +13366,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-WCTpwaTBk262FJ78fGedaNxIDTi+FQuiTh7iHD0h+ghDy24TdE9srZsqyzjcg+NserV5qLL/eFfvzCRHT4Ntuw==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-3mMkcPusCa6a8iJROcHsObRjtQcIKv4XuP6KasQgRi19s9En+rJNzuodSfsiQj+dwVghRtzyUj+ofZL8lIVkXg==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -13395,7 +13396,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-MolrfLN9TrbxtKNL6RN5yNImxfPjPZe+1iBqcqJt2e0m8xZTIPKK+wy3ZyedtadqLWggDAwZmV1uOLcJfHBSxA==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-7CgRwvWspXFXdo0FJswk4HgHC939oqEKHFY8r2b8Xo6lNNEHl51XtafQ69Kf27z/skI9S0R1OXzC0Wfmt8ynqQ==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -13425,7 +13426,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-lcy1x8kEIaWqqfZ0ujELtUSa5U9RRUE5n7yWw/6eMTrdLZbjSVuzz8qn9YaVf3Ml7qmzu4wCWLSzBd9apa9ucw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-bVKsJu2e9fy1EjBEN/vO7eFlpm02g8DwmZ/rKGqmwz/LOtUJtSMCSLhmlhl95Y17ywnvCwm/fi0nLhsH1kVHEw==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -13456,7 +13457,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-CugJuth+DWxuFenbrg5aYFGuYp6oWV6OTjXdGeoj1lPTCMJUO5iXcrzxG6gLeYDiPNC2YGMaLICTMmjcQH0v7w==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-PCEUlYKqJyQwq4Hj7lXk67hx3+fLgVmfCqGDgCANbT/FK+P+xhIj1TYfJYctwB7YmfMR6BYBWHZHzG5EKJnhKQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -13502,7 +13503,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-SwL5MEYHqVIS52ZwjCeumsnAKEr4swmPkkFzuVCt5WrTS0pSr4r8rd7UiQ4VddiE7HxRTawmy75L+um9YM0oug==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-VeNVu3tsABaIRltjExfGfVhyaOC+vO2cHZYHulMZ2OrCiOTc1aWyM6ol4bj0f0Z6CMVFNPvaKZ3lLqEup5cM8Q==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -13523,7 +13524,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5) tslib: 2.6.2 - tsx: 4.10.2 + tsx: 4.10.5 typescript: 5.4.5 uglify-js: 3.17.4 transitivePeerDependencies: @@ -13533,7 +13534,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-MBnV/yL0ri+7ZnXoqtKJQficryQtw0NgOh3d5zdiW7/HYYpSnF65IohykUO2vOzwjEmce25okqBqoNGpjXel3A==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-0GmexNX2WYEF5vM92xms5x6JnwsC9yCxEitcsOehf2mgK1deh+VhSyRevXLfsZNoPFp78GRmlmDazc0xsRjLqA==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -13563,7 +13564,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-VHujh2x7NL1et6EcueAdTBTV84QviU89M+wexmWGaC4ZVEMIFMKpOESnhnAIKM4Y1FCxGFj30Sad0UshUOTaDQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-wd2KsqFf8doHQnsNxYh160NFeM9Dn5W9io2YVkFFU5xniloidALVDFJc07JXOQkI2mEEk1Q09sxGg8K/cU0VPQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -13593,7 +13594,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-6V1wMP6Y4nBoEEffsFzr7kWK7qphUzQlk4EnFwUGafn02wFFxyDgx9wcdwQlP7rrjIx8QPLN2oEzt8bWgU9ILQ==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-KcErI+4j55rRFTkKW6MANtjeMaQtxQHtWlbqwOPw46wTS6HKqy9YqtyKRe4MTmZ6XkcCCpVaJc/CiE1pHk3OhA==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -13623,7 +13624,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-YmwjtMTKmzpTQkqVmb+ZTQ8Kvf06d2EaxqmPUyNPpKU9ds8txurhoDOgPghrj+lZuvYkm57aq3avJUfVaKL9Jw==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-sDKJ0LkulPFnlZ/GEut59G5P/jp3dhD8GRZx2KakC9dppmxyRUIkz0Opa9ksbFUSPwT1+ttaXwQ7i5L6wOA/Cw==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -13652,7 +13653,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-tKQ0zRFpV3V/0bf6QpyeBONJSH0W9SAbmKgD4uE8H0HU7zv9310fH84kPTWq+spin4d2NjUd8YnCdUbMIh98HA==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-ltP+T71iJ+sPFehN6Cj6Fq01oLvbjQHOMNEcDlGCI6aBHlWnpJ6tTnkoUhIJb25z39+FNI4B8R1IsyeuTkTRFA==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -13682,7 +13683,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-snUXe8dRruI803cP/dmoxiTZekgs9AtM3KxKbukIe1jXZl+WZP1/dwlwuWV6b0ZUdM0dF5NhPQc/ZHAK4NQ32A==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-8QeMKJtTyDYFHj3wEdpFpEeoGH06JGhgyWXQHeLrK0lDXYF7dmYBy7lh5cT9E5tOUSElD7CMoR4pFvHr+qAo2A==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -13712,7 +13713,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-lEscrgwUaJMfxAqMj2F1udK2fx1SZ8aUxg5yii1Li60IEwQBtp0LxIeoo9FaaV4I5GCRs9RlFm6RHiB7lpUWyA==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-zMSXvOkHZPQkNJmAL/7KaWDcs0dz743OmclpuMZCKp67rN3Mob4saRJreWV7voQO6XWLs0Jq2jOb8gVDsN1/fQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13742,7 +13743,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-u659UHJSXGrhBl0omxiJbpFtpkPndFD7J+nXByTfOSa4j5o38O8WA18Ba/8xI4iWvrw+0Ox+yZxgfuQazGEsPg==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-nyhPt4fzPfbcf+HnUWwMupeK8xB4Ut1A3fHELerAn3i8iKINx6Hg89Zz09noCvhiL+02R/mmlsQFN/M4YTXAyg==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -13771,7 +13772,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-a/puaALij3Tah7sNgeeYJ6aRnJ734NzRGq7A/zbbNXCxIHDy/QrPBNbB1IeYQlANv1KD7ycAH20lW7Y8NvQQYQ==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-lMdYf/Z7WhXhcAsNzhapfOG3nhgXiu6YUtvIADLHoER4qfaBkDpQ55MOc9YFiEW4nX6E+9/LVohiCkjrc3Eibg==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -13801,7 +13802,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-Ra3wEWxRKYAtX8ykcEp915iHKHRRZS04euo0VwENXd5aXjhuUJbqm0mj9kD4YGxVKoE0osbzw44G9/5NyidB6Q==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-eJSf81DsGvWlXj1NSij3KPFlguH/eMZSIUFtz+3cSsYxiedE4DBn453fgeHVJFxgfWoYsAkCLALvAnDTwscw1g==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -13830,7 +13831,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-nOd/hVOhSZAZsLEAxd+UjcP4KvvTurGl6eqqVWY0OjiRd/PyFkMbtaITibwS2HPW22m9HmlKfNNyekI5qt7bOA==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-iQ8KtMGT45+VQFGh3ulDeiE+uJhkSBl6HmfrhTr76FCscJhvSMktI1QmgEfZoFRink5Xmm3o5yklk7QlV8hkmQ==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -13860,7 +13861,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-VDuETRwbnM4xjDPT4pjRJkjAMZBoWUIOx1VX4OSZ2AIMvKsr+TUDFyzzPAOixloCEMIFIDjyRaG9DCCDvgPsGQ==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-FjLDdtqvucdf/sqBmRdcmjjBylhFV45VRdzHbMBlSWE75MMDyUOPINbmv0X0FYEZo0RhqcUQwqfSpVQA1AAM4g==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -13890,7 +13891,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-AMSYDgYccWyW/UIAynADo5Ewt6K5RQMFjv2MEA9xgOBXq+g469U+Hir7r5a5gvaVcPyQCJfHCNxVjjTv/+rHiQ==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-vKXRT+CQplO68riVniiSLXMDDoVYfwcfR+fcg3NHiAimADXhQe2V2Dih1MN031mkJjZErxzi4xD01BqG8C1Kew==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -13919,7 +13920,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-VLjPktB+2zBqGv48KYV8FpZnsNys1jPA7cHSZU83dbjPv63CJTvKCX1AUB03rv/P25tJiJF6qvb4DJAsxBemLQ==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-+VMNTU22qzKTLQ94Kau820B3Y5TvMfa1rWbuH2s4G/1nLJYoHaAzV+ajv+UYrkPYyKdtA+1+Y8UtMp0FF5//CQ==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -13948,7 +13949,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-F7qlpUrI5wiqm2I1jBVsA42a1mW2k3PvbwFO37g4db40TQhXVVdnTDtDtFKzVpXtSbtH0z6YgTKXJiPv9y0mpQ==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-+nt63ddgjPdgZJBqZMuMSxon5cePtnG3tCDhPH10ByO/IhZCJK7CrboEjIIJ5/fIO0juwI3j4B3pMFSTnglNUg==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -13978,7 +13979,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-HcgsirIIZynG70wdTGMbmYOYdS63gpbnZcWg4Y80k88ELhOC9NRvkGjWPJeMrhzoMX8Jh0CmIFzTwSL5wVDtjg==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-IbBJX+hNSDUJgF1WKrOP4URCzZ9khaY6oss4/QDv90TPxd4LleJYLGIkkQtpRvVaUR4S8HaQPFx0O+nrCz2DYw==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -14008,7 +14009,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-Bm46oafgnuo6Ebu8/Jpn90Fv5cXrfv3suZW+Na57iup6cvWjqcV0h1B435KVJvQHspV77UBfMRX2lRYGM9d1iw==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-QOXOZmT9PsI11iE7MIupB4GLj1EQ+3x5WwyeqNKnLex7nxsOJ9xXbqQL3MtlT+asX6Z4ds4BnxXIfHB7XHWaMQ==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -14037,7 +14038,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-/YWvP5NfU3QE2dkMZKrs5x6DcKR1paPJ6ISX9XDtNUaiD4O+cpPPkDOM/YdknHiSPq6/v/kdPDMaIAl/POev5g==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-g1LYZ8+LQpok5ISdWIEG3l400smC8D1TPrcFULQ02XAiNtIMvpFW/IYvhDmsksC4tHRITRYXc7KgDioJOFIluA==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -14065,7 +14066,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-J97BX6K+lMu4HJhmixnsP7RDmH+WceVUEVVVNmnD1AL7NsSQNffeB08FTlOY9gp+lC6OH7BOjg9eAvTFouzFrQ==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-RfoFaKu+F1HRy0q1C7nnZe8xxIAuhLCYcu3m/KXmP1D3WhCBPfoIN1hWWTgZdOq28A8V9zHr3o3SbxgltsJMUA==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -14096,7 +14097,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-B9u6Zgdya9u5MxIOugcDp27+KM2Nq7vrXeLfBMGgE8N51mc3VfCeOjRt1evb+iUV8Px2V+3sQaJoSWTx//l4nA==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-ihxaGfsco83NJ/QMJXTAMXdAh0VDeFACvo3+2bu+HNAK8u1DZ5nGOwcrQ4dw/vebel8muS3NX1LmsrkGHMvayQ==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -14124,7 +14125,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-fPXigdpTLteooNYED9V1N2UlxNAXrmfBomjjXZ2q2JcyF3EoUYxDoTKHWeS0yO4QZpnbwzOWe+eZozqkzTzpgQ==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-q3tf5V9yIuxRvQ1sohYMHue4Qwik4tEIU3ayIWRoKk2CreKt5erqtdNV3xw/JYBh7T5uNxtMJ0MqZy57efFmQw==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -14154,7 +14155,7 @@ packages: dev: false file:projects/arm-deviceregistry.tgz: - resolution: {integrity: sha512-toHqmdPrJICQwcFEKLymTrqxLBiROPBFSa6j0i/JVmlHkInLdy2GlSWkF6CZ7E38vA1XOEE3jhWGQBprSFqUPA==, tarball: file:projects/arm-deviceregistry.tgz} + resolution: {integrity: sha512-GMatDE35xznBxFn9laqbhVBpsD9fWlvPw44+kLqxvtOAH3cJRWVPTOwT4NjQ3aUJ0rMmVbwoEE0CqEzNpmy+SA==, tarball: file:projects/arm-deviceregistry.tgz} name: '@rush-temp/arm-deviceregistry' version: 0.0.0 dependencies: @@ -14185,7 +14186,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-2JWF01Gx7PkrE6+TuHEfLEifSrFT70mZhKvNsumHbhfjVnqxdr1Ez8iKwufg612TsOs625BbhqSmKeXjnvhKkg==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-nGATzy00/K1b/tEtCbAXAu63eUHBWS91PfiuLRFq7BhRDoqQGs7HWfQpbyZH8bP4VrMNUBuBxvMyMVLIi4dDaw==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -14215,7 +14216,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-4S6jJOao/eo9J1EnWIE/vkYtlYLRsTdMWryGe6ILyq3JGfQj7LIvuB9gT6r3yVI4oDhzo25/u7lVUTMSLhJ/wQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-9iDDxpR5zqvJlS3n6zW+onhkxIJk+YmFsUWyBecH12XIrj0gMN+f5E/NqCiXkAD4TH5Y12bZlkouAhOFsOMlag==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -14244,7 +14245,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-2M5eXFlLwhRRPBoIg+5NeZQJbn+PehVoMHr3Yj8AJxZRq8eV5ph/KDAZGgQu7+5wXOvkJlYqFu0H1FOYux7utw==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-t1o0kYdnLvFZzDXA0IsUxO46u8AT0BphgYNJ8tzHlO9fCjB044Sqb6M+UVTQdfrOT7WBwsrnr8WrcEHWp1UGPQ==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -14273,7 +14274,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-YplI71s7/1v8NZTIpVuqS/JrwfFBbDS+FyMUA9cyJpJwFXrjxlIUa2N96dg114SXVU+ayOBFn/Zwa/TbrKEE3Q==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-EranoD4p+qG/E2PzoeFNBhJSbzWwTFEd1AlLI6ryAQAZVBVyx5Z+AlLuube9/XqdHSD06c1zF8Hsfqx3ZBnjmg==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -14303,7 +14304,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-puTccKzXOg2TcqUeWjD1P433WWa9p2JLLU5gTxNbf2NK11GHXbOQMtHBeaYLJCH0eggjJ+j0ZTEtulMwzALvFA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-7D54OU32Z0KkJgHsAxsuznXvlUxm1xwPMywRnqpFHcguO/Jhfs5UHuPquo/SotN/Z9mzy/n/dratn9chbrZksg==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14333,7 +14334,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-2TpCBBHq/YII1z/4AI02OfdYVvsfR3fnThp0yrz2pa+YZDFlVnF9iSaQjY9y0nf+GrNxS4+LQfuhmGKnQ8GASQ==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-YO3sDFIvn4Bpgl5ZpOPrq1Ek8f+5I4UqyWmTHZL1SF+Mi5a5IsVVmsXxsG0kXxnMHTnYVUDzyld/LRdbHPxOVQ==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -14362,7 +14363,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-WPnP45iTq+XsrYZEkIwvKNwFk8nb6av2qRb2TK8gXul69suB1JGPAypeGRp+fzCAPPTxSS5ZpnGupey77mof9A==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-QLLTYoBkr1z0LoEvmgvOwY3Q3fIKhcVbDbzxy9kA3Vs9RuTrppPTIO+tqaWyhJnYI45L+hIh4htum1trJgWW9Q==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -14392,7 +14393,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-y2TwdjdgZtrSqxhNdXa1fh+adR4GN7sM9381MIVTTTnfq7VteJdjHiyI2zP+28+yd/OBs3Pn/HquQ56JnD5MOw==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-UNquG1uLduui/bsLZFDb21AWnzrgWBaXJ5hdsXRF/VyZITYcOUFyPauGAFPGPI2p2BHVSil2+/v09cf+czteqA==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -14421,7 +14422,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-+hGk+JXugRBu9sBFrGl0JfIT+PrySTodjHD9fr2ArwL2bqFL8UFwlH3n9MtH0+LOG7U2CN5yW4/OgFVALiSwng==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-R9SJXYpYB2Ua8EAwEwWv6QTjiwwFS8i5QsjF0D/8HJtZNlqOZaLX4vx6x7tQYw41vl+469wJSbncWe4C+6ZqnQ==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -14451,7 +14452,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-Qqlz8rELb2bWq/KLoxlwYoiWaQ8Ehd1+NdINgMK+nYfp3D7xHm0ozOdE1xf0Wxz/YZYOZqjaLk+HNt9dbm9WpQ==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-C0LxLuYw4xahWek1OKlHKI718dMNZPLNGL3/PyLtoucSmLXjn/yhgUxE04bh5mdE+A9odMHRjJ78bEm40qhdtQ==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -14479,7 +14480,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-iLn+bFeBy1IO4fdGJcsg49SIxyRpijW4N+dlh+Fvy0ShqpRbpWFqjQ4EWgWMTd98uVfUqEZpYFk1z2ZSCoZjDg==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-2B0zGaJ5R4SA8txjmWWLOg5phXICznoiWTjz+RuM8G5P/x9KTmTTP9T3UizRBhwyC3LbIF16PNQKkWWnHWxqrg==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -14509,7 +14510,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-ljH3lrw4sb4HnyYgXpTMgKqV8xPeLtvbPiyKElZz5Yhcqj5H/dyIK4f/C5lvvb2x1n+mMG3IARBr5N2ivP3xbw==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-zvCkdQoyVuG4Zx5O9Y7AiTArUfOedmG5bzM8AzpDQafNtr+vlV1/ZPOLjYBI8kslwSwnPLC3KQRrAL5NcqKeMg==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -14539,7 +14540,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-SBg+EdbHb3brYOJEg7K3FncdcRqpw3Kjok97H7YEp1+LLiR1Kkr8IpM/N/VM1O3SL1OESMaruN9Z3l76jtSghg==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-VAKwwYr2niyvPwPy+YZcblxWLPOtNBAm+ew5isJGF+VslMXttOcPrpxO2HLfloWhyNVE+lnDYRY/eI3MpwJ7cw==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -14569,7 +14570,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-qzVdVaTfgLtst7T/pk5XOxLdepfarqRUjlrmWO2iQtOm+Arww0HRSsKWMnuQ5WhzT4+BoZ09Ksawo5Zs1tUT4w==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-E3MXCJtV2hnEmKIaglR6PDVVMTxuJzWvN02riT70/oSCJZf3+Bn/8/mYhlpcNa9bWpCvyhbVSM6Akh+pALArkQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14599,7 +14600,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-PCnuzFGByYDof8EOomRy2CjenUACmyHYNCmeGoZ1z/k59Lc5LwbiFtT0CIkYYEPepoDjsoOgExOj9n1qmpmoTA==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-eFi8c4l061RY7uVhCUlUqLaQLpc+7+pTotzkTuTsJTZMCuDJ1H7eKE3UVAx7vz0eifrk8kTIBs7akMD9VQulmA==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -14630,7 +14631,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-1ZMyToYOdRG+YJmL8+gLt49n8RlSMT9b+mXkKI5u4HK4sWWK8cWYstGJkMJN1MPsBFtBUbbrtAMZLd28LJUNTQ==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-LceP/1USDcz1tf2RhWdc2I3t/uPElqMNAfyaaHRexOheV8vNKpJn7ObPzzGS8goLShsHkI9n9u0joVIjimA/6w==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -14660,7 +14661,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-PDygRDKd4PLZjk48aP0A+r6ubtXejTobxaGdKjPTsbIrkggyNV8xE4vY3WYGG7AnD1e8iHlqBZrFqgp7az8MHw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-3ycCgl4d3XZbt4m3r7tquXPQfx2pPAuqvLEMiw85HjJsIb54H2ORoAE3m2wJY/hmG7FHhkPqR8muLzSMvcZCqQ==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -14687,7 +14688,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-u5WlYU1+A90w9J/pf2ga5HqM5hYMlWcGdhi3EtS/m9L2r7hExnEQuqtDLHW8QJfvpWllmpQFYMymM6rrYEWJzQ==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-vCmPCN35aDh3Wnd3ssJsZsU2ir1ZM1rB7ksraiQlJn/E5LngbWoLpiE3dftRPl93v9Ly6i1AOTti8M6z9KgHiQ==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -14715,7 +14716,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-oW3bKOjWUopBurqelzxq8dDR1lpyOZvdAVzw2gHfUQmN0WPQoY5iTk2qrlRvhmyNyls4hcICNBGqy8JhC8z5jg==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-ILJlWJMp6OJ4jHz5v1pI665HzCytXl0zdwlmWlNGcJIQxvP5+3sU4p40TyNLTpM/5pTCvi6inoZi+UqVFtEf/Q==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -14745,7 +14746,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-IJ1lDOuVu6aQCmCOlIIKeHoRrz8b+4BM5PU7Jz6fkcHHhdzQA9ScDO/k4pGTT9wjLSebJ50JZfDJIgMU/D/Aig==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-5pY0z+IzynK0cSa5D3TclvPDBZ4nVcLMowdHbefQHH358A004ir9oy3FwmB+9QuYtI+E2wbQwA11eEoj6cGNWQ==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -14775,7 +14776,7 @@ packages: dev: false file:projects/arm-guestconfiguration.tgz: - resolution: {integrity: sha512-GTpbrpDPK7vVJRuni6sEBAm2ItIPX9M3wLAJZV76z6gHvXrIEO7iGXbSzsO2tT5RCGWLb40nEKZWSNS81UktxQ==, tarball: file:projects/arm-guestconfiguration.tgz} + resolution: {integrity: sha512-82nPs+USq76GjO07wOI/87RpOCdSVmx2EfMsqOzzOAGmG/cufZ667cRljuP6aAaFBoDmMHeC0axAZRKscjpNMA==, tarball: file:projects/arm-guestconfiguration.tgz} name: '@rush-temp/arm-guestconfiguration' version: 0.0.0 dependencies: @@ -14804,7 +14805,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-9zK9QdmF4kyJn7ieuLlX6vDE4ZjALN9+djnWyxZeh1P9aCFCvvbTOMb+vLJ7qCKXmEeND8EESAAN8g7X8IYCLQ==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-Vu0e+PrWLwtu3aDDUWnhM/KSQDz6jFG+HH/4xyFtWPhSLaUJvXyLZQoqwFRBBAfBaeRpgMuMBy2gXS6hKgQkQA==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -14833,7 +14834,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-7uHWsKMvJispT4rmr8FPAkUCyH/GP1xkpgi7TCvtxf8lwb+LMETPMUlKhnxhNVEE5OnX0KNdBPayVGMHJABxhA==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-B8yOjFh0QlXIjSTnH/1jdyEKOAwvXVhUF9ktcvkwVyGVII3fokmCkPBvSj7ZZEuic6prMpEcRho4f3BwisqZcA==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -14863,7 +14864,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-ZyIP4xbAU03gBLfnQevPPpfyXy4FrAax8p2tlebKdCttEN88Td3mgAdrssoyrh9FxcpLzJZitPEG/MUhT38eVQ==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-l8bZjUD9fo4yL/LwVsR76ewzZqT+UnVCZYfMAEa826YgHu8hyA6FCe2P32f1YudoheCK/jiEi+q+j/UGw9r6dQ==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -14893,7 +14894,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-ciQ1bxN92AunEanZh6Mp95nC8De2mkQogcJn8J1W0oGu+IiGWDdRuxHVFrPBzX1SGm45QGvchG1mUwFG08YwdA==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-ebovHn3mwM2YvBI2084wConhknoAW/+i9YmbLYcDXvgxJbEERTm6n3i3WyMl715K5s3LZ/CS3tkGcNeWTTWwOQ==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -14923,7 +14924,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-7qYfHt322X4WPNtZ973Rxtv/YvX1ChYD99FMgiBnYjH7RrRGsSKf/tYy6NFcYdGS/PpPIUAbfLYebtT809WVfQ==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-bwEzqpTT6a0mEF9+qnv+oj1rPlRxMYA+YuorhxZ3HJ7U5THINWkGgcnpFzN+F6lXz86Hc/lLGhxTo5rejO88Mg==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -14952,7 +14953,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-TiuR4qgo+USsnf2DH/GdkvI3G5t1q0gFodLt0bpkBxT5SC9HtoLHv7GAf0GCIUKEvC9xaLcy+b2rEVFyKejNgA==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-ZZG6IphyTnxwUp1EumB2DcHPIJnwPAh0wyAJwcS7FXQkkQ+6DQetAl4EZKsNZn97J4mFDxYTPVj87I0/aHsb4Q==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -14982,7 +14983,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-ZfqlB0Yw4fWwm9BUOA5rrdHuumwmYzx4yROMTBAizwlUJFsVVLr4p6S6A4f4GIiFxbSRmo4IsWSdRvkJxv2jsQ==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-mmfeBdLwjyRq/b9FslE4Z4COEJz+m7G9c5PA0FrzsIikkh26uF7TBU4T33R1uEABDbL65NH7nCWOncCgaJcN1g==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -15012,7 +15013,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-33NtGiydGaoaJo0Ppz2V3/zs7O2iSdb6OWSigm/qdeGJd8EAD139QdFANdPmuwZI0kqlAtjcXm1LebDkXZyV7w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-7+68Vak09tR2Jtm/9GDiYXZrLDrhpIgT/vs9fglyzLCfLWtfbQBB/fDLXEDfuo2SBzakHrvqHG5tY2fjKDJ9Qw==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -15040,7 +15041,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-RyxNvLyR1d24qi3s8hhdx8guBAkNL+jjxjnO5OQziuU45RbDqHvZVKnfDtGuUPbT75AKOAQz4BrfO7R5Dk91UA==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-x+Di4bCuVNPVdcT5b+RKelPq8gjUXFmRKiNxfAe6gbFgfT4xnHmiibrn4QTWa7MoqNZ09w0oT7umF+XA8peSSw==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -15070,7 +15071,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-0KsVUz3FuHC1bP+QAHA+5VlJ5ZYrM4SfUe5+fdlZlQ21XEbO+Abu+IsbAdNVKpkhGVISyZHavRrmwvlXYLQdmg==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-4H0CBCABnvQSHE1Kb0R26LOvSdYspBxb45tkmRYbtfH3X2FSUHR+a3wW409c2kAUXqy2U1uHyrMPUH5RV4cXxg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -15099,7 +15100,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-kXX+OtHL1SedKE6yxLGJE9ILA8dxw45WIn0Q245tG4OFdH5RH0J+/sqNSxncwFvcfOwcG1f+CRORrdtE8xHrjA==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-lQGRhFmb4TRdfzg5Y7/2MW2RdLlLiIAGPX9kIRPHS+ylHcnXhua3KhEZx5blp5gDWNm1KszQy5vCjib7Z+nrKQ==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -15129,7 +15130,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-WIFbfyzDSlkPsWCn5rHregkO4lhLVIdvNMuT8xKIoxK+gNNLM7dBfzlGLz0kZ+vYoaNTCCc8lClaiEqAF4PTOw==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-ZhLDWmh649eA5wl/RujEO16BLPS7sqyEVck9r08TJVhbmn1Ocq4qAYzGqTuEtxJ1i519baUaVhEHyRb+nkik1w==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -15159,7 +15160,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-liQqudKElxS9BDABTXg+hbiIBssUx0hntlGZ2dXBaBT3gfaT1NMcKWyobXA3n4ASvEuRK1N+SfWmgMLYPFeYiA==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-v/ogpxgSA5N8SXbn0xiJ9oqH5jKi7NPJ9+/3GQq/Ty+SaJzeqM9zw7jO7rlDG8uNYGXku7oAvOSgJKSk/v3rzQ==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -15188,7 +15189,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-jopwhyZ+7uOVInGm3CsJUVgAX1BVoP3wIf1ZS6zb0pN+92JaMQer/xstHaqVSKTXRrYs7yhCj8Tz6HTDxjf6KA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-Zk2iSKiwE7QCDIfugks3ynB3bqbGoVqIvWEIL8pUYGFXXyy0tKvzHWP21TsgXrA1Q4GH1H4To4Gkw2JOzqZkjw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -15216,7 +15217,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-COAYXppMt5dZocsPTzpegFcmKcqWKujoIbOL13V3xaRiyDIpDRaQ1K/oaX54H/qX1iR6cSL6JYdECg36FC1a6g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-jyUCOh0VdDHdgl63j93JutWuEgTI+QS0ZXUJV0z/iPqzbwtNukpM2Z6n41i4f0KLRHiMNcTOA7AozQVnd+2bGg==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15246,7 +15247,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-F43wiZ9thTfu7Ct7O3BSuPksSdqerD1hZvGsZAseZo56cgOE93PGkFFswJDhtiaIcPIdJn13iUDb9tFlVRcDmQ==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-qzrpMniqY5UOLJu6Qul+qsNs/YxhAwFbhzbmFWa6Wk0KGTv2rlUTBeECRFo8jXvMjqegIvLWZfF9adcjv9rzng==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -15276,7 +15277,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-eew0BowbeQlzkMjBteWwwGVPigBcMq78xpSZvEYZTi7WQtr4HOTa3KGZ/wftY9zZAiBdrltGEc8RRfR81WsXXA==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-6v73zZsCGr5vuPFshEDnnnLHYFqMlaiL401X7aAOaUukcct1rCx9u2pd74oEXK6UrTWSsLvww9e3Qfq+TTRLyQ==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15306,7 +15307,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-FOZUSIU9l2ZnzhLqgVfLIYa1ImGzLa5vSKWMUa78miYmL58AeH0Lcd7BdCI88wkxHx/91yoWf5I9mDdXgsjSyw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-JxoREum8qt0mgqccEQyh+jwm2JS0YW3y+B2wJTZYGfI6sWuLSWoqclrsduHpypukNim9zBamgeJp+yWCJl2hMw==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -15336,7 +15337,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-sNMfT8bUuIFOOjivbf8DVXD8im2EnrMCpJOYGlqFdq0WVXtvuqSL+RvRYwga22RKOrMqx0CxhOXjARl23IknUg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-4CVrbqbP0K039Jg6tzMgLFKZVHBKIPyzYAtU6DCyRYhfRr3vo6b1fM5OkdPJkzRoB2GvM2o/EtTAecCja0PvVw==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -15366,7 +15367,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-bpn7fTzekBnNCG92rgD67AvEAeo/w1jsN9tngbXe5blnSSf2ACGfVyTqRhIZYMOv9qIzD7Y4RS5IWDAMPHiiyA==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-wgEkqVFCMyY1fnNp6LAfjVTbMgv/GzFNJSOyGbxR+8GHLibUywm+/v+DYjLLM4C1x/ABYyQRLXaBN4Pme9+U4w==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -15396,7 +15397,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-mZ2e61/KOfqChADFU5tuI3at+jyuVA1LMNhqo7SFFqGbjXsyVG2TQ5Uu1Bm85ef6EFhXniPdek6RN3evJQU7ag==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-2zW93uneDWOYO8ashXN/HjDQXW20jM042fJfbELQSXyT4Z5YW4EX+7EgWl6om+ow2T0CIHCP/3IwwVQZo6e1FA==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -15426,7 +15427,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-SRGvwa08A10+l5p39hAoYSPy53bSQTN1tt6UQbxtONAgF41Owohqovxo1ZL7eIOGvneurzT7Ca6hnWvhO8ft5w==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-1abtiKgkUMW2qO1wjuIr8t5p1ez5b5LxFjh7EIvLjgCjMtVWjAMsELkRKArhenZxc/T+RO3rb7vN6V6YOpn95A==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -15456,7 +15457,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-5NNtprQi+wxcF1uWx1lX6vzHVH6XnTUSDPZfJjmZzNPEqbFqq3RUyx9zspsA3u8O5xlOLF6sFqchtrIPuw5NNg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-vy8pF5ciXYajsyasaTGaLi1/cPomCD7jWJ7CveZ24AZeogydkFcK2WzYqtdB8Pb97XpD2mDraUoj5xx1TpwpFA==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -15483,7 +15484,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-5EwqshTURIlvMXdl5du4+0EynIMBGTz4vkldCVr8QiA7QNkRYuBiYJz2TOl8Q76e+JxHF7pzApuCu4uOFh1UCw==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-R9wxgbMIt+wUjNBh7MmEgPv7KSok8rVVxay2iskhcb2XJXq/0WqgyGmgj4KRHBpGQI07X2n1vUCyb/dcfD2UIg==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -15513,7 +15514,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-kZM2uKjbiUzaGc7qL5ugE4qWtZCcPEFUPAXiQlHvxu6lmxZGTgbkOlsF/T1FSIHIDbX8IqMYQ43SADVgMlnyiw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-npkoRV8xErVzd0ryHMqN6upbZIkqVEvv8XB7BXYvuDUI3ETV3/M6zJoQSzH6B/LrUDjSf00zD0EYNVFrCqmLfQ==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15541,7 +15542,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-mjbmRTflf6ZXnghr4Wu9n5VP6ZUJmkWYb5dw5abniZggG64eSwVFqs3QaiF2WCtQASWpXZHQba6B1R2JKecECw==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-Av96zFmv3nR8JzAtN4EGKH/A1Pe24/h45CERMLau5wt8SpfY15k8dxE1s5LQXZlsx35voHpKhYX9C6ae2FSIUw==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -15568,7 +15569,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-EhSy+1o6u8q6V71ortV0/hu4s+D10gJTfc500gC4pDb3oRfSFfnNf+axzX33J5/5cpkTu2bPGP0ecUMaMRZTYA==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-uQzWPw1Yv8eLy1hERsrva/xoO5iSp5MkmIpBjdITtc8mLuil1hS4zCl8xB/OYslqWykgfH5P8f1p+Gm2zdoOKA==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -15598,7 +15599,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-txwLl13jHtCTfSr4lFDnmQ6G5cYPfSZDXJ0c5DEiMdyYCljCrPSG963wECi5gKEBMUSKr6US3QgZciniHDXK+Q==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-uCPIp7AMhEqGPHPznv1ukvdQzyf0SBdrfxHLdR1vv2+1F5CBmbo6zxe8XgNn5iEStn0W3KDOYMrdXHvqev575g==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -15627,7 +15628,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-4fKtWqRorfXaqD06yzs3BPvUEK33lccaefiyoCi/31xwvbxv0Xm3WOHKGq4SmGlJnnZRLY7VeiVHQGSB95l3Yw==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-Pr2MlPj6JIdCJCtEBmXcOE7w90MHcYpc0frSs7BZDHZVlr8Mb4oAs7uee88YMC780SAflGanUuy2s1pDg0NJHg==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -15656,7 +15657,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-JiD2oPcqdrXXjttSp0SyeVr6C4dKjcJkZNEN4PbG/zt4MGo3yjtZBHVJosg4o9tHeCL90auikg8PNbDiGRs22Q==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-2cVUdFg+jhB+MLfcDzRrV9urgLPTB4FSC9Ej7F8p6ltMc6VsuNacg1zhq5WcdfDxRotwJCsze1muba7lJPddPA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -15684,7 +15685,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-uWAdoC+TPAOMUsLfkbmojphe+9hx/EiU6OMs7L5u5FhXKj5kkLurJ++JeYHoFgqKWg+19sch+6/cIPVHmPhIRg==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-ELsrueGRlpvUssqLhdppqKPbbWeqs4U/P36gawNjAbvCUA+RHxJzGFg9MTJAueQT8c++dzCEwoK80P8cjHNxKQ==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -15713,7 +15714,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-2VyqpG1GcMKjP19wqZ78KLOFoZWjBGksMoE28rh5ZgmPRfz2uziHxCGVd8uIxn4hlKC5UdGQ9/pm8DX9i7CsyQ==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-+50LikptoY340NILV2lHa4P+JZyoVlce1/DBiL+Yn7r26F3PhE85cma2F1xqhIYZijjfjr+8zB42oWzkiUOq2A==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -15743,7 +15744,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-oTJQi0UNrEyd/N3Vf1l9Oz9TJuKrnzk8a+iBQIHDwce1xNxOtCxJ7IIVu5KJlyzkEoxINB1dxJGdDqqrzlr5vw==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-Yshd5V1ylytidTS9UQrr2IST7D37NN4f3XKkedKFkGwNKGPipF3VGOEuIdPiE22eJV6Esx/ZGJG2DGPj6vkHXQ==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -15773,7 +15774,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-vcRQc8Tj3wCWpRklJPUlA1K2+HXtRdUcsXa/gIYZA6G1Pm76A40545YsZiUriek9AxHvya6fUkED6HelVu7xNQ==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-dTs5ht7anpkuJOI1Ll/tzI0YvT2luw5dqBTpM/9CSWZ7EO2J9sOn1Bn9mMXIml9w05wHVOUcxN5uMGqJq3kvaQ==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -15802,7 +15803,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-ZSHTa4THLaLN32eabB1MO3Ip5BR/eOdCeYLgDSQDItOXUZqAKlXb89YYUKdYBA2MWkif7c1vCi4UOAanf2H6+w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-ehiCqR0dzIEKHO3mi6tpKhDKovxqneE+buzfk8avTkteCqiUv8dBkAA1hCZxbMCm1MIiLelExELttwx1ST+cww==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -15830,7 +15831,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-GCifC9yLva4dqyty06RQptzYuCev47p7e0WZNf88fJ3Qbb56laXOvM0MpLi0Tpv1GtgaYEOpAoM5o17u2JiiaQ==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-GY27bMXxjvyniMf3y7xwPQ73iZWeujAXu1oTAbBRL79cZrzFHeMpaqS2GUiof7JLu6pXg2XcW8vVqla1cEol5w==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -15858,7 +15859,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-+pyF4nM7UOWcOP1ZissFsybkkLM/r2v1G+fPvWV4f7pBGDqhRHgH8qJ3JivqSpI8hsBHNX8DEcdGBPT8vEIrbA==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-N/HNyrlOZ5MvLUn/uII4OJiI+Z8csgFyaeXkqzjG4Lpnirao6wpwzuBQM33jwnPiT44ksG3YeNSxVvdDrgcEZA==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -15887,7 +15888,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-ANQmyDAjShNelT5M7ND1QZYpTo0+uFd/SP6kysNTNOyyX5ScNiYq8sItTsKe9V67rpFr69L+wYqmog5xUilgvg==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-P+PmKuYxobQrMGJWkZwWuIq+3XmbBSX2i1Lap1fhT+RJ/MLAObDsKHpHH8iEyG4m/x66Fn7ccLE3+wKVqNtjnw==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -15915,7 +15916,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-4AWyKpM/JF27N34ss52OIrPSjaCLo1Q/MGg/kXSznZpvxy4eU1h3h2t72hDZKnEeS0NySMlk+16GYC7bmNbT9g==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-m3mR/zUPGsuzSluz3JEG3S7SFx0N5l8S1f9LYtzEuGsy9lwA9Xg/STm2foIiNLyDc+eqv2nE3wsjt+CYrA4dJA==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -15945,7 +15946,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-Z9cyXCZTEXu2g+HJ2aVB8Nntq6X1owFcShWFeRwwAcahEmXXeAlUGIR9NOSXfOMSrUZXxQ+93zEmHml7voiQWg==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-EsS1GvkgztGc6dhKLiNiKoE69zFVj5y18zLsh+Q8Yp1Fb2zUlcGPPRrHB00iLP4nQMQ6CnWMu9jCSUDDQL7Yyw==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -15973,7 +15974,7 @@ packages: dev: false file:projects/arm-migrationdiscoverysap.tgz: - resolution: {integrity: sha512-v0zAOwEAE/W61uyVkwoB7MgdW8XzfYmIIA8Oz6u9DoFzAaDf5XGtIgk50bnj93K6tBXRSCJ4zf4k3VLQL9CjTw==, tarball: file:projects/arm-migrationdiscoverysap.tgz} + resolution: {integrity: sha512-SaMywy514OIbO8uglvFt4/RpHEbC8lrLiHSPzFib/BtepfyCiy8PM1hTM3ZWM02LZ5ACmmwLe7OoHjb1pHvcXA==, tarball: file:projects/arm-migrationdiscoverysap.tgz} name: '@rush-temp/arm-migrationdiscoverysap' version: 0.0.0 dependencies: @@ -16003,7 +16004,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-VJUXWpYpcKBTTw+1liV8Jk0xgCvLt/MgKzzPTAMM+o/bJX3E1b/smDFnh5w6JWDCrbzu0+nRSNX84d6+U19lJQ==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-5Vn/EXr5XUov9XuD2UYqduyPHiJ7Tko9dKKma4RRCQ1Uta6+127kscIJwzIR/Bk9ONR9OaDyE4cYLg6uMxy5ow==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -16030,7 +16031,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-oLlUZgJdQh72aFW6iJiCNSDNh5gx8080a1Di/9p94hjPuEnmEpM4irUJn+MoMq6MCzC1Ooadcyf1JZcw3sDlFw==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-slUAJZvSsk1+EpqJ8YugCfBk8uqFbtwiB8oiq1+AZujWJgV6fjRqSVQFsF8NRrpMO+kqsGDWE87UM6RyJKvHbg==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -16060,7 +16061,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-gYGqHxDXms9/ZY+T2PYwVCru7G3Cnqsx8Eo/GBLYU+LGJog0rDGzxap1krGfbahuVYASdQUSkRXHb2iqAfOBsA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-mUeMDbFigcOs/MlAq31TLxGxgvVcgqFXbk+fbbX5qxZXUueq5UQvzXqMWWXM8RIMOZ/71xSpxFM9hAyX57vX4A==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16088,7 +16089,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-09UUVoE80LzWIO+TnphdzZEp1ZdIy204GLs7DYKaLeSsj/GNrH11nrodNKsEPVGeCnG3AhlEWQdXqm8GDERgpA==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-GxMkxv0+YNW6zXgoQP9xcN/gYWEWfPa6iWz6L0OkBDt8kyxprgmpsK3Dns5w5DssBUP8cwZ3l/RjRbfuhbdTiw==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -16118,7 +16119,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-Y7Yc2DWhVYcE4zITuEA9QQ0KRQqNINQK5jfmTUvnJKkQ7i7Vz9UNFsuybhc7pMCY8fGyxY7WF+N3eV4qbMUl4A==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-juxLKgAMkdEBvXGWk86rXFrvuN3Czp+aAQ2uKjYMLkUG08vFvIYhgjcrPkiJU4BmTwLmr7Q9kiT0y+wpy4681A==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -16146,7 +16147,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-49rhWGCbko/ckP4uMwImY+XtPqAEuQxtSjaLK/cvWW/3n1VKS48T3gbNASQZgf6VnXlzfZwrLfc7gXZL+rMDpg==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-yS3m42609T+EiBycy+D7W/xkeQp1SrtQTGTbP1AScRgiuvdu66KhXSD9DzOz5eXQsfJVtOeQ13ts+igbdrkMKQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -16176,7 +16177,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-3TJM5a2Qd8EeSIlKeKS39TyHde6bOLNK6gKmjFq7SkQSdEcqBX5vCfcG4p0WDw/+gKaA/MUzn8qF3m2CBgzf3Q==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-nAVcgMcvjQSDpa+465azHocSkEPlaxd6GtkJZscPa7tTpkAz7oT5I9CjnenYDp9lXvok0u6TnOPxfmZ7tQG2lA==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -16205,7 +16206,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-da8kMQISQml4NC4xJk261SDxaiIvPqfjuYYNlaldDY/DFy5glQxCZtgXBQMUJq4ug0iO2BlxBUVxvpvtR7mpyg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-nTeu4weXUJ9ehkBOHDtMY/cjBLt15EGYqMxpWSplA/9psrd/24Q/aTzvG6VgXHe1rzWfTe15bWwoRz/0xKXydA==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -16235,7 +16236,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-P0n6tUfbodiXYxvWI+EnYalaMc9HHM9JAlsiVO7atPdEyIDsA8I688l3nIfVAEEjpXpMaRvTXj7K1Z7TYrT+3A==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-wEi3DraOYti+jaS9TaMu2Q7c+lVH+QZvohyYfbMto/rTNUTpg0evOwuRIhQcH2wDaGsiMMqA2nGegsQCn0yv0g==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -16265,7 +16266,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-SvG/3Ds71axm6f+QfuqRKl/+rHADZn54u3X73unhO0QWWbI2TuE/nxV/4fMvaLdJGyGzB35BunOHPfNmJJDmbg==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-6UCazr/RscZFdpZZ1C4gh883WtXZJENsdhuVjeqOClo1Xh8++bPhs+iIPpZquRnzqiBLfnVY+0YEZMfp4DX8tw==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16295,7 +16296,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-X0RkQ24Ptrta1BE/uUqf3sEwwzvi4tU4VZjhaDbQ1lXo3btD3QIFZ74D/yYGLoThzYqfVoMHJ0UFalKK9O+6dg==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-s8TB5L7quHqZ+9d4ii7AdWrFxH8muUUzJq5WOEE6oIL40AIJoxlY/ZYN+BsA3oxOz5zoK3fvH+uG2T1y+GjqJQ==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -16341,7 +16342,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-slnWBVpxw1dS7QIII5hBWkK2GoqDVy2BvohOuTSHDmJntEUvZvE4bcSR3ZiCOI1oIIA7PBWh4KVrSVQTHzgdAg==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-lLJd4/hABEwTZVahFDVcatGi4B1yO+cC41BEAE0Tk6tAIjNf0xbpfq5fjil0R6pCjTKm9aCJcpwSXmD74aeuhg==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -16371,7 +16372,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-lvZgPX3RMUmBKSRf7eXN+LirlVRXw0eQShBgZSYPHO0/r4LG2MLeHtyB0/rovC3oysUJw1Iq1Y01RDwyXdo3dg==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-ijlDSaGTr47IHpVWSVwuy6goTfAb/Uxfyvtvp58nkmitytKt5t84WxbitlUUW4pPnv/3V6jyqSkPF7U88tZnrA==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -16401,7 +16402,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-s0Ey4RRYVM6wfkTmEwRtyH9B17rGFbvtqxL+QO1PUX13WcXI1K4F7Zs/3sIIj+BOSphlJHze4I6Q3GTG7sueNw==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-hr888GcOBygLMmYWjrVS5gebE0w21XSQjFaLx7yQSx0J/yBBozBSZ7WA/X7Nsz6rG2qB8gE/nXw8gg4B6DA4Pg==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -16430,7 +16431,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-vx8WGfZY511F9Mf8zhCTL5hZgHcIV3wJ69R774P18DCwLoQRUtsW3QOpRFjxgq89lcY58BkpTqD/ltL7hnvneQ==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-kdXO5tExkLuPBqPDGFLvlj6Ero/A+CAuYt+u8Neq4Wndd8D7N/a58AOo9laS4WxUSCi8+57pBKkiSFGehnLj2w==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -16460,7 +16461,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-jIddhfa43k50YepVWCQNLukwTW4oi+mIrDL67U226byMSFBh04XWh6/W27F78eaZw41FAjEVMggJQJbd0JGcLw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-VEsa80q55QvX2RToaUVNJEpGInjRPJE7SEOF4fT7f+HIQHDmiv0vnIF3G1uhpREAV6T7Mq5kHab1G8osdTPQAQ==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -16490,7 +16491,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-ukqG0qcYHOoGLFAXiqaKM/aItkfCfrcMtOE84iUsdXvc6aHJTHXsrLO9gCF+PiR8SDpFF0NFCwfzvP0J2N+5qw==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-CFLzBmNzOHZhslniL/TUm5noJ4nPZ2oj80l6zVPkrD77JGbtczUaOzxPSXdQexa2XPa6hSmFUfUHvkUPhvKGtw==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -16520,7 +16521,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-67fB7oz9f6H+BraPeYUSRiOVDR1F5xrh+JbINcxa7ptYz/4zJshguElxXcEBg7ZyHVzeE4+krS+15xo6FzpV5g==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-/R0GQoY1UNBAXEanM41umlrAcdkljv9hgryNj0c4Q1ozvP4udM0yCnn9IcfdUGZuKTSvqUYBwLuDZ1pLY6f4TA==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -16549,7 +16550,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-sgljeojIGarB8Bd2zP7xCGOZOvz7qcjlyWjFI9Evtj+VsrBHGX1WFIl6AbGgZR9ERUoXj2Y3GYzvlLpcKCRgEQ==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-hXB82IJPZ+ol9Zfr5PgG7rh+Nutmk2lSEqMZW95NQMI3xPThYsH13g+tgaI7K2KitTD2VBeiFgh/DntuCf3Qqw==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -16579,7 +16580,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-q2x6ndLC6coy0aHTEYL2ZMSywpcpVNbs0MqL/O+JGbeyamF1YMJHykbMjyg83PM56uSPxzNMLFI3pYqdbsp3gA==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-pIQra1/tX8tLRgyljVLKBUHzSshvtEu6f9j0X0uJhgLwXCUcOyAZSJGkQtCYXRfqR5AOUJYeewFJ+G97DN02oA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -16608,7 +16609,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-XgaPFuu44TTP53vd6A8PBGRiID2WzXSAx3OYuo15MX2d3Ci02bMHSjsdJ9v1EIp7yFOjJLkJYYYa+C6arUr2AQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-5R/ooM56PlrM6tZHDCd2Gbhj/dk54CFoNDfYyMdRdGEh1BXAhFNlNMhbfHqwTx7prY/uub1sywZAF9G4NEf9Sw==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -16638,7 +16639,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-W+/nuc9O6U93wD/Y5UzpCDzXwkMxJMLP9snCkv75J2XVqv4Y3A5J0X5GkfJ/X2RieM/rrfT/093peNxThVbGzQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-kPZCjzy2lilHbWR9WTvT9vHrtyhlVo74kW7GVaC4KmuClG/7NLv6htQjWyOwmN619nV1e5Tt+LabezzrJj+ZoQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -16668,7 +16669,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-KMl1ab84VdTYxE4wTctZDZ8Mljz3x0f+ITYS30M4J8IC6T0T1fN2HseENk9Aohmw6C2RpKgZhbpaw+SSwj4gDQ==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-4+FHl0yd8RfK63E1b6qXc6GVKDpKSdhkrWNyrjVW+UGbUxd89oobEz3uVocN2PLbFKk1XykX5M8P5tfXW0KMWw==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -16695,7 +16696,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-jvsyV0w0TVK3lV3+q7Jur8p5KsZBKJfMtkgQJ9NQeR2J2hfEWVB2xBZMlgEDOLw/xKRmt1DQzbGOXSwnVufpQA==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-VCtjyZAd6HF4LRNwGZIb2aza8lYAhuYg0ZGzO79w6EWNSuab6US/ufZ7SHnM1IRL8ABUeFZH5yfQZ0qsPe0YcA==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -16725,7 +16726,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-+CVJ6VZJ+3b7sfDoEtVhLyiUe+W6zdpj/cdc4inXZA8mRW+3xqU3qr4/UsyzyqErpdhx8Z8fWihuGuvsc9TM2A==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-wt2ZQ89QtMfiHgeEObNs3aTO9qSL3baSvG+qKcZHtrJSZeuL5g+LIPRfki1BEL/V1BiU5IamxaGoScqTmHhu1g==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16753,7 +16754,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-tevn+llcVa+h7PB9fDDZeQosXFFlgPvGVWeWtbAGzre7W5trMTmr0c96H5B5p1F8NZ+u1+bwE7zzhwhcOHFzKw==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-Ahle0wNx/lnFSlEh9rh9p3M60DsiVz1W9WcPpKBcgDkOVXo4Hn9Jz/VnEv211kiXn4En2Kqzoz/Skxzkv86AyA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -16781,7 +16782,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-UfKMLXF/ipnrDcq4TwynZLFVaK9tfMdV9nxH8f3Jo0ke2G3XWh2d+kqhcEtdXv0EBpn9e0WB+Q4fJtROaCsbDg==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-4Zoh6fnNuCkMt9E0p4s49SoSQp7Pm3/1UrEx9USsYoUJ9/ZOQsMnlRGsaqZMRBM7sLOBXlWM+etCOsP5xWoOxQ==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -16811,7 +16812,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-FkDJkBIZ36EUmTExOygYZudg05zjFQOgjO10/t20fNADvVZwk8SnTwd8KEuvIIbTuFRj+5a117RerkrhGY2rzw==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-Uz0e9q4InfMO7xMab/rY9Ye+5gZr+WrkduLIllWqF8sIgbTEh9w1FyCvC5tUIAwA0/KZ2tOYANCzrxrYWsmgBg==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -16839,7 +16840,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-CUbFXmQh6DciSrRNZEySqrGydRhdx6rCg519n8ZPUac3bje2HWwY9jXhENoI4JLuWRwB05caWt3w7gWQcj4QRg==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-zzcgPa1Hunj4Hu66k4NolAVYpvhcCVwPxQHpC1FtodosBgybNuf6t+U4t4Igz+2PO6gpo3HIGWaxSYcCrZnAJg==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -16869,7 +16870,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-Y0k25n8HXyb/lOTZX1QAFrPlmEhqKkO+tr64olny8PPa6TLkMZivxJC8GZwku3MsaXmzBrvxZxLpmZF8Wn4xzQ==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-26Q3dnPk7WKt27UIfDwnSCmOfPaCSNwtRXgPiTuZdpeqTxeaTEuwYikJzIKzMKfuJg9UuH9dlwC9Xjo++X79bw==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -16898,7 +16899,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-dvSLDxvt5SFXvhcxVBWVIrYYRhX35n2MbI8fqsQVAXuRaGgdu28+UwTUrvG6T4lu4zxoPNJRnDbxDk3e2JOvFQ==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-XmQAvxgm9s4UrXiZVVHsglTveeYkwaP0BsYNy633+s5Yyc3EnDm+legEkO6SetZs52OqHhiy5g9sY0bEf8UIqw==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -16928,7 +16929,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-ToKMpx4Np2fNZoeFArh2mDZo+KE1qSxNBJ4WhFgX4Gb5MxbHb374FKUd1twmkZfAIJSO5Kg/yhZrmgYHtKDFeg==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-7p1NrmiRHonkjA1lzskPsp4gMevsRxbLRQ1y/d/eEWMJJw+WWaIlfNfzIPEFDOp0is7zUMRAGo+pqyHTDF6HIQ==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -16957,7 +16958,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-OTeg4MOD1EfhZAgVLhDEFhA9j2tvnLIDI/CpUo7jRMTH/DKKXYC5y+EptiFKlh2gnp84AlxXhIc8P1NtoNVJiQ==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-XX/upsyOeVe+pwutokrJAbjS6FBKzy0vSINMXF357bORirkkD5zjMfQhjk5DrRmG9BlRSsaK88Q6+gF9EE5RWg==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -16987,7 +16988,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-naRyqnZKSU320k5OZMtT53OB/O8WCb59y4lZKVh6rh6VIPJYh0zQGT52wCYLjVV3eSx7EWXeuJ8GiNKulH0b3g==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-uN1aSqCT6zuBzyEFvmC6lMPajX6WYjyR8tMgQ94xzA1+YBAoxJP6DFZqOtm/PLnWzGieYVi/FlBMH613jHdKmQ==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -17016,7 +17017,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-LG3bCRqDyrdDXRfaQWNoBK7iFdQ4QqN0+0bPoPfbxMOlas8xIBND+kmwPoq8PE1/aMs8+8U4UCH/6s7mGkMHbA==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-JWcZ1aq6r6VOz8ER8AkRgtDgEi+yKvsqzG64iPIAumIg31xh5iPJB4QDrbUqc1C9vrHD8jyEI+9YiYmN8+t2Aw==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -17046,7 +17047,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-J+JK5MpeGtm3Tp3zA0iEJj/++NMgjFNsI6x1wgsXzHm8wUYIVrrtZKsC5Z2XaTByQNZ3EcJLzjUxNTg+dCGTkA==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-en5X7IAftfR7D/KpQ/1gf/cPSJ2JF1kVTop/j6GgbynaJvYKyl49O67SGPTJYjUsNG9gRo+0CefGLGBtRSANzw==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -17076,7 +17077,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-wEskdTED2UuHru5Ay5lYes6eC56jT+jR9uNLQfsOe/dFrDeRxw5rODFkvdVBz2Kv1COY4JmylFYJBRK0rpi0mg==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-kH13ggpSvR9YikQW8EwnlPf8qO+oRN8tZDiZDJwQRm1niSemDe1i2ZZ4dA8FXM9gfgu3MserjVWd51DIfMZyWg==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -17106,7 +17107,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-NDknLKWM+Hy/DrMmHnNU59EbZ+2K7Abmdt2u5vMxc5HMf5vG+0r2y7JBr0UyUHek3UWEFrjohLCoaLrilZI08Q==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-VjGcZSfgYfFhRJvoLwGRmL5VFlWDLJZStlBWDpfZkS3S32TkBi/lcg0hldpA8JdxQFus9Q25fTZR98e0JMI/Ww==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -17136,7 +17137,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-H9OANkU6/grQPxD2kzV3MESRUGXGwHFAw4LlFGHF0ICxbWd2bJRMiUihzXLv/mO0SVxGrxgm8SOursqwS6hDtg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-9lE7A6o7sj8b5J93GJt4L3sKN6unlMMw59aaUrqHAIFRZu0hj5umT404Y5YPFrVJ9NybgxsbjtkY8V/WQue8uw==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -17167,7 +17168,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-CteObJAA8vKLPbR+ynaFsGoBEkX+d8r++OANUGwjLZbXzeaKZ9at+4BV2/FzC4pvNLHRCMG4XhFmDgmRKABL5A==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-BqAWBHAiWqMP3n3RwDlet5Ff5i+uezG0EJV0o1M9/H4jeAhUfb6a1yH3E420h3p9n9lRCrMMwNZ5DPues3axkw==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -17199,7 +17200,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-oG7WIQK9XQUwjxRsZTcpJ8PwMBvwG5ta6WaBtFgYtLpXq1C3mIZ9Ss9SMKYxPuWLhVLHUrX6LVygge8zb1xHsQ==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-cmFZ4npjn0zuzYThNnmXR0yBs5v8VHaJe9uvKO9qyP4d0rSjeB33EnjQWor8RfX42bDiZg8PMXdrxI/KMhDKfg==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -17229,7 +17230,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-VEnR353jUSEns94E5E/1hHPAUbET+R78dbG26RA9bhLaoxy9cTru0FFb94YcOXWQXQD2YsdEl2dOK2gfoOQ6QQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-bsUUIGGbARpHKxWQORBuhokwDbDv7u45R77/q8+eVMytO7ByoYIzBNKkuBcK7aRazp2alODk26+ywl8DVppV/g==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -17260,7 +17261,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-u6sO2BtK95EdzTlC7nWVrKD2UpnbFpx5Qr/QjiQvYR9smWqJYAOwYMEKY32QTcOK4ssUhT+6okiS97wmohxsYQ==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-9TTyQ69S5/l1ylqkUhQ6CkByPdmUktNR3sjX/8F6LA+MvdY2fbHaVUq1zKiKiCJ35Z5tjF+w+WmKPqJo96FmeQ==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -17290,7 +17291,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-Vi4vA4PXI4rTCSRxr2C7T/rJrI0GHL+MaPYpePOQHGahAtWb07ZLJDh2/r7BBNaYNdwajabwDPgjvuDU6Q/P7A==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-Zqgzz40DFauREo1j7XqX+R74RWPZA3p3FiMDpv570MLowSi5Mhs8QnRsPL54YigJC3NxEsmPdBUvAdq7OHX8Qg==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -17320,7 +17321,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-nhfEt9S8ABacYJOvv/83nx0GYKidVSAMtIxj9bk34JkvV4w5VxdXaW/FESO5AY10Gc+ifckAz0INVOgBBwEnqg==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-OzQsNQDm/6PWpjCyGNeJ35E74VUS3i2ei5DiVfLcLFWQHMEf0C5rvbeLzvQC8mAQsumGrtz6zIHLhVxqtmvKCg==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -17350,7 +17351,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-gubo3fpTtg1NlFiW032jiO9ioQSQjaMQu3j2rcmNuzJA6JiwikrES6MFzPZiZEwNrT8PZGUgfkcwHVer7u5dCg==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-E0kaGMCX7XZQ6uS7t7U0tBbJEDsctlXQbDn2ARVFO6Y+5/MJXF9Uh9S9EjrWv4bIdq+fS7T0/jDbceP6OMgz7Q==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -17380,7 +17381,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-xHFRPk2FvCS6P3W55nwmqtCPtlIUAecrTemUK5CbCjL1HhDv8QLSIcBwvdhEJkPVY1ASUTAazpK0hgqpZed99A==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-Awh1eMRlSVtj+O95hp8UmrWIhX2B6lPIAj+qIhrIMZY5NZF5oNj1OJ4q8q7HLWvyEkWYY/NM3C4cHX5Gg4/UXA==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -17407,7 +17408,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-hqLRvdXWAWDyn9MCjNPw2Mw4BNccxVwvrn9/s4KaCsH1UA80GnRMY1QpXFn5JW8gtzqLGwZaUZeP3W2N0U8ZQQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-wDVa/5RrLM4j+1dg2+JdFV2OS2m52vPfZU2bsJeNYuOPcRKb7PUMBw30TutKCtNoqn2/7WAT2KDsaL/rcl0Qww==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -17435,7 +17436,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-9wCHZxITBFlPcaq2It0gqtb4CgBxTGrSnpbhjD2YPIdVS2WUrFua35Twlg/hO01xEdeFUNmDkxqi6zSdKBC4sA==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-MeIINjpmNDkst/xMp0da1fZYT8HUmm+31L1oeaOPNkyOrMaRYdPkrRhoMtGvVJbHxCaeVZW5wAMVyyY/qdO+5Q==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -17465,7 +17466,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-okC68UG2pfrVFsrNtwki3oozWSMdIo9vbceEYxWDTwW85Os3YrfTZI+DaZsVuz/r/0aHgSw+BHaqzr2reeArkw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-s/KxziXhUXvIPHRol4WFO98+YmQcu1+12hzqOQmL8Mm1lJ21+OawKt35e9c6IJn7otVfYAzdJmBXKMYvdty6mg==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17495,7 +17496,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-KAz1rCuiZoyikMdjlm82HBCEYtI+Qj5M023TW5gaALHdqObN4mSTPioBCHCNPlsSHs05zOgn7J3c2mjdMzzU1w==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-bqxEx6rifKwElNxpMiFH1llEbqBKow8C/N8Ln77Fml8bPvqm2RYAwu6iDjfPqPu0hieGPHBhDIH5jDsRusuhNQ==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -17523,7 +17524,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-DK5fZoVVp/hHE7Wlc8eOgTLrwCxWtv8uIRraux9kliFGkcv4G6JMVy6276kHOd0Pw5mF4dDOMYoF1fnRzLerrA==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-lk91CjLfdXcgHQT96k5N1GI3ESMuBEMJWD4MFTWDe+kRVZNGoYNaxkPY4IJ+jTr+P4F/BTDfbjJh3+WVDufQVw==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -17553,7 +17554,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-vaLeR82fwmtOx04RBS0pepHbJXVE+qk6SeOg24ZMVUtcRRRzNrSoVtZHoMlAStoyimTEEDL4fTeRpxxmW0FqaQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-JCK5nD6vWwcsIyOUN6UzkiU184G8wxUzn3M477++LjChLjZqQ5tMvCbnnMVqN+nLB14eLpqQ6e9QIrY84yZ9gw==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -17583,7 +17584,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-wk1V8WEl1GhY4hvEhwiCTqSiN0Z9K0OjhDAM/T2TZklV2D/IBtLj80mSWD7vbfs2lA02gSGRaDfFEmDgFc4m6A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-jeTWgpZeOaIkRq5tq7NaoT7aB80ygcHEtnU/H5cInqrN+vu1hga8duRaPyAPwonvvY33fz4S3Kiqqw3Tbd1IBg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -17613,7 +17614,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-12cvCaslqBWdhOR+DPkVEsTM8iICi1eVltFeHp6W8ny4tBnBXEJ6AV8Ie9W5DNhBiq5fTX11hGsNU5dDpGgeEQ==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-czQLEQQt8qZE/xx3DTrWf1w8e8QnKHKa6Xl3K32EO5oq3OwbAdY1EBtU1lmm7ooy/i+ZWJOOJItVxGABJzbrZw==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -17643,7 +17644,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-2vBN5Am03jIDkisfpDkibLkKhOJKwQ79q3b6suTJA9Kca1lzG/L0bAU4wbaqx15y3Sf0gLarmoc+bSQjeMXMVg==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-dESEuK32eLQ6jl1f4REJzBJ4pB9loMu8LYZf/DedtSYVNQKWarggRyf7keZIqB+1QG/aGlLnE6hZZ/f31rRSOg==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -17674,7 +17675,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-7VP+xjC7SfISIr4TiLwoC9Ga3MGM/3eiT9IZKl7eH04aWPy7Skf2n5dWo9CZUAfdHXFiH2lUm+bAwu/Mk8fzLg==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-YsLr0X/Qb4cxt70xx6MQnlrT4vasnZJxZ+7Dqh75sC623epcSnRO6+R2DeXVbcbSWLSMbpojRd+HpjaGDL8JBg==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -17704,7 +17705,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-XoDjznfDCpbW/oDhFqnOHgYDqGRiP1pzY9qRGOLa/Gv51OAOi35cQs6toeTZA2whfgWNsKVp8wxtdvuKr2ObMg==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-7jlXfgEkaHLsFWl+AcYWzIW3z13MIdKV4PF+wjYAlmJ6OmnvQNpexslkGvkguWpxKXQJwChU7pWa+3tRMo6bzQ==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -17734,7 +17735,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-2hUPoU+gKUGR3eMSfcruhUC9Jv2icxCwcimPRk86Wskq2kETMxkklFwiI8y4E7OoJ8iftpbqBzp8RJTGlhdIaA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-Pn0xPEK+AyAnRIb2rRhJo7joLGsWHmWdB3u57ubZfZY1dxefWDzUMrWKpMv8r/YZqYuZ3QroHhpvP7+IwN7YPQ==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -17765,7 +17766,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-sewK0qoL//JqCcQuZKjWSnZ5hhK4VqIvHsPmkPs10mnxjaiXlJvXerUkzlHlDrS95HXMoHZcuwb//a1L8zswrg==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-WeILsyd45/ywzHxyYqmXtflAR79LoIt5ncL5vgNENe1htk5YP4Zg2Ac3gP000L2pTx+d9ODAjVTkpMl0xqhWAQ==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -17792,7 +17793,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-YRvmbxtMT5gUtrPLztYF4joVIKy1qnvpL2YzKMk641pUJ5Olok7AFpVyOyolA29CVOejYGxnmaqOu0x3ATf1+A==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-axh4NECqyvQewLwr5RlYMoJ4apoAM7Gg95CiRUSyuidG/1Uft7bttFKYWELS9YS2fcYgjqU4MHn/riVGRrv3fg==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -17822,7 +17823,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-omMAIhHV6H+a+9WkEocV2VTtMOLvKoPHTE6JtX6IBI4lQTYGWi/Idxehda+36tQzOPFy2fxbvAX0foLDVq7O5A==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-BiZ6L6Benu3gc4nh+MZEQWNzKmGTBZ6KQkW/t0dsAbuYJjwo3yg+ZKv9gX5mzHdy+njyW9TBLfzrFOcbVfPxow==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -17852,7 +17853,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-lA0pdrClcfkUG2PO0mTlNzs7nK/5hoIldDE4iV9eIQoBa93vKvEXYJ0JhNjQ2xHAA/KGkE6qvgDuxjWPSKrF5Q==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-JYWIjT+TstRhrbmqMWXqO4XUIBHafUsT1JqcrMywG9UN+LLybUZyUqW0IufPXMFa8r6r5+g++SCnFCl0gM8xzg==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -17898,7 +17899,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-eqIDVkYoLNPtNhN8ad0PzzmZG3qLr7KJ47ddm3cKxMgWgfUhhArzKOy9gABscSaviRNZ1uBDhSVfGPylGSCDsg==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-T6sEWzGIyKSJMuUjXz08MCIrsv2YgbAL18thKKVkl6dLll/2ZsHqkw6ZyFT+OziMARhBWDqfWonN0aNDuI/UXA==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -17926,7 +17927,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-wdIGh6BHUsqYhBxuHSdGfzMwQZzSOMBBf0aMxu2ZZBsp0LhGmOQ0iC8ZYTh1irqJv25B41nZhteIHAb3MUsn+Q==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-uKmGK/WjJHp5WV8jxU3FOYRYDV9Zg6KA9AvSFZJ+YXrjjVndOA8uNWzXwNOWLbDDWfBIt27JFNlhAE6jzhztTg==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -17956,7 +17957,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-38POqclFYBeiOFevCdzDT6orHIbqstQiVBF/lINISJahsf5sniINdePeKQDgmBkeNnQe+Ha3rIFHrnLY+6sR/w==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-6RUYpKocHi9UaIzjrPU4I/60lvBlitc414KZu+YU4tUZoBDAPXQZXO9LuGyTyuheh6pHtsbZkFrYlacF5qYtGg==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -17984,7 +17985,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-eCuZxtt5PU36HugZOkw1qOqD/FZABQhUr3dzgwkqaSnBpr4kklb+4jDh2oqfUw9qVGZMPuBRcJVCiHoOy6QKGw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-rYEBxbAe2PP3o2BojmxRBIbP3FSsiTHUpbmUR2heoggfyGbnVPX6iS3nY+Hz7PrpSARDTY70JzLvoUT3XTTNWg==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -18014,7 +18015,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-8oM82J705NBisX9XMSfRclq1RzICRu+E7I5E/enG9YsPY5g5X1TEKAqMSJ1MtXZwwlgAx0fMzQTPQ01nPMw7bQ==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-bVJcJyxkCshoHgttHBqYmpw45DtmUvuXULRyFY9/xg+K68+F8J2XPwiJtU5b12Z9iGLFrNbckjol72o1+LdOhw==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -18044,7 +18045,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-t7QrUdy9H9zZy1043PQ9RnGrSbFiW3Q6Vanw/3jfgaEYsh4A/RT+2HdmsqovWPh/VCV3wTiWTdrHaiuBG7zmdg==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-a8XZBza5Lmh7gD6GF9YpRmjXEyBoRAgY7Cpq0tF0OpzOLlniApCqnJ4fPt02v2miueIo250nhy3QYmYxIViCAg==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -18074,7 +18075,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-IzofRQtHrYM2FSJvhvGMBEKFe/08jMG+DnRc246U8V7pAsCsXnsBP2++LcaLg2neFbe+UoScqJpS56QB+GdawQ==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-bAB+/XUaz9E02/f93yfpFETKUiMHCxhGUwy6UhG/R5f63b7evQSQTEyb1r5gzrRgWOQBorbErJAsl2LNLM/Smg==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -18104,7 +18105,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-tADKVKr2KgUjhWg4HMLiBvRzoqT735FYYoL+gSOswmL7NRQYhb6197fPlvKM32AmofYNb+f48hKb7j0WXOTBwg==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-yTN3DWeyyBKuf5JfYrs7+KYrw6CvCe5vEFpl19YUC17ZEsNDtlYKNlznthgur3E0O8Zbi8bXcZc94Ni4NeSOkQ==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -18134,7 +18135,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-RnCeKRX2OFpjqRqjH80ijad+e0CeLl6xeGgoReu/FKEeiLslXMBTIh2hYNmBERCkY2mh/NR3sARta512kfOfqA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-2xkxpXSZIkYM7g7C6s5+iKNBb5hmg2wS4HrNhD+eBwn3ed2ErvK+NbAQKRn8oa5m6UyL15IJuHXQnNyrpsd2OA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -18164,7 +18165,7 @@ packages: dev: false file:projects/arm-standbypool.tgz: - resolution: {integrity: sha512-+o0rO2dCCLbj+2NRrFmfXwzFBZOy98O/4MxKPnTHTek0EPwR0LKZpAZ/V2NJQA/9VUB7nFUuLhFdoNj+746WUQ==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-BQaldyjX+Eyxs1JBGfqNVYEoGmUsqOitOnr1g8EWzzYTNNlpbp6nZJqXOEDhCKWP7uFZbz4xhId3W5bMpYMpww==, tarball: file:projects/arm-standbypool.tgz} name: '@rush-temp/arm-standbypool' version: 0.0.0 dependencies: @@ -18195,7 +18196,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-0CPFYsogaHFn8uJH7NjnOewYFJSv0MbzNKVh9c5nCQLsyleiio/OJUxsaZfs/tF4iLPV+PbPQxigalljfhp1WA==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-H+eQpB0n0StajpR9RQJBqJA/8XhAbiOi8jVq438ccdC/VowrXs24LUSaDHbns8e/wXgSgOdkkSClcMi5vCOoLw==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -18225,7 +18226,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-x6hu/nkzC4XCtAPRQz3c2uFh+SuqGmdlFjPGvmYtNbbkSFLt2X01dxNm+i+fhdteF5nrboraQymHWSSVEul1og==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-Dbww+oJFHkDel+MjnGLKiWG/X1XsUQrdPzGwdZiVb40EIIs+5dI2Ge/uuiNW7Wm5B1btiOUhG8bbJ3vlTX/xMA==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -18255,7 +18256,7 @@ packages: dev: false file:projects/arm-storageactions.tgz: - resolution: {integrity: sha512-Yjk94fKFktDMt2xiB8UovYuiJQnRN8EKX2mNh/SP0zgynxOR6ByxUT5IgQWchNaDdr/E0Rzg2Y6boJRf1N+lmw==, tarball: file:projects/arm-storageactions.tgz} + resolution: {integrity: sha512-52BOt5r0mcgSvrSHGx5/vqQJniOui9kc05Ys/RHLxWgMiiMOUxDR898doXz45EgURSHfuG+/Vyr9moTebro1IQ==, tarball: file:projects/arm-storageactions.tgz} name: '@rush-temp/arm-storageactions' version: 0.0.0 dependencies: @@ -18285,7 +18286,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-UbC2fW2yNlSq5C56fbpimT3gOret2gaoPhAzPUXlcvKKXH/5OQ1LvoYcRXc3C7Kty+zOmUgtaG9Mxu3/QngX8A==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-u/gKYCn1AYdxTBipacMf2mCowKKEXLs+h8ndDNfbqold8YTOSstGUdfqB6uqMTSx8XovVeKFUJqmOOy55ufEWw==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -18315,7 +18316,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-5535CDDeSUHJkLK+9PUsgfKd02OKMr8tBI3374GB73QNmKekn91vl5fTvlpA1MkqI97YGmjy/PEJHteF7Uo5Zw==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-fSXFx6l9FC2QNNVUSg7ltlpK0BWiuX/3aKjMsOh7w2ouDlHbg/mp21bUb/XTrSOZSRnd42utDhC/wfRd/qs2vg==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -18343,7 +18344,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-/wGv4mhzV8Bb0dAJFWZUUJZ7jfmSQUXo5C9okmbFwj5CuZKY+bVKThVS9zulAWMmxL80Ci6iFBktADJuOB8RJg==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-rdanPDfg1WUJnqw6NTXyJGqTS47URKy+Xb4zFldadGPqcXCvH5Bv+jsdH/lWl8N8X+NaF9EhLQpMKWERkMsZdw==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -18373,7 +18374,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-mG3t8ObtCotR0yNn9w7VQ1iieg/jmNWFeNDIGxE+KJ/LFFU9hU2AiClXohhXsN/yNqQn9oqUSq0uAktMtQAxMA==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-rUKAq62G/GxJvsqTOSQRzx+QP9SzeFRXWWS0f8nH5ISXThQqLh6WONBpMIioBUs8yUc6XrtUajAM9nALuN9hdg==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -18402,7 +18403,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-gGuAca1T3DQgHTxR9Z0uotNFcWRnZi3+A7/SpXeXuA5Jq+9A2An3sn3VPUEH1a+lMK3lJ2g5fbcnCDqQ6tmQSw==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-Cm/AruveyxQ/4wyBLwAyg2Z7cHqprIEur2aLoWmd+GlBN2w1M+nFIc5B8JpAOSYBEByBVT8K0Tby157epvVn9A==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -18431,7 +18432,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-Yqa/VPTg+RoktUpZuciBvS4V5fgpD9kImwxdoCGnK2cmwiCRIinJMH12OYh/RfVyJxDZdy46PiFEkGzZokDTpA==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-nIyKADpAwewZwspfwiort9CmqG5ghTHmGuv0USkllSxuyBMjOKX9VRUqoqGiuvRLQV85P0YqwoLF65l1MRlsvA==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -18460,7 +18461,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-YGfULehNVf8yQ9gxMrHJqpr0zs9C+RiPtZUC/+kJ+xGEFSvaYVrfyW9klHwXyZYuqMNOWlJSlXnzu3GFyEqbaQ==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-jnr0X00qm8PV19g8piPM6nnsdpONkFVJ3QeMFx0FcVETMreGRmr2k1MBdDvCYwy9LgjPGihHwtdug1C8K1+XcA==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -18490,7 +18491,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-6z8KqEUvJzd5HqNfwvED8v4DnxN4evWBbibcyjbPTiIAYG9S3eFf2LfbbOcZWUw9ur62nmeHB3HAEvlJeDpfDw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-K95ot/NVMi+aytzoX/GtflqiEf/jnYXPim1XDB1PzReVPm0eyNANwYEtb/VNUxRwpmKxGKSflctRydWwKv5M4Q==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -18518,7 +18519,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-Zhtswu6Azp+klzAOV7wLEPZXYmsldK+/WAfAH4qPetVgXzT8zLOLpM9Ie4sYTnj075pNrxNVzvLb3YciMiA1NA==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-5d5gQ2CnowRVJE4+e6mG3EpJI9MirPlYpRx+aab9vzOlk6wUdAkf7CveYC1DYdePtWkjOD2O+maLd2n4j6aT2Q==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -18547,7 +18548,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-j3zImbzUXJ8ODRB6twJZSZglUAKUIdpYIPmxeHOR+1U/YaKuE1ad4UnMNaxNt31aqFjsoHnZKvvfqk7+b7BG0Q==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-EZx9LOr4FvnzC3bqcuWjHo1Opm4bDSGesycx1/D38K98O4Fq/vGs6M0pILw0rp6lhYHh5mNo9jtZw3Ssjm2NAg==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -18577,7 +18578,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-vV3WDA5trPdYZ4KnOppgnZP8EB1maUYEkVn4z/rERC5cjF7I80riha3OKJ8GKO6ULfcapiIK7X46DFCi8KCQCg==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-8I4iVKSvQZmOWSSFWsqaBgvpDN2rw3Vjfb+I3x7q1e1R5jMdrHOrQez5dwrDgtI1UKCGDpi6AqI9tTC+Ro8gGA==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -18607,7 +18608,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-89LoIr/8OqGj9fB4IXEFBTgyxz5KzuYSoNXrxPHhl5aTdiI4KtMSsYclNE67Klw8Gc2CiTtcqoM4lm3Mzj1gGQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-/4f1WCCm69AA+DSzChKVuxHT24dpHwqujEE1sJXUa3LPcXwCu55AFmNrTPj3aTYW8ca/oiYq+NnrwUv1+/6DHQ==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -18634,7 +18635,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-qnkkvmYPLux8evbgqjy8E48yAzW6uo335EKGeWaEZkZFWttz+NDrXx1AxDS1G64LuOb88M9i1b4e2g21mw6fXA==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-TePtcNhUU/by9QGgfBE7gV/HZnoOfB8zz9FqRE4k9jBw1dGOB1ZA7wpvWAKfSlMScs4SXDkxzIkuCmS4YP02RQ==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -18664,7 +18665,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-pkmH7BWa5ICZaXmvUpsrnnLA3cWxXfTi+v0LcQLvj+FDAgLA1DMLy7eKEsofUPzgK3V7m/Bhqa97GH0CRswDRw==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-f6J0LlmjkuJqcI8gOx3XE7gYdUIonXGsd6AyBIEQOybJwRwiKy9JivZqIGdddQT2d/ztoQJSm9iosmgsYIRqag==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -18692,7 +18693,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-TDlAYlbpZa56iSFTG6JHAB81hQN3woPURzZKAX04qecRLYtG7+dDc43gpOGXr9scxYZyh/DgjUKxTbFlbMxZ1Q==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-mRbTbNgi2nXKcvTqwmZzGUFZRhdZO/wvEWitn+qNa5AKo004pW4lFcStP/0wNAWbU9FxOz2/19HJcJAU7JN73g==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -18721,7 +18722,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-q0gKszre4tmW2WC8ICjZv1GfnaQYuWovhpOGynCpTfvthbCNlAvyZy/uD4v7qFZ/DNjvfyIRDwL08FIJSP438A==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-mLljWv06iYqz0igUp3jqjyVPR7BiCcJxzvy29ImESgckI5/B43LAeOElM4Mcqm2MUL7iJzqtvVxdJOM6hRz9cQ==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -18751,7 +18752,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-NEqCLnoH034PyRhZoRcOaK7hYhbDaJLI/pYPHnut6fKIX156C4xZSv0SxZEsnngCsB6QwrtYoZVpxG9y0qIpEA==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-9QZ6Qdx8TcgynoOzSFCOJK5X/67bv7XwBlJK3MjfUFIHlb3siF3NUrpw2x6Rk54wS5J029nKFbk0NWHehDQvrw==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -18781,7 +18782,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-3ggrHyfxhwhbBH8YNlHt7Bc/lvpZWqB1wLAMHrZbn/fUYwDEETwDTeA/x7842cnFzPp1DmbgSQBrznw6boSs0A==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-Royoi1sbidwFMB2pWwZ0FSWrn+64GU/OluE27Bnu4KRHL/px7AGUynDMJxVC6JXyAy3jBlFEf2FP9+z4xYw2Sw==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -18811,7 +18812,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-fMfdnEnNJAk/ks1WuOF9xRwj65EyDuuJAV8tt0l/ouMmZGTOh9D1oT8kf7VOfE2S+j7EmaAtmS4CAbvHGuKE/Q==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-C2/6j40wC05SRexUHBhbHkp5nzcdXHxVKs+40TH5jkfIe3UEd+hdBwUrXYD15elyhdWnCSBvwTmqo9/5e0XQ4Q==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -18840,7 +18841,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-4yjeKRL4+UqsnT1uCyP/mtMCE0a3tK/VU6ajQ9/MJl1LQ0ZEVgkB/Ik1qse1g80flhynf76DleZTVnpLnfrEEA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-aztLYedZiCg3pSlXx+CcWr5Y/qRy2Ht9siOHF7K/ij1WTqIuKMtz++On9A4rwiHxM/wJHeFUZvoLrMu/69HvVQ==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -18870,7 +18871,7 @@ packages: dev: false file:projects/arm-workloadssapvirtualinstance.tgz: - resolution: {integrity: sha512-6rX1UaHWQKXyOjzxwo/N2Sws14UfuU6MLdT18jTonfjVmFajTcpwVSz0xUOpCuf7hxUxGWxWuPRs7Y5vpXAFhg==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} + resolution: {integrity: sha512-tls24fzfDvRQiFskdWtT1/pGZyjlKXz3hfSCS4UMwCtlOy53jlhxyu1hXdUFDND0j9G2BKZCCJv3PmH7yBjT9w==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} name: '@rush-temp/arm-workloadssapvirtualinstance' version: 0.0.0 dependencies: @@ -18900,7 +18901,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-g/ofzNN/gEh2H4nL3PZ77hHaARGgzCKbitvJ3VGp3r+JA9/e1dXq49CHWEjxaE3f6kmiR5Vuqmo9HqRn/3O3ng==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-epOWyxlK63o6PEll1bioPaLRwC+JMhCiaqb2KhQszufgP/NR65DiuUvJzscmP34asd7jJFTrP3WDLLSNMtIbjQ==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -18927,7 +18928,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-Rhw6hDb4VTtUNH6gZ8DtOzx5h0Xc6GP8GHU6/Gn5uEqfZhO1gYO9oET6HblY+38a8xiinKx3jJrV9HFfj67kOw==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-BdzWdiyPO0s1506Cho1/SbZne6RqZHWcwKoNDpGmLIj0v+b92KWfBGGiVBH22qhk14yrs2uEPVkx83eNMZhrWg==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -18978,7 +18979,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-ZnA1LD8oAtWgDUs3UwmgGfhJUulvZgVq9PtuO4oZc6qp+uW3dMqruFXTyfjcoXTJzcC3gM+yjHW5phc98jqBdg==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-GF2Y6y1LoPqC+KnWroIE8asHHFig/mWM+DqVNGBwDnU8ynjelMfr1L3YlD6lFqYfX1Qt82zi1QNwOTYBXFtj+g==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -19022,7 +19023,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-N1TW9xs7zjhhmXOxnBlFrFJJCwm6Ee64UfhhZBhODbuH3hv/4uc+yb5t8QnaQZ0TJKsR2ai7D3rDOGvCVaQapw==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-zbGPNdUKPA/qhxd9WpepAa04xDLeLo0BDjFwJeLHbujy4YtI0rYNw/Q5yVKVCPvfEYTzrC4K1THhbq4fdXi0wA==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -19069,7 +19070,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-LsbGjr9EW8VTWF/5INwJsD2jzswejO0PtWkeP9T3VW/gU7HjW6IrwSw0pvEeJJqgSAES/He5SJVkvmUrZRCpww==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-h6dvMTxQFeEy8XBMaCkCh6Gxx0qLmbaiijdxSHEYHP7M0e7X7v4ElVQ2ly+JgcGV/dNGYNCy6HW/37dMZvgl3g==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -19120,7 +19121,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-Y8j8dX2CZGGFAcNCg+HrM+n+lU4nRM/1ZeBiZgv1fOrCiVWgzjkOoZwe1CmSq/N7tyWxdayM77hvsG3Zr4bgsQ==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-sc5Yo633aPaKeB93osm1BvDxZT1OyiLJZuN1ItnFgtAdXvT+zWegqoMhHhxM/1GoLnB6534XcdLFdJxmmJgf6A==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -19166,7 +19167,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-xRXEkhvXJ87SIsPLCjUr6ud+ZM5mcngwOy4k1vYemoPXeNeGrtT8xa4Xjfj+AcTZqGcSu0KnT7WN0ADTOOWUuA==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-D13CUlblsMJD8aC/cT3mTzdScvSfvWy25TB2x1QaEryto9C2z7dljtTiDjoz1Ealg0KYWSiOp4Mo3qrVOuIOQw==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -19207,7 +19208,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-4uqritVAYrFiioxH1rcq++mNWQawH3Ya+tY9B2qnrQutVUoXDZbOraOzGFb2sLlGhnzMrbtbShIrT28f4urQ2w==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-z+MBBl+IbW9YEWr0VGAdLEOaNssDhbjCnMi0F21Y/gaNpT9F3+BUDqmrQWeEZKcKCqDuJ+yHAKJM2uVDA0jh5w==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -19255,7 +19256,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-Q7ue32A+VikgZLbtUgyCWy6tj5LXwZDPJObBTmqCoWjgZvR7VoPeQsq+v/gmRpfgDEMhi8HQgHhuwDSacc7scw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-4Zrxzq4OXaj8cyD4+81bBTbEkzz3GZ/5Z7z9gCmt+pfqg3Srhp8K2DW3q5dRBA+qVp+41BHgemcYbgd6i3pSdA==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -19303,7 +19304,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-klta9bUdKjEnFpgRl+pyiBywhL61h9GHA7JltubD+8jeYvHJGdh8tR7nP8ctKTnHOSlEExiXOiWeBS63ASDuSQ==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-sokqMYxVny5WF+K0xQNX2QXfXpm/HIAYnJhCJvGRg7Dtmw188Opz5FaEbNQJqTE9QR63BLvwPxwl2QhcdjXxhQ==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -19348,7 +19349,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-bkn+U65q9nFSnYE8eLlstXs2qP2MaBaj4gWnQugCP3v+yqFgruH49Qn11wSQbXp4wPQfHZQK27w72xsYimr+ig==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-5FcJe41Mudz8/IS2m7PJybNtgtQSs8o3s+MxwqZcqJFtzBgNVSOgf+jHz+sD4x2hmoFoRrwmpBB3+wXqTEjaQw==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -19393,7 +19394,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-JyBIVbh2ijFasLIuIo0IMPLyNd+Dr2v4Bl5+9rbh0Ky03HSzpmaU+l6DrYLNxMQe6Q/tE5ulOqy5kLgkITdpVw==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-Blk4AkEcr08EuTm/70Q9gHSSIaUP2USjZ67OseUtfWbCLPl+Nv/lQt8Nx8ko2FLzvLy/Ac7ZhljIasYQWyEEgA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -19439,7 +19440,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-iyzED4F1Ik+GblZhhrQVVCwrH8YuQPZ0p9CPZ/CSZHhhLoBeFxb8uvrKzFTTJTBhTIZZW6WynbllbsGU7WmaEQ==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-8mpiZ0/bBqFOYDyyCeAYWtIAIxxfvO8PMTKWGp1UxaN4Uug6d7S5UkemGEgHPXN4vsqe0T6u0Mt/MCUZFCO54A==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -19486,7 +19487,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-Hnl1LryTZTWTMT/hIKgFiJWa0vEym8WxNWMAr/DyMfUyjv2aEXT/LyqXQRsk7vuoAlfIE4cTvw4/EPbW/kM+uQ==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-Hu1/wYt6JgeyEXDmykDMHA56FQxQcru2ehmExw596bBCb/erO6/C2SB4kCeDQ35aqt6cLcYBk8546gV8AF8KYQ==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -19521,7 +19522,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-nn0V5SjYh82u7vuTx2WnEM069Hj+/v2i3njb8HWq/FQqEf7p+fSYttd2KzZ0QrsSrd76Z97zVhS/B8kRC9K/eA==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-N7gyHOC9iCgWZU6oVmTWqZ/8Rutgi6PBaAC3LK1PTBuTzxOhf/JzbrDQIzjPz30HiUE8UcxuwTvrQsPo0njPnw==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -19568,7 +19569,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-hZyEGlHw4xSJazQOWmInKIfJ8fI5o0pPbZoVELotvsLviaAAmlMOleqL9QcSv1FgJyQGiWzuO6kNSHkoLCaJEA==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-MSRrfLDHFBDg93Suonv+kjnRRgTckoqXbSt+BjvxbiVYrobfgZeSbdVC7NYgNUhgYUx21AIc3xtTAg1HPgPGaw==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -19614,7 +19615,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-2AL9IUANZ+489U+yQsSmb29MF3KABWOmCyic5fpxbceYT69214dg05xnN1MIJ7zeu6HJEHgKLJf0CIIcRPv99w==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-dU2612VMzblJyslu5Dv9cyeulP0W81HJXM1H2Nmo6lQYlbIxajCQnFUBX9BiW/f0WGtRR+R1vODJrgLoIbdXsw==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -19661,7 +19662,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-UhvIgPBuDKu+1RxioiHSLtyUQ7c7p+NixOJKPrnynlEm018oPZWrCnOWtXGoTVGvL1Kw+fRldF6OLAYHaeQSJg==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-Ambimp5suKuebfSdRyVJjisXoHr58EL2Kl3oZjb+YbnoK4G3tt6QRk0FHyFC3/43l09R2Lo8Q840s2KwL6CWWA==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -19705,7 +19706,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-M0m48BzBGnd0MOmj43UP91bmuHVxg0hPJAwQtFKiR/KWl2gwi1iznqCgqawWwarlRjcYhc9oILcnMEm6/3RWng==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-Ut50MU+bo4Sg9A2zSxUweR+O54hwTaZrh6JlkPY9T4+A+gb8lnJV3UKCw6YR4AK0RxeN1tgLPbxJUKiFW4xDkA==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -19735,7 +19736,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-Qy8TPCg6SNZLFu00dOFCCPe6DrUKM5RSAdNFkkCgdN4M6hzW9+MOVjQLb3KJBF+4uij3KdcxUcS50YQolhWuug==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-TVzF8wfZ9XkRLVQLfhS4QLnR5qqwhIEUGWyetdwcAOL1Ew/C0QfARPJhtBRdr+8WsgY1gD+Vik5kwrh9WXlbMA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -19780,7 +19781,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-YH9Sn/bpoMO2RGgcFoNEKODpSzeekOk4egmdY06ziD6DRqrkAeNWLPAcKCcnO9N2kANNDcyZtXIiNRh9VE2XzA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-6zOn7oCE3NYk9+sT/DFda1fdSa4OzmN6XaJF2zZb2L+3WQ+huO+cN1B8goQwJKVm99jc7E9Kjl4SfBJ7qUBWKg==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -19828,7 +19829,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-bCOyafzGH2z9gBKkzcjSR75mz1NHyYMERMSALiTOJDpeC8FuoGsCDrSOmR9/v+m2I55d6rygWYZk9VnB1q7jIw==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-2jHUts5dcKEnt+X6MBU+aZe9MYqqoL5RM3rthz7wNMaW8caKbsnRJBa6b0ssWBn9GONdpjlc3TW3UevQSO75Fw==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -19860,7 +19861,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-vFG3Xm6fMnllPJx8cckEsmZlTfc33U5U44I/EqT762Ueazm/sjd9XkOTNL3pFyz521bkjd195kDerHz6i1caqg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-/RbXu9ILL43rbtkkPxC7xzA/gaoRE2FHHSHf/bwI3VT9zANOZAQsuYl5d0n+lwYW4Vad8fHxP7d1d7xe13a4eQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -19892,7 +19893,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-9Y4Hv03ZUSxtVhWnB/7WjSi1hkaOM+KrxsR2j5QNYDFQgw+48tdNqEG85DA2le+mGNkLYD2Dm01gCcZ8tqt/dg==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-yHmavRIV6m8bfVDcpSOg7Q4ClPBzVriudR4lWN8C7c49gdQlyAnLNZoVCSdCTIO50ReoXsUPJ30++ktn2QXPew==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -19924,7 +19925,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-A7+R5Qx1Mq5u/5Ik5NiAthd1iaJRACoMZRQZra3kLXKbNhnuKBiORudmXWacniG8I3R5oBcATYdTrKdBZePOYA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-+ylx8gtst4Br/PciJYHYedyWYuZipQTeBTQVSKJIlthFF15rvLC+qWb9efu8r8sRK8m8q4VutW0vLkwZsq1QDw==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -19955,7 +19956,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-xNfjfxr11dP/YNkxldpQJXR4ULuN4LX2v9Bg/+/Xqd4A0Feh+c4o59Liofcbq8JRKJx9oM8c1OkJh/qbSb0Dcg==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-y/TVvGrjbUii7Z0EVLiMJgYERMfr1mMl4iKBCps0DuaxsoV22moL12T5ZIsDwqEOAL/kKJDmBY6pqyNgU46Z6A==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -19987,7 +19988,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-JDsLQhIMx3gZeamuiAl2GQPTST/XnBwbyGK1qssPbnNiHQLpgW9pvdPixPuDp9hbLRROu1/nAPeN3hLyVDJ3SA==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-olnU6yyiLN4KfwHZo51n60/ofrHacm8SHiwHtzdT8oxmiKT0b65KIAjwDo0R2/bO4yklcljuigppn09fExJRtg==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -20019,7 +20020,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-4Ldthvl/QZZ2NOY3YcN85PYPZzVRUV8KE9rJgtbsUM5Lx3nv+TXJ8ms/r/FdYBxEalqwgfqR9FeMcLrKldfByA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-JR+kVww42bMncvfSWGE2wAYwPbrYrTDwTN1E8aEGR+tOXPc/cnnlFu4A6muRyEkTW5MSYpMtmEG6No6nMmcJyQ==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -20053,7 +20054,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-q/WK/OEeGAqY9Z1InykYCwTDXlvYwMpuXtcaJf3CRFduO5uTNIAzE6Oow/g+MZj4PScJsb8um0OoA6yEbbcZtw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-DrUF1P0l7NtmOD7JTTCJDefaJxaaRTVm8uk0tkvrtAlGhq9zt8b4v+N5cGdOczuf/pnIK1hYQFayR5JI45Q4/w==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -20086,7 +20087,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-ZnVM5XObxvdJpujx8hFYgwyujkVN4I/lmFEIYHBHPMIqz9op1ExD3fbWZ24UdS0sjwRVbfA2Iw5oCugAe3YG5g==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-U6ADeP6ytcDUCRx8HfzEqgNbj5GNKnrFSRUc2T98avvLzp58Li8KwVbeSkmNBQeSx5sp6+CkAkJOAWpG6soivQ==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -20118,7 +20119,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-BEIq8Mts7uMOT797uhwA/DTD2NA/nYRMNaBJ8REjpZi0TXSxiXwVc2snguaPiAWAiLZl0RLtlGxtVlnAEGLbEw==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-eFRLe6IZejZwNUDxBC9JbG5JsrROVa8lLQT9wJepgRc/T6VHsigrHvQMmwHYA9ybp9n2r+uourgLjbryEe2qSQ==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -20150,7 +20151,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-7S8nEgU5KmSWmitmBY9gh0xLZHoVS/ixSWHNptOvY93kUj4EDoncE7cDQSwvsTZw4W9B1ydQbw6kyThRL97K1w==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-G55wb8/1rk0vblDuHVaXdJGDka97QRcINhcimpcpB0vEACFY8BA1kipqe6fOzHTI+YPHHyCEz24/0rf650+tdw==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -20184,7 +20185,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-k8stQJDSHPXhmgkSNs/ulMJwPPnxXB/w5BgGtOWu9J9M+rjtGoPTiPsuwsNrUHEuz9xvroMdxbKLNJNXiHLu9A==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-0v1bmTFRgXFJPRDMAZQPfOaYLBR7C71jqvceC2m0mWwR9ljvQKx2bxjAH3a6luieWIP22zOv1ozmYLm5c5coYA==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -20225,7 +20226,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-u5oqhA0j9Jw6vMUVntv72ZZkCudLYAaBulp6PIT9RSv14NumLHGLyREQnGDAXBXqmbe9+Vz4czFSwVtatqK4ng==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-gy8athc1GjMM8SXSFbd/T97YL32IqLca+oEKELuftNQgXbdBcPqhXVZhLB1lsuKOdCvdw48N0MZWkitpAVC4Ag==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -20269,7 +20270,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-o5DbhNz+IhKlcyejPVDXxvbYCVRV4MbYLR8iy+T2GJcnbtzj6ItonNv9UHUSBxdykBbFKdBSahgL5RZNyZ+o/g==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-3tDPav1BNGHWZC3iq29Shix/tC94el7P/kvaoROponvav7SVw00sNIt6D2Qu05uh05zohWkshB2LLPQ37bBxSA==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -20316,7 +20317,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-mf1EMMPr+3cw+PHiJF9hmKT/H5T6Xi5lwY7NG+UWQGabk7qPuduoRwkQpG207CwH56Yrs1pan2Qs9AGWI1s+JA==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-Xef6yFTzkzY5FP/Q6/WfIxVXCW8Dn+le7XOCIXXnMxFNHI18pWKGWZQuvhH8kHO/dkyA2s7npvIVKW4PKas5gg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -20383,7 +20384,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-GmxMLOmDadXhKvnOdsH2Yu8R2d8uulBFBScnAB9FuP0MspimnFFQh4OJYXM4XPP1tssIafKxASgSmBseS/YDPw==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-wslzkw8iSADqg3l0cBRPkXOgv20hUZbu9fNn/+ejt3YQYRL0rElOKnKaptx4cZ4aYRrktBLxd7QNb7716511qg==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -20430,7 +20431,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-PJUP7UgpEbZGTQ2O+RmNmdnzVDBCNVeeTIcIVPZdlt5X+x9GLI7AtGmy+Ne0szQ5mY/4OYVndrQtbVf2QXGjJA==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-rSgOH3WBvx7so7vtqYJXGpZtGY71AVPK4c5+KST8HR6/jNKWnG6+FExO7iO1063PAXwqXcGroTUlIwY+ZSILmg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -20476,7 +20477,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-kRAOQE31wzflYYlkqF/owv9V8ejpolAkmcglKEucRqNuhNQ4eP/YDYvCo+Wm+8cFYZNuEaucT6h6rnBVUyEOLg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-KJA0P5zFDMNhEWk63glsLOa3iJawc8eyQV8qntv+3TJoS0GFTZM/eRq/EnDj7y2k12owOZz+YrfzNVVnHkgk2g==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -20503,7 +20504,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-xRRhvi+SVAszKGJ0D4R+iF4l4rxU4TGxNSBXqGmQLtBMn14PlJlm0VHT9fIDaZ37yRPxvcSxx6eyp9aUOpfNcw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-WGqzkBzU2qeGjkYSzGB7zapp3iM001jblIdHZfkwHBT33MdQba5s+Do5ZnZPu5ILi7SBfu0WO4VntiF2q3poBA==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -20552,7 +20553,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-PpKO2F0cVbAVmlibkwgzGv7LAJybNpc54lujfc8vgMw5RU1hNDPjaeOIj+P/Aa89+63EO23YxwRa86vWvTW9dw==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-mqaUvspYjI39cRH2RmYrcdoQn1iuukp9jA99HUktWUo36N2kg71xY9WAoXqvqYRq+e6BCgK4bBTN+QSdGXoCsA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -20612,7 +20613,7 @@ packages: dev: false file:projects/eventgrid-namespaces.tgz: - resolution: {integrity: sha512-oiAWRRrmoR318AbKUXkaM+AW7To7EFZf05Wp4V8YwEcQy7LYB90eocuN7mC1EuYRW13TepAqcXQVPgfU7KQFVg==, tarball: file:projects/eventgrid-namespaces.tgz} + resolution: {integrity: sha512-6FHPXRSxkd2/Fh9+Bng4fN1qa444kTwMwKyD/l1KZiinlOYPXYWM5RIv1sSu46x5x64m7HD/kL0bfPqHB0Ul8w==, tarball: file:projects/eventgrid-namespaces.tgz} name: '@rush-temp/eventgrid-namespaces' version: 0.0.0 dependencies: @@ -20659,7 +20660,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-7shUAEcQDMj67CrgI4QjwcXp5+eOrVvZUZ6vlz057PfpLWBwR7wwkMk7d9K34QWHyP+TT8kNUdmx2NfLMvWjaQ==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-v1UvBWcby0gwLiwBXSIMOZep3JZZ3kjxfIrwOpW45agBs9Nl08f8GLA34bnYRS6TpGY/nIPTN0fVCBUj+IU8MQ==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -20702,7 +20703,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-gYOpBSzMBs/wUWGwU9ze5PTN+2Iz66I1Cplmz4PZ1tPyEx6QZRVc3gZabi2vfiGY8EEJM/zsOtmcxdTY57WejA==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-M+p6/rXzuCFLHAR5nGfvEDTn8znmr+2HQIWTSHVreJWIZu3wtCUeNHELFTQl4cmRw1pJFdE/94rH8BNmv2yk8w==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -20751,7 +20752,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-fDjdl55fWeyQcCEjqJAAAJdefgTioeDwLK9uWdQHdFPBBlYFPfgOBkd5+SwSU0MXItniMhYsfl+WcIVmPayL7Q==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-YrNAGcbEHO/3iYMoX2Pr8lxgfx53Ggel7ub3N105kO0R2xTmS3z79ygC+wz9LpgQdPy7UtGgJEdiVQOJ99GDzw==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -20797,7 +20798,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-EBHC9eBFDkiTeu6Z+7AIxNE0TL6kjyQY4hGULO1CWsDF10RHW2+fDdb/OJ+zJQz/oVkShyMx/yzf2Ezt7AHfKg==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-4mFhWOZES5SUB/2diTQQPQHRdO988Ns5UnRNV5r8disbYVg660Dd5X3Xq66Ry55mK2Bt0sfz1qOH9AHfkIOblw==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -20842,7 +20843,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-knSmGvR2vrh2PC6vk+0kTQ3FRRmD31neBGDCABqATHfI+NKzAY1KUJ6iBd4syBA9upFFkBRjYOT74l3P9tCASw==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-288H2dapTauMnvVvXaD3DjwWR0zP6W/s/C8KiAZ5a+C1pf+ykPzQXZ0sl5E+0oj5P4AHkTiE1Nz2VbSPYRBzmw==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -20889,7 +20890,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-ikoz79TFUl/5jnayf0QfpcN6DfPm1LTsPgiIGoHklWAfV7OComuUkvYdhVEuZ8222CPNC1IPpn7C5z4noWS8qw==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-RLEY5FsCQo/L6FJDqOZEuc25wMPACvXA3He6z5a2F/XDXJ1qB/Q7LQ2nZO2stf0dTXYCb1HIyP/xNIubhM1EEg==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -20936,7 +20937,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-xAM2kqKp9eRjzuQV4Obk+hv02S1J/DHcxuTLipVVPUSYsGU7neDsoxlhre/XmxAei7GhKj8mW1MeULxae54+fw==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-y6flqr0Wkug13wsvIqyVnZqI54GZXtYQSmUT+ABT25Swnp98+h//aSe8WKoVI6OH3dyPrBfv6WfaUA06huxS/g==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -20983,7 +20984,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-57sXv2WiScpT3AbpWmzAzUjdtGy63ukxyB0m4iS8K6R21n8o0+KXZU7siFFV7hRldzj2xUxYMMpgdedI0yrCXg==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-tsHuwfE3D/j446P8b5L9clN8QIamS8ilfn4nyHklU/DKRLeyzaqDyAgZ4HKsChBBXHIoEjLn3KI53u8ZnfnQmg==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -21011,7 +21012,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-4d18eroBNxUQK0rIm4Hr+jf72gFG/Z2qtApwp+a0wqxR0GANOHZzm2W59mZg7bDIXqFTXYboB1jJ8lSc8tIOQw==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-2G9g3YR5pYi1MUour7OL2JV4u/AH2T3omZCaKA+IKr0AKQ71dM0jCof85MbC/l+dPOStytLq08M1U/46KBzbIw==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -21047,7 +21048,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-+bunzAGa/7EawRgBUQXKh92PeI0vIVxGaQW+lWZ5IMc+oDjGmlG2Ei/EIgkAW9jzJVhckCwk2/D7frXysJIYig==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-IGrhmoRUb2ZhgG/m2deIfPIUSrehNpuyNwWRdOm8ims7ain7PQgpy9CSPMIcsq49LzRCllq9y9NcQ+D7fsHHZw==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -21082,7 +21083,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-u1dbgoew26XEWD36lWOTrU9z1fEV4bdc+pqGBG6ACxWJKXnWhxJH6WjdBsSFxI3SYtd8zcudAexxSdy+B0EOuQ==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-hByUR/HYHlfBSNb+6QYjcOuIxsu1J1jbdR7YRiSdbXIZfjQ9ovVR5MaEwYVI5no6azfCiiBcEHdnVtn/rVx8Aw==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -21139,7 +21140,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-y8igara0nPLv+Svp/d4sVOePSqCMhQ4D4ls+qvYe7PK/dnKa0KHMLpD1mOOxck8cHng/0k4oxysdMlJKLp/JFA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-aLWF455OqyXe4AEKo503tZcquAANip3wKtTHmt218aCDpiH6yU9zVMO+fDGguF8y6wOTEajliTKG5YZgr8/aQQ==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -21186,7 +21187,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-Z3r0s0MPewb2f8rUylf2xeUBdiM5MK9AFevBkBU/9z99pUjZyh1kvAk9zj0TQbHEJpuaGAw6fdFxvaZd0ye4gw==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-Mj6YTGX+Prxqr38w409U9syJ9cjHNcGTPFA41c21gposz3Sy25mD9hx/wwBFX4U1GsL5Jqub2g8aVyjtyd/IZg==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -21230,7 +21231,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-vONPnewx6q8BuPkbnPduyYeHlChDqYqJO70vANam6CsFMN4zAyHWuHRCe7PchtOSgx0vzkl/YvG09kl2V7zuZA==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-WCiJvP3In04vn6vdmkeDvCYcJ9/Ze4JCmcc3ALCi1EMXt9/ZS7KDOBIY/f0mvvBlX+6Mo0jJrIrEBVedJNoISw==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -21263,7 +21264,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-Qwd98s2iMN4ZDxh8XLsert9imux/RrQnUV1NVwzxAaNd7K6dvhZOcOgsZrJQ/rSOkyM9/sVldVGEY/thRFecLw==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-S23dQdwK1jnJwX1XoGiLrntDpG1kJRsPeXvbWo9WEZhOll+1zYWqGGDGj4trhDsIgDjBI+9zLDFSi/E1zg5jbw==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -21309,7 +21310,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-HZlDlQ+CmWc57EMgQAnEVW6T0KCD1aB0F26iV62uWvFFfGtPgNeT5H0f8YGTt64qnyWjVKcSch5RRReLmFY4GA==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-qUpo5LZ1iwi7FQf6Qq0xYShwVlUb01cXDQ0jskosTo96ckDRMiX6G9edfJT8WgB2472yPcRa0XHshz6qwbasUA==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -21337,7 +21338,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-aS1vKYQKlF2GV2cfqHc1H2/k3VoGwG1E/lTr5W/K91RgiyX2B3pRx2h3Ti7LIKRYvCiEEiMPk0jB+p0RuRVHoA==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-H3cD63NehEEMN5/3s3Jvf2SBccKPUYojw6Xz02NboizdtyksVK6rjGUgXxCSuLUnF49tqHdT4Jt41m8icLEYNg==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -21384,7 +21385,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-z6heC9EfNP0bWwSpepGq5HGqDkmDNBlekUq/6tEHK3EnjyJiUJHTHecq3gjY1BNt0H6c5HkKiu09x4LGtwAtew==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-agHy9pw+tLm0Tpepc9C2TLz+IStKOHE8tOvHN88mDWl5beuZGRslN/jsfaog4bkeTRganPYOZqLBaLsg3/auHA==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -21428,7 +21429,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-6V0S3pIyGB+gIDspR+XRRlf8pRE5pi5HHGL29serWXBPDGM8D17jBuSQjwUvchKURVRy0VJad/sAnvtrqrzrzg==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-cr2hScfeQgVdRAGOZcg1M9J7yX/6xehSxOEAxWsT+cVngt4TNdhYQUPtiN1oKuTKm9PswgXar0DQPrOJxtdKCQ==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -21477,7 +21478,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-DXdgDzzwRLpM45GbytE0xo7X2nzZEMBB4fXm6sQdzhx/oqi24eMMVOdHnXZ3UtgoOaHTKni5cgnEaW7ySJQxQQ==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-wUuLbeDFqwh0hlDLDLsgXWTp0Z7UBbV23hPR/iw4e2RcSkQDF4MqJrUYkm7hNIuLkgUfiJU+OAXWySbftzu0Ig==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -21510,7 +21511,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-C0UH1u82g5SVN6aUh9HpbrTEV4yg+LR3zGsgGq+5DOlDQ7rLz2tyaKCf1hT13B5+xlko38jYB2sguwE8kAMs7w==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-AQCdfMgx3/Vv0dlAhhnYTyIojwZlQr3joRLHxJB93H/fdUG4IFwvZggRjos0ckEzURgZjHQIwHFZwibS3S+G+g==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -21529,7 +21530,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-+GGM8Da7UTLzmFpgdpBJNyRR8zf6kkYU/P+upwTKKPW4HSPTYTHJzv2F+AWSSNHCTHbEWukJItbmI9tAGMPP+g==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-Vm5Xi0fjf0xWw/Pthatr5dyiRt3z8+2b94gkiXFovEVfHEw9GE/mK72GGfi0EbzM1FTEoi4Y/exce+xLalTXAw==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -21575,7 +21576,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-v6aRlzZOvEjMpc4gkHkN5gAEzZCbb97P4Hc+icaPTPjqWFiKMKKTnhkvL0KtWfxBhfhYtTpVIb9yVlDG+VKJEQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-+tq/A1pRzI6g2fcoVGFf4jGjoHEIDUX9LuOK4083oiPQ1roC7fFiGyhQaPmcbtpxPRQWT0KDfimXW3PWV5riFA==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -21621,7 +21622,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-f9kfTahoWAyKRaF4L8SKN3HUuHvSCaj+8IsSd/IpuuJ02PnDGBvLGdIxlgXEQCq4mia4mRTFIr6OoeYijp1gKg==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-j6DD5KKmszXmTFhDqaKq6hDAWqtE6R1TON8TvF29nNSB0d0SCmAgyX/rJ5+bs615v7+wAL6/Hf35Ecg5KBZt7A==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -21668,7 +21669,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-4fwjw3YuPIQGvLdzaAPAbtkMHG4zkZ1lO2N+dVAXgOHYpABOELJaLfOBuFdy1jkuaysZEzd57ZbvxY/xU4VVMw==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-7bpzMAvBQnyBwmflWrakVxhggSwFrhkR9+KmnLTa54w+l/Kk16Tf2NIv80TwaX/Waudp0amU1wz6bXAwUjl3cw==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -21715,7 +21716,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-xr6cEWU7r4iiDGpHx7qlntr8DF7G4y9SzSC0dVANd4KOIBuUQJc769wGoAFJJk+kZjpuE9ooAj//C9uV2FW7MA==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-no5+L3eIuY6tuBpXwmnhEkVFcLcrz6I16PnheCRki3VmGKpUOlNV1BHT8f3cd9Oly7air1Typgc54Fc7tAw2nA==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -21758,7 +21759,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-N27o70P/K3PKkRMvzfLRMEdA4PbiyZWKSJpT3+yiVs4qChH+UtljaLAQwaFeHXqQ/UoG3y6igQruvSnAbJAlkA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-dhjLeKoVTB8SwN5a2jvZXDNI57wZyva66dPPrWY/s5UC8nXg9z4nsDYW7GP56qY+I8h9HXsSC43mFycIjw/dEg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -21806,7 +21807,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-2u15yJgthiFRvamHInxtcoPhxPynLh1lNdXF95NDdXlt4Eoqn1RumKuzrSX/PzIQEVU+OUrNAi9EmktTV395/A==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-HdkufUS5H4Ypr/1+cJ8EQcD9C30Jir9slYsZjgs9wCBhPHBtn8wOer0XDhSTJ4W4JnuR2XE3zc5JyHGeRZ2HKA==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -21826,7 +21827,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-fL3tQObZwLkNWleudftXuNCTXkiQN9BlzFvrqCaWJ9Jhs1fu5SrVLqUF+xZal1RgAqIqgAfPU4tgM688LnLd7A==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-71XPUWsMg3wyJysCxcZmGn4dIaq57JdD4D8E1VBKBhmkVF0VwZ1r7ExZ3dtry0fKdoGY4MzcCH8jNpiAGIuHow==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -21875,7 +21876,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-RBEpLP5B1aAAf4iTK9r4N6g77n24F4zeaVZ0z9E6PFacbszFJ3h9I08r+w7KjSPKITOquC0+otdOJw2j/zsxvw==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-iie/rpe9LvtyvBe5k+GaiVbKLqF3yO0+teFYtkSZteiXveFT/6MDpCyJn4R4a1+rvWAV+/6BrRezi7Lr5o56zA==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -21910,7 +21911,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-h+uhqPeVXpFWuwP2hECZ/VtNUBMda9US9itPi481shpCIS9lIXaTElGhR6+cdiasEfBgjOn5OW1jRks01yP2vw==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-GsO6DeOxamDDxLohJX/Yaqdwm3R0YtMJaJAn3HS+AP2bcqWhCl/g4uq6lOh6WeNFNeKSaVM1izJTSXmjCdc/TA==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -21958,7 +21959,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-HbWJ6LVOP5aHHrp0Ve4YP6TJ1sbzFMenebQu2Uy1OlsxjjxfZr0FbSj20aHxliyVxMGhMN107PL9YeoLqExrYQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-J/R5iGViGOeLIG0E1dTE8IHbzqXlfYF61wQUF2n7DEw7hwfM5x0Og2TPxF4sED+NgMBlYuedpxxQkVRx1Sb0eA==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -22003,7 +22004,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-VNk6zld7/oXfKhhFjUhDzBuspNUuYcbRRgewl8i/i/8UPWGgjvlqo9PLlm4/HvOKfdCFpSeYM/iAkxZosIC1Dg==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-95O/bVHpvyMqV8yRtAWbqJbZU81KlQiQeT1EpLbV0bDZgz+xsZfHx5zBv77SwgUp8zwcT4Cu8iVq5PK50mSQHQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -22038,7 +22039,7 @@ packages: dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-/hEWC93Y6dGctnxyu7/GluD2agiwmTNkPA3VqRdb59ocDjHt93+5RXdTWrVl3kFWgk1vzbf/4tgnG3M936ScvQ==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-HX1Au1r6w5Y7cjcWqQmxe9iXgNvlFncM8w52xZt5l18mOqenpc8GWnauBGG2uFzCOJgjzOtmD1hILq5deq3WiQ==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: @@ -22083,7 +22084,7 @@ packages: dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-HHjJ5/7nk0PjHl396f+p6z0wjxj4uT7/y0fgFnDn+/zt7UYZ5SAgH3p+hpPBbCWvLdw1JwRoks29LsOtTjDxQA==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-wy+4izUGCLqL3oOVK5YwSrO/s8Hz2iRGEaQCOCsHlo6MfHw9K1wvZrqoVJh8jUtzygqZb8aygHLrHOZhtEeU6Q==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: @@ -22126,7 +22127,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-cokO7nL3WDl/VR3sTwekw0uMmjIjAIhpKruJjOkH5usVY3Hdaf+DKXY8PMTK3v8HuyGk8gulKTXofnQ0DxV2BQ==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-e4pnCjShYvb0POzp1ehbHeltH9nSgLS8h2uBIaV1g8Fb+XFzgKMOS3WRn4Y6CsM9dIccAcUQ/InvnX1L3SL8bg==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -22148,7 +22149,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-JZIZCjOmPbiKTkvQF7JtUNfbomWa6GE4a9ot6hvFA8PQmwN3WPb+0u7iEPt/rMIAASE+a6JkgHchQ+Q4PgOujA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-vSVMVXdzHUQm/Ie+sV7/GgYfpw/co4bYdoyUd2I/IlRnm3VEMcMq8qnwU6SeWfYHvJBcGyPFh0/lI/hIY4hI7A==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -22192,7 +22193,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-ZEtTPnvyzdglFoCqn01JTvsOb325W4uINZxdHD/WxSin4L7mF4BmDYIYW1g0h0BDh4jRxqHTDn8beKxvVTMDhw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-jJ9yUz/wkp5aCq/JdNw9nQceFCSFZ4ZIrtO8Z1qUB9a5K4OCfYxX2L7xMFVFuwZG4ui0JKiBMzCQvpa/b5KlXw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -22211,7 +22212,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-FOyZLxDpzMeSUgh+by2vxRJy7A99mTEyeJrSx9UU4XMzjs+HxmRen4e/g+uPAu6Xy5PxrNz65Gc1deZ+EaBzxQ==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-Ezgs32oa+CFBKE/U+wsHmW7re9+AzSYxgqr0kUWjV3B2+uEDi4edGTf9LQdaQLjACpgL2EiqRue8lB8U2aoLZA==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -22230,7 +22231,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-EI0v5BNYVGw+UEvxRTVY/Yg2Intp7uxcy3dcfHSzdbdxwfBKj/S3xdOTC3eJ9hPu2kd1OWJZ1A6K6OQENIIO+Q==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-FK3uwYwVG4JU0E55VPDHuHChwsuKHlDeBJ0xSAhvytpFRTdaBaZhVZgbEIi8M0Iu9kUKuKhtnLXtX2acK/givQ==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -22248,7 +22249,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-a9EE2n2VBdwwJH3aWAfl4IAB6AG01qWhfv7AYoiEUkKNwFrr8j9m4ZW5VNKPnMjPFytIc7rfrygQrhffVzcNcg==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-COpqmIBzIBiBUxxxoftoMOQLNatd+D1Z8q6j1um6ZjC8RXldZ1dOcAmy8E8JhGTlzuW0dWDJX1HteJ0gruYhsg==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -22267,7 +22268,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-mBRrscrjyagQGNmhRBeA0zYUchSX3PKH40/VJsKpHAuGawxZeVymmoEjA3uQCblY8YYyF6b3rST9ifn8RYbKMQ==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-m6LgfVtYJ9nxqnIXXiKcHgyvgBf5B185zWW7JPbbeVfQVmr5Xdzqkz0WXWc+CcTF++NpwNEspjcZORfD0IXTeQ==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -22286,7 +22287,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-gR4YkZbX7kyqHh9gh/Vbo90HQPdw08Pt0GiAZdrPdM1FW1mVIoR5BeIIC3H9Fb82/LQ1I+oFg+FY2VIQNZb4kA==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-QL4EkBV+8EEZG1EmfGH87489mjfmN3k4niRUwi/C+aSiieE5QhTgFxgpu0MZTP3mHWpaGIbou3rGs0E/pRRN7A==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -22304,7 +22305,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-ZHZpAZ/Qz808jXB7P/dLhwmYFufP164O0TLqxpmqfXcaHphgpik5b4x5xMKXrb4WFT61XNFDvFXrdJf1Az7rYA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-t2vMC8YRmC3A5o9WHN80EqNbvUyLuYFoyewBkEsgx6ju9gI/nqhmSw9dqdT4fINFnzul/n4bFHJWAWPIhVToHQ==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -22326,7 +22327,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-FYo4ko2VEcSKWnaLMm6WsCAUMI4LcXN428YMm2iUorgWvWyeado13sbE+SHjSKgzkh26eUXB0bupEEdQKKc7bg==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-FkJCM5n7DYsf2lzR3Ag2tqxiVn8GU6bZpAuZNIK6BZXLByrUUf8dk7NDYPXHwhs2NaZORzdXy6yNlLqJRHmWgw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -22344,7 +22345,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-my2s1O4skXXIMxC89ecO1/eZlR3+IgNj4XN5vu3JG3a48TKuxiOw/EcTuaeFktt6xMo1dciv+LuYurbFSWh64A==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-NtzbPTiRsQgWkCn0a8gkN0J+aKl4Dfl/K1fvOT4QfwzAWf3qaXtbmqvd9laMHajWej+1wo+Vu7tGLPM6hqpfZg==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -22365,7 +22366,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-a0a/rYZ7+OJo2V1ZNGNpyTkAPxxvTv+KFu7BUyms81FuggrrECUsybfwz3mbG8nIoh8UEB+BY5OXuyN48ZbZ0w==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-mB74n6wsIzYFESIifHaaO32a80MTYZNkvhYb5rrHuzjTlqcZKfanZuBPdVAFHjy1m/KZeHVjX5CzY/rFpdD8sw==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -22383,7 +22384,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-ls/twm+EOl5T0doFYMzDYU4JDQicBKNmr5A7HCHU8vxxzyIqibsMazv/4xtbYLrrdnxDr/wPJrUK5JIHwrBrfQ==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-XQArYtGAFPoEcI0kX2NbZE/gZ3mJxu+QEc56gZGoi3OkSLe8FfhrtrNJUMDlGdKaT3/LA5zA2R6exke5K2X4AA==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -22403,7 +22404,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-MXHTJ5JP994gH9DA96KFQnYMHy0Isj5pWo2Idxs27Bw98WDXrU7CnRfSgxShc9RHwasnrj+ViyH4HTZiuzjdhQ==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-q3Uawn8d+iWGS1I45oh3pad1uR1ddbdtMWp08IxrNtovicdTBFVPTsk4upBNXdr+8bTbrVQcz87h42ke1UFsdg==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -22424,7 +22425,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-fp+0/ckF+tA4Fl0ZJTc5VLqRX39uwYuiSPqI2KTo6/FhkmW1Xj0nWAZoyp3KnNW7o2GmZLWnpmc7j0gWWDpkgQ==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-CgY3i6+Vb6q/jmerEl84jsdSWMDM0leoZ5fZyBagT+IdtCCiO1oNSF94bh9ZBA0Mz3wR5cHzkD5Ty0ZicbtgxA==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -22445,7 +22446,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-StJodfvLmN9ey/bqM3Y9hDshqy0B4wnon1KG9QiDV+th/oHSNZr0t8FXMXlH2ujdXLQ1N+f9pIwSXNQ/BypwmQ==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-JNWbkcZXkYmiUDl+KOXClXm4O4Af6bvgGEKh74FF/V6hRXe3Rs8ZyGujRD8dl8Q95TZ1mUcNGb4ukVfmX54VBw==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -22466,7 +22467,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-2o8F1n6D0379E3Iygs3YuJNRHpml3bMIRh+7j71Ps/SE+6joKl7yXKky887BVuCS1RWCZ9vPRvWLmWGOGWLELw==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-VSOX6oZ+RlNALvdf5G5811p/m/sh1itoj2Rzf8IjWp4Um5Z6njZXM2sq1bjIQ9DOExSm7cA28AnB1xtxBKJ6fA==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -22485,7 +22486,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-CcTaHO08tDr9UWe44ob9/YIl4PpsYsQ7GczD6UAprlHR/Rcb3+XP2VKktNr4QcUZhsu6KHM8Dui6KbLmtmUtMg==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-eLx2R+XBiqJCqDFDTLwL3/4neUY2xwvAykDkdnfFnRW0UKOK1I2Ja0erfXoOv+zKFigtLM4JLlYWp8t21LZkqw==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -22503,7 +22504,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-NNujDSiATIKn6j+HuDYdmKbkRzYrmq/o49zE5cWlmRjDip3Q5hSdY8fu7SMZ0C6Ru9ef2bfoNnj94DJBEnVfeA==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-8KBD9rNLXhW7FoU0LgG615jeq7LYO2BHefUWi7LOlTxAejj1cfky7Dl+ViRGC8d7AoO7zUbXDYy0i+8W0Bp2Pw==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -22522,7 +22523,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-3mr3ScRWDMFMjuiRuoDnfxAd3YriipKc3H5bORI34h9F0/QiuM3ZaQsbtRtH4UyUH+cEjsWMvKbcCkz6v4FI/g==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-q2myGYlOV//vWupwQiXpWaO8J7mIP2LS2xmgWEQuMSAnt4UIjBvPP9aLI8g0vu6fEbs/Vjf27ItzkWQ0UJV4Gg==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -22541,7 +22542,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-QjbYe2HFEPsUWbmsPR+bXUhrk3PUxrcX4nYmiH4vQfvV2nV/rwh7lqpXSmxoiFRIqpFcXVGmPB2S+oNMeHP27w==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-Nl48GSRKt/yg0loArEeALXH5kKYSrL8cPs3vfwx7PdY2o/5KVxu7PNzadEIbhyg7sRu+FPR+/0SqwEY0zJreSQ==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -22561,7 +22562,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-X95Hh6NnKKUcwXClbV9iQIxP+1FeXIRs0AvD3NXMctlvTTHFwCmy8MrjwSbOZmbzedg6oVE+8rEBdl4nQpeyZQ==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-uzOm6V4LesEx4etYTgPNSvTFLhdwb/HC7kDOTUJuD3YgCwu6SO1psK1q+yC7Y7hjXk9ZreKmSE3kpzcMuNIXLA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -22581,7 +22582,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-gnVzxlY1vrAzRzZwxxYq0IpU2a7YPUY19+GM3mhITC1zWOgyJG34mkJgcxO7zIXPJe/4cVUQju5/2ffQ2SpU8w==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-Jz4y+ZPirsfYMZ3A9Z5rHD8rqG2tX72FvG7+PCkVuaWszL5814GhXAO1HgHovagQzFYyqtYTmlBod4jiR8D2UA==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -22599,7 +22600,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-IqNMSbO7Zr0HoLvLmtadH8jS8exN3/o/yV+wmm82TAfGWzvo+H/AAHsbDQwE9KOUnfGzeprtrXw/cAW2+m75DA==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-tofYs152ezkrv4HoggV0PK6q2THSgnPEtsXjU2xPX1ptV8015o1pNMb0Ida/CgHlFccTKmcWgq3xH2iA10fNyA==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -22619,7 +22620,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-R//6vCw8iYaZIH9hz0Cdc+eL42f8/wFyQPERFgqX1m5pjAOs67OLZsURMisUTvRa3GfDLxf34WD0G5CAVVhNgA==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-PDcmow06NkRgxBuWrX0v469wUEPB33LC6ZoQNxG/G9lPwNJ9mv7RbP3jF0OFmdWS+K9gAbfPd554MHJ1nrSRvA==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -22639,7 +22640,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-wIgc9CTNbRy3/eZOC3EW1WpqPO/hqhVYGUIyb0QRFZtcnCNWOaXDf1jHTQWXuqnZigGkMi8I1R1plBvQS6XWcA==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-gA0gzz4ta8i7VVDmi6MhYqsuWBxFX1Zu7r6Wcqt0DXRo7RUhlLoqXN4R/OTlCuSCXAwi+tXK67DBUpjn6s0Yww==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -22659,7 +22660,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-KDYSKwHBdzABEFtMqb/2/6Vsnm5XvuVwSMXMb8zd/tDm8BH65dRAw6t9EEq8EocAYC6vRsyRoebpA+dcSgD2dA==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-KPCSRJo1TvsE63C2gWyD6YnTLYlp6MCg02IZEOhWQlvxzqXn9zRXkK4HYy9UOMsla5np0LWOICy9UI7ay9XB0Q==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -22703,7 +22704,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-BasykcFDPWO54MdS4LxZnSz1/WXbCwYjCvsY6iC+eFrF8k2y8lawUok37Be6gHA1IYOrnkngsAtLRc2EDS5ptg==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-CEFBMxpRhBnH5GUGC1cetUyAwbPjLhQrubT1PEVmH3m1K7y/RjvNA/C1584nhRAcKCXkiTpz9ZrlPnHKcpksnA==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -22748,7 +22749,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-U53eAUPumCqhhoEb2TP7D6wjo7SIJA8oEFckjyWVD5sMat2mJ1Q9nO84wsisMDExbLCm3hK6uw7AP2E3iF8WNg==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-F2Hg3geCAheNIHTiNghPPFJT+vkTULOn2YwU8I4mV07rpOECFjad5dh1POzEW81Sh9RzXtLWtXiL5HkSB2MmpA==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -22793,7 +22794,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-Esa2SINTL5mzkjpbXRoqvR72fityNkJaKI7tAeRm+fmESRFszjbXyk8+GW2t3LoL8YJUjrmgjh+3A1Ul/B2OOA==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-MAFAgiwcmwLLmw5X+8HNE2xqkJwdUqqFKKeJLKodKVtjVhQO97L5jX3GqNozoXAS7eZjnQdi+P5k1PfbXq1S8Q==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -22837,7 +22838,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-p/+v9ovncMASEn/elUdJQ3wSheixHdZ6HB6wFvmSnRydQ0O9CLCtp6nORpe6dS3JVTFGR7LFWMUDM3Ew5U5x4A==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-OVvpxQ/+9KDikIR6Hp5zmD+Xn69DfQhdFSq6mI6mu2DPDNurxAsjfRqA3JNnOOu8cIYvc3ExWMT+kAhz1brwPw==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -22884,7 +22885,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-ycpLTjwvL7FMcfvDTdvqlsTVqvAYzZ9u/J9PY0DAxzBs0+UQ5XzitubNi3F5RJrJ7WnztZeiexDaQl9rDiAkjg==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-tLXH0ktZlWU1psUBOOAGcooyXT9CrRwD5E/vOW8hlW8VTWee0w43JxAZQdOe239tUQ6jww3a4b7kVe9CmtZQXQ==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -22929,7 +22930,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-RtmI/ZJbREK0zj0aS3BtL1vnG39a0w/+fXI3EnN00gmltxPE9OXYYG6+SOIwaHFdEwBUbOfDTg/w/uo6YoGhRA==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-AsjNDZ4WiCTmdOLuUTvK0S00F8q5LfUP0U+KE++QzjntPqpT9Zcv3svszyU2UI1mfdHAhLP6Km0A6Go42n5mIQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -22976,7 +22977,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-Eq/e1qWzLdtru4Z3ROP30OjcMGDFfmdnlJM8ojayLHuwzqCLKAm0stHaBWbRgMYt8q3sFcbxMF/R9V6mqfJtwg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-Oh6qAF6SwMj17y8Wwv481WdcsoFOlWIQtshCitVeFN1kw5aYpjg464zDAuVJD3CG0cfEIRu/ZMZ6j32x+uXO+g==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -23028,7 +23029,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-MR7BqzMim61d9FZGwBZPEeGUPDudpOqLgmCPqKvuP5HWFj+NcxqQluBndBCEuMvvkqt09ISWHF4R7uRB37944w==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-2ACA1zRgwS8SZN8tVRVL/crU+Kgq7u+hWkZkoPHaPL2eqUzdr0vwhvCIaYC58rtzgSVEe3oz5Db4wzWCQQ4+XA==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -23070,7 +23071,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-P/MYVOZ8olpk/mJGxAyIQlOVUHudt+chAEPJ5/r+bvAi1I6nlArtZiysn4FGn+NpuqCYWhkZ5FJF4o091v0NGA==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-+YnP25zUKS/ECbiyOu5DgVWOWU2dtcP1BdbCEOLhqUADLWHr87svidmifiWtTzzsZ9szo93RQoiCY68gB7wJ3w==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -23110,7 +23111,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-rrxywwpWHVWVIv7Xm1kK1gQpHwQtlKpjdItNlFBJ600vjwKLzDyUxhiYSlfl8daICjJdig+n84lophu77HkSVg==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-ZQw9u4Cswfsr15dSmjXDySU+O0a3VCOUz4Z9H0T1vp7oRfNKRtJNRiuiELp/JzKh7vhfrne0gei7Yw2qpmiVYQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -23156,7 +23157,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-WG7g0jbZEzquiFZRRmglUIxIpufyvpP00sh85uXCrY2jOvXv6/TeLCFpZc8zAaikJCIA7LGG3zDjnaT/DCjRBg==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-guFuPSIa6bzJKKN6outYPg5wcqGt1i6kQFtqI5HJpVdWaaWDOxClo6iMvlKImY73KXiqdr1quXRmGwhj0LPdQQ==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -23218,7 +23219,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-Gp+UCjBva4S3RMBJDYFU1CzkmZuF8s3mQZrL2hh4smDJx69QPAeC7WUqjNnFF2pIV1O2m6Gb3LnOc+5nINptmQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-aBxHdMHdi62S2QnkF/0ydoiHnP4+8aOQTo7yWrcBdKIeIwodAlV6yfQtbLKV3gCCtTVs0SX5lVRvWpBEVDyDBw==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -23268,7 +23269,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-wnGBKBpHtPKawBixChAIefVI/HwYcuTpMz8TZr+5RXnHuRfYsMpuG29+py4NOLjlGpajyTQOKSu65UBr0j0L1Q==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-c4s3EabfteDM9U4zR8YFc/Lu11dKz9+tKdGeJWNaXcx9wA2G/COc0joc679ORNHtNsFoDiq2JgF7jWdwKloRQw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -23316,7 +23317,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-l5d/VFvoQi+yTOZpDmkxEARAxNQ6G/2WLjHInWGill+aMGhocaCLGsJGJQkXGW3XBxYGFM5YwCE6+rv1OCeu0Q==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yccTud/hEEpuvVe0QuLp2u3hxfg26DJZGliE4E1Ds3kOGWvIw52dQhG3i1mhLr+2cFtFmCHI52Hnl8krGpLPWw==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -23367,7 +23368,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-MW+5yYNjh6VHSAnniJUV9p5BGYQXhl93jwFf4T5ubHNSDH2MpYFFyj2Z3hK5q8WW3m/Pq0muMBY6BZW0rqYEnA==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-XjuSsYRRKpbjrhuYUAE5YSI3Yg5/5ThWWQkp1cX5BIfoFGo/ee1Gqslr964QxaPldabqRguoa7VzaWIE8/EXgA==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -23416,7 +23417,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-IxiPSZBWFNOFu/spFMWhJfWFPr0Hmv0ymxPvFxd2rzzErBq7FtCLXG50WN3lF4NKAnJz0Zq1g/PCmfDm1A7QrQ==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-4t/mfNU3cPSFrda4xICXkHWwpvKP2FvGrl6qNlY7mPGhZMoll8c2UfMdFYPEfXhRG3tFNYO3EG58wZjhvsU1uw==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -23459,7 +23460,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-j9Zm8Z5bzsZ9pM/1R/NbUlfhf6xOrszxeHvCeG7fH/CUcMdTT3s9/z5wRv0r2ujQKuemsR1phYFqVI8G1QaPxw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-aIPOBCE1n/QbVe+umwvnHs/JIIQLHvTEjNEs4DrthRrXr9FA18nAk4I4Qw8ckT3VsqAnVqqhSWMtrsF2Xv+pqA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -23504,7 +23505,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-wsawV3NYrXi5EvnkoUa5lW26x9ixfhWek/7GGy6cqjbLEoV9HKEwrW/PGTSa11nuflfUUJdnh/kE9/ZZnqhZFw==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-zaGVyaIBrK9tyHMXDLtaDoWtN5InTtO9YGwxNjkx9I+tk8Ks0j34GLoX43BvtX/ToQMIKrOeci7NnboJ7tXj3g==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -23550,7 +23551,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-8vnpsFHik+27ge9j3KertZQ1W5W10SEpK5bQYQ5kUc+sj3XsIZMCkpMStwKqrIhJzd3yckQGlkLVOyigm0Udyw==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-5knc1WqJIw8b6eAEt8Bm88703RybGKDOMqJ7vGbnrMWooXjDmBUrc9DBrTjNjM6UHooqh1ChriAJ4iZW6GvFYg==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -23599,7 +23600,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-1L9Y4NbZCbyR1JQvXEuiynGBkIPnq8/bQndWVRdWqpcZQtr8m/q3O9qNUp4f+MWc+EUQlA08pWKVtrQgrwsVSg==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-8V1BRLBWq3IS+QOGT37+/xcsBDa2x70z3zDrsjlP/8aZCFIVNHMPCgZNqMXK3Q3/B5AtjfZmj07Z6+BoTZejjQ==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -23650,7 +23651,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-xI5pnusbNS3YF1Kt3Jqo2WfZ8/Zzn9bA5YheXdjSK1SlyzB4duH7sa+GqoYegd4sJiDO5RGk2FRIcrnc+LXiRA==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-t716orNaK2a57kim6vchh856W1ZJL+N1AeM5/MCjo+IyqJ7G/2xANrw2f6nA1jQhw9gYY4ltAjuXEpsRgwln0w==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -23693,7 +23694,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-JGvFLQaloQ6ooq4FDGXLE2VOq0E5LYF2B2S62zMKPb9lRl4px2Wk1JfjapwIzTck3vi5YNqLUQuI5ar3rRyYFQ==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-dNdbppT+aoNAi1B0ihGofcFFQt/eEwx5XAC4Pm8QdFfpuAmdstaF//8q2h5z3DO4/hXNorIU1ZKiyXrczMsZlQ==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -23730,7 +23731,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-rgCNFUjX6R35CqxPoZxj/3N3ffGSQ6/TSTJHxHTmLGDSzS7KFVUuK1Sztw/pRGhTTSEBAMa/DZjV7lkIQOMdwQ==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-1SsLxCbj4g1CxyXOyjA00O6fX4nso1IVDAllOlEypk2TMCKGMn8NVm15c3UTU0OILHMYDoukiCUpFvjpFYzC5g==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -23773,7 +23774,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-era64OOVVbq7t8sO6CuyVXIMzWBhkJQuVHIYTqjH0jyQPkgbo8waOhwsfEz0sK7dGChhDniYlwP+vnFp/lu6lg==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-ssjfeFbOjK+WKB4w5KiaKD7rO6agOIPv/73YxRx53BQ1M/C54JDGijoIvphGhdZqRLO+25x57AphmNqTolhFBw==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -23816,7 +23817,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-Z4jVfdc6F0pVx6TKZMxewtMI9hglqb9vQndoRzYF3+EzAwIulmw5+ukixt9UQSrUD/swoIgx6mxtVmHitSle7A==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-eKSJx2ZXbvSb94L5as0GWfbmA8IA9lw0+6yl/kFid2b/7OEmkuF5sguhxjIV85c+JaIBHYr1qmC/SNngPH9m/A==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -23854,7 +23855,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-cnqkP/8hJEC4wKnBQfZ4fJ7b5ycRsqA2iDWtEAYjJL90rRBIImhPwOGK5o2FMGQTyPeHPqtiL8oK4X7AOpwxKA==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-8Ote+CSTzRrooFVH8YydipORldevCZKRiGewr+LUGX/d9GrYCCYjEHT4nz1lnINoXT0eSqu1NOpZHkeR46b8Lg==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -23873,7 +23874,7 @@ packages: dev: false file:projects/test-perf.tgz: - resolution: {integrity: sha512-ZwPBFlm7U2LjZCUqsJJrNubufkZA5WPNQvRqlj9yXXYaSrtQtcV8LutkBWMy3BTFP3QlPU/7Omj/MeLt7BNnBA==, tarball: file:projects/test-perf.tgz} + resolution: {integrity: sha512-eCcCwe+SGSmOt4GBA750BoYWLV7cnEc5E2Dn6D7aoszG9JtCnI1lsY66kFo5D4uLPzM1Kxoud6l5El9oCDyP2Q==, tarball: file:projects/test-perf.tgz} name: '@rush-temp/test-perf' version: 0.0.0 dependencies: @@ -23901,7 +23902,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-qlOsal3Yvx1QrCLwKsxTE0dg1WKpjeZG9zhgNpFb1A9DUVTCb1DoHeUUFzNqDYd4CcLbcd1CTfFcl2UxLPyo7g==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-qfNIYuEB3D4HDHkMw51pBk0eN5HDsimcSbFBgI+UQtAn9RByPq+Ho52w6O3NwBmn/fSKvKh/4JR18PLTzCeRoQ==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -23937,7 +23938,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-u4u9CDY3LLHpKg7655DGRsaWaieW93zWY7S0K3e+VOzqwMfGtVPCynsjQ0pfH+7yWl2YuR4HA6Frnitfauq4JQ==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-uf7jHfyR4w/5UiwsXP0XKAcm5RUaMgEfNS5No5hvB41Z64MtXXiHugen9N81PYuiEV5u9uXnMJ10YVJj4BD7Eg==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -23974,7 +23975,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HXO7Lv/cwgn5X1kgOUzXUWEG4amdxRLrjwPFBKX/R7Zg7k3GjyTgDJTQ+pQkkc9rZd28xI+4EfnOKVulDojROQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-K3f2DI85IyC5yyUspHmIy8YQrixNXouxaU7eeoLhs1YxuzeMseUGyR8NLS36w2iGkbgl8rLLh71cyd8oBCYjJA==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -24009,7 +24010,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-qKZHdG8f3LTACHV3PdZsjAm8dC+A9GyANO24iYg7ATkihTPXf4nO8l7RR9Ur1bHkDyqqMq2AIosv0QhEH5pvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-mCraP3jfWR4/X9V0+o2LLCczyZ/MvB7LfMgdSJ+K2Fg0eg4CmjhL4QaQi24JrhG8BgqVmM7GumlmMkbafTwomA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -24024,7 +24025,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-78fsp+vmAxIE74iuFyRs0e7ryMjsgjK8DcivkyXZcH7WcvTCSpE+ufZ3g5y3wrjHxdfjUlytkmBYzBT8zlAafQ==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-Jiw3fDmmnF4baE9kfiYq+B+SQ354zM68svrpq3agVGpfIjXESUr+flBL5YhEn66fTKRfGTNvKqbIE1pupKP31w==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -24083,7 +24084,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-m+IY0VupXTyW3MIox9verksiyHQ4IxqeiUML2XtKJ/kB+g4xhSE2Xrr42HnL3izL9FLVxJrodBQXy/jVvFfakQ==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-laYMEsCoTMSHz8WCDoiMDTWcYwDkFzS7+IaUT//G+gU4Zzv2KcQXOxs/PMVQyropNz6/NK/EisjJPVo0rxsYgQ==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -24137,7 +24138,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-F6zi+OEVdbjyA9WHbPYJ5IPxwqV4GftEL9ts0Un9XI69az7MRx4AzDqjBT2fMRRQqBev8nwSsFuaFjO/Ie5cDg==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-JkCH8kWGJZffxvML9ilscmbLpAoEidWvxMaYI5na4tpbB/g/Zh1T6NnrGRgI3kQAu9O8XmCqd8I33ZreroQdJA==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -24172,7 +24173,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-swVtqxuR+FDz54JwOA4JSKFgsdum+CM+AmqBVg9d/yu5CNE0pdKDC86iMql1cV3jV+VYgIDn13ga/4F066soxw==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-1+KD+A58E+Y1LQ+uhKwGoubA0zOZZC9wk0XqRgLGxe4g/VJ6UQ4ukAp3zMqDOKHVshFZGcu2uq/yxcVaS85Rsw==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 6a13c44ca3a6..16dc0f9240b6 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,5 +1,813 @@ # Release History + +## 10.0.0-beta.1 (2024-05-22) +Compared with version 9.1.0 + +**Features** + + - Added operation group AllPolicies + - Added operation group ApiManagementGateway + - Added operation group ApiManagementGatewayConfigConnection + - Added operation group ApiManagementGatewaySkus + - Added operation group ApiManagementWorkspaceLink + - Added operation group ApiManagementWorkspaceLinks + - Added operation group OperationsResults + - Added operation group OperationStatus + - Added operation group PolicyRestriction + - Added operation group PolicyRestrictionValidations + - Added operation group ProductApiLink + - Added operation group ProductGroupLink + - Added operation group TagApiLink + - Added operation group TagOperationLink + - Added operation group TagProductLink + - Added operation group Workspace + - Added operation group WorkspaceApi + - Added operation group WorkspaceApiDiagnostic + - 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 WorkspaceBackend + - Added operation group WorkspaceCertificate + - Added operation group WorkspaceDiagnostic + - Added operation group WorkspaceGlobalSchema + - Added operation group WorkspaceGroup + - Added operation group WorkspaceGroupUser + - Added operation group WorkspaceLogger + - Added operation group WorkspaceNamedValue + - Added operation group WorkspaceNotification + - Added operation group WorkspaceNotificationRecipientEmail + - Added operation group WorkspaceNotificationRecipientUser + - Added operation group WorkspacePolicy + - Added operation group WorkspacePolicyFragment + - Added operation group WorkspaceProduct + - Added operation group WorkspaceProductApiLink + - Added operation group WorkspaceProductGroupLink + - Added operation group WorkspaceProductPolicy + - Added operation group WorkspaceSubscription + - Added operation group WorkspaceTag + - Added operation group WorkspaceTagApiLink + - Added operation group WorkspaceTagOperationLink + - Added operation group WorkspaceTagProductLink + - Added operation Api.beginDelete + - Added operation Api.beginDeleteAndWait + - Added operation Gateway.invalidateDebugCredentials + - Added operation Gateway.listDebugCredentials + - Added operation Gateway.listTrace + - Added operation User.beginDelete + - Added operation User.beginDeleteAndWait + - Added Interface AllPoliciesCollection + - Added Interface AllPoliciesContract + - Added Interface AllPoliciesListByServiceNextOptionalParams + - Added Interface AllPoliciesListByServiceOptionalParams + - Added Interface ApiDeleteHeaders + - Added Interface ApiManagementClientPerformConnectivityCheckAsyncHeaders + - Added Interface ApiManagementGatewayBaseProperties + - Added Interface ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams + - Added Interface ApiManagementGatewayConfigConnectionDeleteHeaders + - Added Interface ApiManagementGatewayConfigConnectionDeleteOptionalParams + - Added Interface ApiManagementGatewayConfigConnectionGetOptionalParams + - Added Interface ApiManagementGatewayConfigConnectionListByGatewayNextOptionalParams + - Added Interface ApiManagementGatewayConfigConnectionListByGatewayOptionalParams + - Added Interface ApiManagementGatewayConfigConnectionListResult + - Added Interface ApiManagementGatewayConfigConnectionResource + - Added Interface ApiManagementGatewayCreateOrUpdateOptionalParams + - Added Interface ApiManagementGatewayDeleteHeaders + - Added Interface ApiManagementGatewayDeleteOptionalParams + - Added Interface ApiManagementGatewayGetOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupNextOptionalParams + - Added Interface ApiManagementGatewayListByResourceGroupOptionalParams + - Added Interface ApiManagementGatewayListNextOptionalParams + - Added Interface ApiManagementGatewayListOptionalParams + - Added Interface ApiManagementGatewayListResult + - Added Interface ApiManagementGatewayProperties + - Added Interface ApiManagementGatewayResource + - Added Interface ApiManagementGatewaySkuProperties + - Added Interface ApiManagementGatewaySkuPropertiesForPatch + - Added Interface ApiManagementGatewaySkusListAvailableSkusNextOptionalParams + - Added Interface ApiManagementGatewaySkusListAvailableSkusOptionalParams + - Added Interface ApiManagementGatewayUpdateHeaders + - Added Interface ApiManagementGatewayUpdateOptionalParams + - Added Interface ApiManagementGatewayUpdateParameters + - Added Interface ApiManagementGatewayUpdateProperties + - Added Interface ApiManagementServiceDeleteHeaders + - Added Interface ApiManagementServiceUpdateHeaders + - Added Interface ApiManagementWorkspaceLinkGetOptionalParams + - Added Interface ApiManagementWorkspaceLinksListByServiceNextOptionalParams + - Added Interface ApiManagementWorkspaceLinksListByServiceOptionalParams + - Added Interface ApiManagementWorkspaceLinksListResult + - Added Interface ApiManagementWorkspaceLinksProperties + - Added Interface ApiManagementWorkspaceLinksResource + - Added Interface BackendBaseParametersPool + - Added Interface BackendCircuitBreaker + - Added Interface BackendConfiguration + - Added Interface BackendPool + - Added Interface BackendPoolItem + - Added Interface BackendSubnetConfiguration + - Added Interface CircuitBreakerFailureCondition + - Added Interface CircuitBreakerRule + - Added Interface ConfigurationApi + - Added Interface DiagnosticUpdateContract + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface FailureStatusCodeRange + - Added Interface FrontendConfiguration + - Added Interface GatewayConfigurationApi + - Added Interface GatewayDebugCredentialsContract + - Added Interface GatewayInvalidateDebugCredentialsOptionalParams + - Added Interface GatewayListDebugCredentialsContract + - Added Interface GatewayListDebugCredentialsOptionalParams + - Added Interface GatewayListTraceContract + - Added Interface GatewayListTraceOptionalParams + - Added Interface GatewayResourceSkuResult + - Added Interface GatewayResourceSkuResults + - Added Interface GatewaySku + - Added Interface GatewaySkuCapacity + - Added Interface MigrateToStv2Contract + - Added Interface OperationsResultsGetHeaders + - Added Interface OperationsResultsGetOptionalParams + - Added Interface OperationStatusGetOptionalParams + - Added Interface OperationStatusResult + - Added Interface PolicyFragmentListByServiceNextOptionalParams + - Added Interface PolicyListByServiceNextOptionalParams + - Added Interface PolicyRestrictionCollection + - Added Interface PolicyRestrictionContract + - Added Interface PolicyRestrictionCreateOrUpdateHeaders + - Added Interface PolicyRestrictionCreateOrUpdateOptionalParams + - Added Interface PolicyRestrictionDeleteOptionalParams + - Added Interface PolicyRestrictionGetEntityTagHeaders + - Added Interface PolicyRestrictionGetEntityTagOptionalParams + - Added Interface PolicyRestrictionGetHeaders + - Added Interface PolicyRestrictionGetOptionalParams + - Added Interface PolicyRestrictionListByServiceNextOptionalParams + - Added Interface PolicyRestrictionListByServiceOptionalParams + - Added Interface PolicyRestrictionUpdateContract + - Added Interface PolicyRestrictionUpdateHeaders + - Added Interface PolicyRestrictionUpdateOptionalParams + - Added Interface PolicyRestrictionValidationsByServiceHeaders + - Added Interface PolicyRestrictionValidationsByServiceOptionalParams + - Added Interface PolicyWithComplianceCollection + - Added Interface PolicyWithComplianceContract + - Added Interface PortalConfigListByServiceNextOptionalParams + - Added Interface PrivateEndpointConnectionCreateOrUpdateHeaders + - Added Interface PrivateEndpointConnectionDeleteHeaders + - Added Interface ProductApiLinkCollection + - Added Interface ProductApiLinkContract + - Added Interface ProductApiLinkCreateOrUpdateOptionalParams + - Added Interface ProductApiLinkDeleteOptionalParams + - Added Interface ProductApiLinkGetHeaders + - Added Interface ProductApiLinkGetOptionalParams + - Added Interface ProductApiLinkListByProductNextOptionalParams + - Added Interface ProductApiLinkListByProductOptionalParams + - Added Interface ProductGroupLinkCollection + - Added Interface ProductGroupLinkContract + - Added Interface ProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface ProductGroupLinkDeleteOptionalParams + - Added Interface ProductGroupLinkGetHeaders + - Added Interface ProductGroupLinkGetOptionalParams + - Added Interface ProductGroupLinkListByProductNextOptionalParams + - Added Interface ProductGroupLinkListByProductOptionalParams + - Added Interface ProductPolicyListByProductNextOptionalParams + - Added Interface TagApiLinkCollection + - Added Interface TagApiLinkContract + - Added Interface TagApiLinkCreateOrUpdateOptionalParams + - Added Interface TagApiLinkDeleteOptionalParams + - Added Interface TagApiLinkGetHeaders + - Added Interface TagApiLinkGetOptionalParams + - Added Interface TagApiLinkListByProductNextOptionalParams + - Added Interface TagApiLinkListByProductOptionalParams + - Added Interface TagOperationLinkCollection + - Added Interface TagOperationLinkContract + - Added Interface TagOperationLinkCreateOrUpdateOptionalParams + - Added Interface TagOperationLinkDeleteOptionalParams + - Added Interface TagOperationLinkGetHeaders + - Added Interface TagOperationLinkGetOptionalParams + - Added Interface TagOperationLinkListByProductNextOptionalParams + - Added Interface TagOperationLinkListByProductOptionalParams + - Added Interface TagProductLinkCollection + - Added Interface TagProductLinkContract + - Added Interface TagProductLinkCreateOrUpdateOptionalParams + - Added Interface TagProductLinkDeleteOptionalParams + - Added Interface TagProductLinkGetHeaders + - Added Interface TagProductLinkGetOptionalParams + - Added Interface TagProductLinkListByProductNextOptionalParams + - Added Interface TagProductLinkListByProductOptionalParams + - Added Interface TenantConfigurationDeployHeaders + - Added Interface TenantConfigurationSaveHeaders + - Added Interface TenantConfigurationValidateHeaders + - Added Interface UserDeleteHeaders + - Added Interface WorkspaceApiCreateOrUpdateHeaders + - Added Interface WorkspaceApiCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiDeleteOptionalParams + - Added Interface WorkspaceApiDiagnosticCreateOrUpdateHeaders + - Added Interface WorkspaceApiDiagnosticCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiDiagnosticDeleteOptionalParams + - Added Interface WorkspaceApiDiagnosticGetEntityTagHeaders + - Added Interface WorkspaceApiDiagnosticGetEntityTagOptionalParams + - Added Interface WorkspaceApiDiagnosticGetHeaders + - Added Interface WorkspaceApiDiagnosticGetOptionalParams + - Added Interface WorkspaceApiDiagnosticListByWorkspaceNextOptionalParams + - Added Interface WorkspaceApiDiagnosticListByWorkspaceOptionalParams + - Added Interface WorkspaceApiDiagnosticUpdateHeaders + - Added Interface WorkspaceApiDiagnosticUpdateOptionalParams + - 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 WorkspaceBackendCreateOrUpdateHeaders + - Added Interface WorkspaceBackendCreateOrUpdateOptionalParams + - Added Interface WorkspaceBackendDeleteOptionalParams + - Added Interface WorkspaceBackendGetEntityTagHeaders + - Added Interface WorkspaceBackendGetEntityTagOptionalParams + - Added Interface WorkspaceBackendGetHeaders + - Added Interface WorkspaceBackendGetOptionalParams + - Added Interface WorkspaceBackendListByWorkspaceNextOptionalParams + - Added Interface WorkspaceBackendListByWorkspaceOptionalParams + - Added Interface WorkspaceBackendUpdateHeaders + - Added Interface WorkspaceBackendUpdateOptionalParams + - Added Interface WorkspaceCertificateCreateOrUpdateHeaders + - Added Interface WorkspaceCertificateCreateOrUpdateOptionalParams + - Added Interface WorkspaceCertificateDeleteOptionalParams + - Added Interface WorkspaceCertificateGetEntityTagHeaders + - Added Interface WorkspaceCertificateGetEntityTagOptionalParams + - Added Interface WorkspaceCertificateGetHeaders + - Added Interface WorkspaceCertificateGetOptionalParams + - Added Interface WorkspaceCertificateListByWorkspaceNextOptionalParams + - Added Interface WorkspaceCertificateListByWorkspaceOptionalParams + - Added Interface WorkspaceCertificateRefreshSecretHeaders + - Added Interface WorkspaceCertificateRefreshSecretOptionalParams + - Added Interface WorkspaceCollection + - Added Interface WorkspaceContract + - Added Interface WorkspaceCreateOrUpdateHeaders + - Added Interface WorkspaceCreateOrUpdateOptionalParams + - Added Interface WorkspaceDeleteOptionalParams + - Added Interface WorkspaceDiagnosticCreateOrUpdateHeaders + - Added Interface WorkspaceDiagnosticCreateOrUpdateOptionalParams + - Added Interface WorkspaceDiagnosticDeleteOptionalParams + - Added Interface WorkspaceDiagnosticGetEntityTagHeaders + - Added Interface WorkspaceDiagnosticGetEntityTagOptionalParams + - Added Interface WorkspaceDiagnosticGetHeaders + - Added Interface WorkspaceDiagnosticGetOptionalParams + - Added Interface WorkspaceDiagnosticListByWorkspaceNextOptionalParams + - Added Interface WorkspaceDiagnosticListByWorkspaceOptionalParams + - Added Interface WorkspaceDiagnosticUpdateHeaders + - Added Interface WorkspaceDiagnosticUpdateOptionalParams + - 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 WorkspaceLinksBaseProperties + - Added Interface WorkspaceLinksGateway + - Added Interface WorkspaceListByServiceNextOptionalParams + - Added Interface WorkspaceListByServiceOptionalParams + - Added Interface WorkspaceLoggerCreateOrUpdateHeaders + - Added Interface WorkspaceLoggerCreateOrUpdateOptionalParams + - Added Interface WorkspaceLoggerDeleteOptionalParams + - Added Interface WorkspaceLoggerGetEntityTagHeaders + - Added Interface WorkspaceLoggerGetEntityTagOptionalParams + - Added Interface WorkspaceLoggerGetHeaders + - Added Interface WorkspaceLoggerGetOptionalParams + - Added Interface WorkspaceLoggerListByWorkspaceNextOptionalParams + - Added Interface WorkspaceLoggerListByWorkspaceOptionalParams + - Added Interface WorkspaceLoggerUpdateHeaders + - Added Interface WorkspaceLoggerUpdateOptionalParams + - Added Interface WorkspaceNamedValueCreateOrUpdateHeaders + - Added Interface WorkspaceNamedValueCreateOrUpdateOptionalParams + - Added Interface WorkspaceNamedValueDeleteOptionalParams + - Added Interface WorkspaceNamedValueGetEntityTagHeaders + - Added Interface WorkspaceNamedValueGetEntityTagOptionalParams + - Added Interface WorkspaceNamedValueGetHeaders + - Added Interface WorkspaceNamedValueGetOptionalParams + - Added Interface WorkspaceNamedValueListByServiceNextOptionalParams + - Added Interface WorkspaceNamedValueListByServiceOptionalParams + - Added Interface WorkspaceNamedValueListValueHeaders + - Added Interface WorkspaceNamedValueListValueOptionalParams + - Added Interface WorkspaceNamedValueRefreshSecretHeaders + - Added Interface WorkspaceNamedValueRefreshSecretOptionalParams + - Added Interface WorkspaceNamedValueUpdateHeaders + - Added Interface WorkspaceNamedValueUpdateOptionalParams + - Added Interface WorkspaceNotificationCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationGetOptionalParams + - Added Interface WorkspaceNotificationListByServiceNextOptionalParams + - Added Interface WorkspaceNotificationListByServiceOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientUserDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams + - Added Interface WorkspacePolicyCreateOrUpdateHeaders + - Added Interface WorkspacePolicyCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentCreateOrUpdateHeaders + - Added Interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyFragmentDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentGetEntityTagHeaders + - Added Interface WorkspacePolicyFragmentGetEntityTagOptionalParams + - Added Interface WorkspacePolicyFragmentGetHeaders + - Added Interface WorkspacePolicyFragmentGetOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceNextOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceOptionalParams + - Added Interface WorkspacePolicyFragmentListReferencesOptionalParams + - Added Interface WorkspacePolicyGetEntityTagHeaders + - Added Interface WorkspacePolicyGetEntityTagOptionalParams + - Added Interface WorkspacePolicyGetHeaders + - Added Interface WorkspacePolicyGetOptionalParams + - Added Interface WorkspacePolicyListByApiNextOptionalParams + - Added Interface WorkspacePolicyListByApiOptionalParams + - Added Interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductApiLinkDeleteOptionalParams + - Added Interface WorkspaceProductApiLinkGetHeaders + - Added Interface WorkspaceProductApiLinkGetOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductOptionalParams + - Added Interface WorkspaceProductCreateOrUpdateHeaders + - Added Interface WorkspaceProductCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductDeleteOptionalParams + - Added Interface WorkspaceProductGetEntityTagHeaders + - Added Interface WorkspaceProductGetEntityTagOptionalParams + - Added Interface WorkspaceProductGetHeaders + - Added Interface WorkspaceProductGetOptionalParams + - Added Interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductGroupLinkDeleteOptionalParams + - Added Interface WorkspaceProductGroupLinkGetHeaders + - Added Interface WorkspaceProductGroupLinkGetOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductOptionalParams + - Added Interface WorkspaceProductListByServiceNextOptionalParams + - Added Interface WorkspaceProductListByServiceOptionalParams + - Added Interface WorkspaceProductPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceProductPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductPolicyDeleteOptionalParams + - Added Interface WorkspaceProductPolicyGetEntityTagHeaders + - Added Interface WorkspaceProductPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceProductPolicyGetHeaders + - Added Interface WorkspaceProductPolicyGetOptionalParams + - Added Interface WorkspaceProductPolicyListByProductOptionalParams + - Added Interface WorkspaceProductUpdateHeaders + - Added Interface WorkspaceProductUpdateOptionalParams + - Added Interface WorkspaceSubscriptionCreateOrUpdateHeaders + - Added Interface WorkspaceSubscriptionCreateOrUpdateOptionalParams + - Added Interface WorkspaceSubscriptionDeleteOptionalParams + - Added Interface WorkspaceSubscriptionGetEntityTagHeaders + - Added Interface WorkspaceSubscriptionGetEntityTagOptionalParams + - Added Interface WorkspaceSubscriptionGetHeaders + - Added Interface WorkspaceSubscriptionGetOptionalParams + - Added Interface WorkspaceSubscriptionListNextOptionalParams + - Added Interface WorkspaceSubscriptionListOptionalParams + - Added Interface WorkspaceSubscriptionListSecretsHeaders + - Added Interface WorkspaceSubscriptionListSecretsOptionalParams + - Added Interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionUpdateHeaders + - Added Interface WorkspaceSubscriptionUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkDeleteOptionalParams + - Added Interface WorkspaceTagApiLinkGetHeaders + - Added Interface WorkspaceTagApiLinkGetOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductOptionalParams + - Added Interface WorkspaceTagCreateOrUpdateHeaders + - Added Interface WorkspaceTagCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagDeleteOptionalParams + - Added Interface WorkspaceTagGetEntityStateHeaders + - Added Interface WorkspaceTagGetEntityStateOptionalParams + - Added Interface WorkspaceTagGetHeaders + - Added Interface WorkspaceTagGetOptionalParams + - Added Interface WorkspaceTagListByServiceNextOptionalParams + - Added Interface WorkspaceTagListByServiceOptionalParams + - Added Interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagOperationLinkDeleteOptionalParams + - Added Interface WorkspaceTagOperationLinkGetHeaders + - Added Interface WorkspaceTagOperationLinkGetOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductOptionalParams + - Added Interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagProductLinkDeleteOptionalParams + - Added Interface WorkspaceTagProductLinkGetHeaders + - Added Interface WorkspaceTagProductLinkGetOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductOptionalParams + - Added Interface WorkspaceTagUpdateHeaders + - Added Interface WorkspaceTagUpdateOptionalParams + - Added Interface WorkspaceUpdateHeaders + - Added Interface WorkspaceUpdateOptionalParams + - Added Type Alias AllPoliciesListByServiceNextResponse + - Added Type Alias AllPoliciesListByServiceResponse + - Added Type Alias ApiDeleteResponse + - Added Type Alias ApiManagementGatewayConfigConnectionCreateOrUpdateResponse + - Added Type Alias ApiManagementGatewayConfigConnectionDeleteResponse + - Added Type Alias ApiManagementGatewayConfigConnectionGetResponse + - Added Type Alias ApiManagementGatewayConfigConnectionListByGatewayNextResponse + - Added Type Alias ApiManagementGatewayConfigConnectionListByGatewayResponse + - Added Type Alias ApiManagementGatewayCreateOrUpdateResponse + - Added Type Alias ApiManagementGatewayDeleteResponse + - Added Type Alias ApiManagementGatewayGetResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupNextResponse + - Added Type Alias ApiManagementGatewayListByResourceGroupResponse + - Added Type Alias ApiManagementGatewayListNextResponse + - Added Type Alias ApiManagementGatewayListResponse + - Added Type Alias ApiManagementGatewaySkusListAvailableSkusNextResponse + - Added Type Alias ApiManagementGatewaySkusListAvailableSkusResponse + - Added Type Alias ApiManagementGatewayUpdateResponse + - Added Type Alias ApiManagementWorkspaceLinkGetResponse + - Added Type Alias ApiManagementWorkspaceLinksListByServiceNextResponse + - Added Type Alias ApiManagementWorkspaceLinksListByServiceResponse + - Added Type Alias BackendType + - Added Type Alias DeveloperPortalStatus + - Added Type Alias GatewayListDebugCredentialsContractPurpose + - Added Type Alias GatewayListDebugCredentialsResponse + - Added Type Alias GatewayListTraceResponse + - Added Type Alias GatewaySkuCapacityScaleType + - Added Type Alias KeyVaultRefreshState + - Added Type Alias LegacyApiState + - Added Type Alias LegacyPortalStatus + - Added Type Alias MigrateToStv2Mode + - Added Type Alias OperationsResultsGetResponse + - Added Type Alias OperationStatusGetResponse + - Added Type Alias PolicyComplianceState + - Added Type Alias PolicyFragmentListByServiceNextResponse + - Added Type Alias PolicyListByServiceNextResponse + - Added Type Alias PolicyRestrictionCreateOrUpdateResponse + - Added Type Alias PolicyRestrictionGetEntityTagResponse + - Added Type Alias PolicyRestrictionGetResponse + - Added Type Alias PolicyRestrictionListByServiceNextResponse + - Added Type Alias PolicyRestrictionListByServiceResponse + - Added Type Alias PolicyRestrictionRequireBase + - Added Type Alias PolicyRestrictionUpdateResponse + - Added Type Alias PolicyRestrictionValidationsByServiceResponse + - Added Type Alias PortalConfigListByServiceNextResponse + - Added Type Alias ProductApiLinkCreateOrUpdateResponse + - Added Type Alias ProductApiLinkGetResponse + - Added Type Alias ProductApiLinkListByProductNextResponse + - Added Type Alias ProductApiLinkListByProductResponse + - Added Type Alias ProductGroupLinkCreateOrUpdateResponse + - Added Type Alias ProductGroupLinkGetResponse + - Added Type Alias ProductGroupLinkListByProductNextResponse + - Added Type Alias ProductGroupLinkListByProductResponse + - Added Type Alias ProductPolicyListByProductNextResponse + - Added Type Alias ProvisioningState + - Added Type Alias TagApiLinkCreateOrUpdateResponse + - Added Type Alias TagApiLinkGetResponse + - Added Type Alias TagApiLinkListByProductNextResponse + - Added Type Alias TagApiLinkListByProductResponse + - Added Type Alias TagOperationLinkCreateOrUpdateResponse + - Added Type Alias TagOperationLinkGetResponse + - Added Type Alias TagOperationLinkListByProductNextResponse + - Added Type Alias TagOperationLinkListByProductResponse + - Added Type Alias TagProductLinkCreateOrUpdateResponse + - Added Type Alias TagProductLinkGetResponse + - Added Type Alias TagProductLinkListByProductNextResponse + - Added Type Alias TagProductLinkListByProductResponse + - Added Type Alias UserDeleteResponse + - Added Type Alias WorkspaceApiCreateOrUpdateResponse + - Added Type Alias WorkspaceApiDiagnosticCreateOrUpdateResponse + - Added Type Alias WorkspaceApiDiagnosticGetEntityTagResponse + - Added Type Alias WorkspaceApiDiagnosticGetResponse + - Added Type Alias WorkspaceApiDiagnosticListByWorkspaceNextResponse + - Added Type Alias WorkspaceApiDiagnosticListByWorkspaceResponse + - Added Type Alias WorkspaceApiDiagnosticUpdateResponse + - 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 WorkspaceBackendCreateOrUpdateResponse + - Added Type Alias WorkspaceBackendGetEntityTagResponse + - Added Type Alias WorkspaceBackendGetResponse + - Added Type Alias WorkspaceBackendListByWorkspaceNextResponse + - Added Type Alias WorkspaceBackendListByWorkspaceResponse + - Added Type Alias WorkspaceBackendUpdateResponse + - Added Type Alias WorkspaceCertificateCreateOrUpdateResponse + - Added Type Alias WorkspaceCertificateGetEntityTagResponse + - Added Type Alias WorkspaceCertificateGetResponse + - Added Type Alias WorkspaceCertificateListByWorkspaceNextResponse + - Added Type Alias WorkspaceCertificateListByWorkspaceResponse + - Added Type Alias WorkspaceCertificateRefreshSecretResponse + - Added Type Alias WorkspaceCreateOrUpdateResponse + - Added Type Alias WorkspaceDiagnosticCreateOrUpdateResponse + - Added Type Alias WorkspaceDiagnosticGetEntityTagResponse + - Added Type Alias WorkspaceDiagnosticGetResponse + - Added Type Alias WorkspaceDiagnosticListByWorkspaceNextResponse + - Added Type Alias WorkspaceDiagnosticListByWorkspaceResponse + - Added Type Alias WorkspaceDiagnosticUpdateResponse + - 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 WorkspaceLoggerCreateOrUpdateResponse + - Added Type Alias WorkspaceLoggerGetEntityTagResponse + - Added Type Alias WorkspaceLoggerGetResponse + - Added Type Alias WorkspaceLoggerListByWorkspaceNextResponse + - Added Type Alias WorkspaceLoggerListByWorkspaceResponse + - Added Type Alias WorkspaceLoggerUpdateResponse + - Added Type Alias WorkspaceNamedValueCreateOrUpdateResponse + - Added Type Alias WorkspaceNamedValueGetEntityTagResponse + - Added Type Alias WorkspaceNamedValueGetResponse + - Added Type Alias WorkspaceNamedValueListByServiceNextResponse + - Added Type Alias WorkspaceNamedValueListByServiceResponse + - Added Type Alias WorkspaceNamedValueListValueResponse + - Added Type Alias WorkspaceNamedValueRefreshSecretResponse + - Added Type Alias WorkspaceNamedValueUpdateResponse + - Added Type Alias WorkspaceNotificationCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationGetResponse + - Added Type Alias WorkspaceNotificationListByServiceNextResponse + - Added Type Alias WorkspaceNotificationListByServiceResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientEmailListByNotificationResponse + - Added Type Alias WorkspaceNotificationRecipientUserCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientUserCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientUserListByNotificationResponse + - Added Type Alias WorkspacePolicyCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentGetEntityTagResponse + - Added Type Alias WorkspacePolicyFragmentGetResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceNextResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceResponse + - Added Type Alias WorkspacePolicyFragmentListReferencesResponse + - Added Type Alias WorkspacePolicyGetEntityTagResponse + - Added Type Alias WorkspacePolicyGetResponse + - Added Type Alias WorkspacePolicyListByApiNextResponse + - Added Type Alias WorkspacePolicyListByApiResponse + - Added Type Alias WorkspaceProductApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductApiLinkGetResponse + - Added Type Alias WorkspaceProductApiLinkListByProductNextResponse + - Added Type Alias WorkspaceProductApiLinkListByProductResponse + - Added Type Alias WorkspaceProductCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGetEntityTagResponse + - Added Type Alias WorkspaceProductGetResponse + - Added Type Alias WorkspaceProductGroupLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGroupLinkGetResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductNextResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductResponse + - Added Type Alias WorkspaceProductListByServiceNextResponse + - Added Type Alias WorkspaceProductListByServiceResponse + - Added Type Alias WorkspaceProductPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceProductPolicyGetEntityTagResponse + - Added Type Alias WorkspaceProductPolicyGetResponse + - Added Type Alias WorkspaceProductPolicyListByProductResponse + - Added Type Alias WorkspaceProductUpdateResponse + - Added Type Alias WorkspaceSubscriptionCreateOrUpdateResponse + - Added Type Alias WorkspaceSubscriptionGetEntityTagResponse + - Added Type Alias WorkspaceSubscriptionGetResponse + - Added Type Alias WorkspaceSubscriptionListNextResponse + - Added Type Alias WorkspaceSubscriptionListResponse + - Added Type Alias WorkspaceSubscriptionListSecretsResponse + - Added Type Alias WorkspaceSubscriptionUpdateResponse + - Added Type Alias WorkspaceTagApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagApiLinkGetResponse + - Added Type Alias WorkspaceTagApiLinkListByProductNextResponse + - Added Type Alias WorkspaceTagApiLinkListByProductResponse + - Added Type Alias WorkspaceTagCreateOrUpdateResponse + - Added Type Alias WorkspaceTagGetEntityStateResponse + - Added Type Alias WorkspaceTagGetResponse + - Added Type Alias WorkspaceTagListByServiceNextResponse + - Added Type Alias WorkspaceTagListByServiceResponse + - Added Type Alias WorkspaceTagOperationLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagOperationLinkGetResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductNextResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductResponse + - Added Type Alias WorkspaceTagProductLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagProductLinkGetResponse + - Added Type Alias WorkspaceTagProductLinkListByProductNextResponse + - Added Type Alias WorkspaceTagProductLinkListByProductResponse + - Added Type Alias WorkspaceTagUpdateResponse + - Added Type Alias WorkspaceUpdateResponse + - Interface ApiContract has a new optional parameter provisioningState + - Interface ApiContractProperties has a new optional parameter provisioningState + - Interface ApiCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiCreateOrUpdateHeaders has a new optional parameter location + - Interface ApiCreateOrUpdateParameter has a new optional parameter provisioningState + - Interface ApiDeleteOptionalParams has a new optional parameter resumeFrom + - Interface ApiDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Interface ApiManagementServiceBaseProperties has a new optional parameter configurationApi + - Interface ApiManagementServiceBaseProperties has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceBaseProperties has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceMigrateToStv2OptionalParams has a new optional parameter parameters + - Interface ApiManagementServiceResource has a new optional parameter configurationApi + - Interface ApiManagementServiceResource has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceResource has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter configurationApi + - Interface ApiManagementServiceUpdateParameters has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter legacyPortalStatus + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface ApiSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface AuthorizationAccessPolicyContract has a new optional parameter appIds + - Interface BackendBaseParameters has a new optional parameter circuitBreaker + - Interface BackendBaseParameters has a new optional parameter pool + - Interface BackendBaseParameters has a new optional parameter type + - Interface BackendContract has a new optional parameter circuitBreaker + - Interface BackendContract has a new optional parameter pool + - Interface BackendContract has a new optional parameter typePropertiesType + - Interface BackendUpdateParameters has a new optional parameter circuitBreaker + - Interface BackendUpdateParameters has a new optional parameter pool + - Interface BackendUpdateParameters has a new optional parameter type + - Interface ErrorResponse has a new optional parameter error + - Interface GlobalSchemaContract has a new optional parameter provisioningState + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface GlobalSchemaCreateOrUpdateHeaders has a new optional parameter location + - Interface NamedValueContract has a new optional parameter provisioningState + - Interface NamedValueContractProperties has a new optional parameter provisioningState + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface NamedValueCreateOrUpdateHeaders has a new optional parameter location + - Interface PolicyFragmentContract has a new optional parameter provisioningState + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PolicyFragmentCreateOrUpdateHeaders has a new optional parameter location + - Interface PortalRevisionContract has a new optional parameter provisioningState + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter azureAsyncOperation + - Interface PortalRevisionCreateOrUpdateHeaders has a new optional parameter location + - Interface SchemaContract has a new optional parameter provisioningState + - Interface UserDeleteOptionalParams has a new optional parameter resumeFrom + - Interface UserDeleteOptionalParams has a new optional parameter updateIntervalInMs + - Added Enum KnownBackendType + - Added Enum KnownDeveloperPortalStatus + - Added Enum KnownGatewayListDebugCredentialsContractPurpose + - Added Enum KnownGatewaySkuCapacityScaleType + - Added Enum KnownKeyVaultRefreshState + - Added Enum KnownLegacyApiState + - Added Enum KnownLegacyPortalStatus + - Added Enum KnownMigrateToStv2Mode + - Added Enum KnownPolicyComplianceState + - Added Enum KnownPolicyRestrictionRequireBase + - Added Enum KnownProvisioningState + - Enum KnownApiType has a new value Grpc + - Enum KnownApiType has a new value Odata + - Enum KnownContentFormat has a new value Grpc + - Enum KnownContentFormat has a new value GrpcLink + - Enum KnownContentFormat has a new value Odata + - Enum KnownContentFormat has a new value OdataLink + - Enum KnownHostnameType has a new value ConfigurationApi + - Enum KnownPlatformVersion has a new value Stv21 + - Enum KnownSkuType has a new value WorkspaceGatewayPremium + - Enum KnownSkuType has a new value WorkspaceGatewayStandard + - Enum KnownSoapApiType has a new value GRPC + - Enum KnownSoapApiType has a new value OData + +**Breaking Changes** + - Removed operation Api.delete + - Removed operation User.delete + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter details + - Interface ErrorResponse no longer has parameter message + - Type of parameter provisioningState of interface AssociationContract is changed from "created" to ProvisioningState + - Enum KnownSkuType no longer has value Basic + - Enum KnownSkuType no longer has value Consumption + - Enum KnownSkuType no longer has value Developer + - Enum KnownSkuType no longer has value Isolated + - Enum KnownSkuType no longer has value Premium + ## 9.1.0 (2023-08-23) **Features** @@ -571,4 +1379,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE b/sdk/apimanagement/arm-apimanagement/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE +++ b/sdk/apimanagement/arm-apimanagement/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 9b6c2e8409c2..075f96a061ed 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -6,7 +6,7 @@ ApiManagement Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 2dd27e303209..4e6b4643df8e 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1", + "commit": "31787ce1a66e2d2b3a6e8820da84fd0c03163291", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 224d423a096c..827f4e6c7de1 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.1.0", + "version": "10.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^3.0.1", "typescript": "~5.4.5", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement" +} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index 666a2a8cd093..83ad8c946c04 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -68,6 +68,37 @@ export interface AdditionalLocation { zones?: string[]; } +// @public +export interface AllPolicies { + listByService(resourceGroupName: string, serviceName: string, options?: AllPoliciesListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AllPoliciesCollection { + nextLink?: string; + value?: AllPoliciesContract[]; +} + +// @public +export interface AllPoliciesContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} + +// @public +export interface AllPoliciesListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +// @public +export interface AllPoliciesListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + // @public export type AlwaysLog = string; @@ -75,7 +106,8 @@ export type AlwaysLog = string; export interface Api { beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise, ApiDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetEntityTagOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -115,6 +147,7 @@ export interface ApiContract extends ProxyResource { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; @@ -128,6 +161,7 @@ export interface ApiContractProperties extends ApiEntityBaseContract { displayName?: string; path: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; sourceApiId?: string; } @@ -142,7 +176,9 @@ export interface ApiContractUpdateProperties extends ApiEntityBaseContract { // @public export interface ApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -171,6 +207,7 @@ export interface ApiCreateOrUpdateParameter { license?: ApiLicenseInformation; path?: string; protocols?: Protocol[]; + readonly provisioningState?: string; serviceUrl?: string; soapApiType?: SoapApiType; sourceApiId?: string; @@ -200,11 +237,22 @@ export interface ApiCreateOrUpdatePropertiesWsdlSelector { // @public export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +// @public +export interface ApiDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { deleteRevisions?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type ApiDeleteResponse = ApiDeleteHeaders; + // @public export interface ApiDiagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, parameters: DiagnosticContract, options?: ApiDiagnosticCreateOrUpdateOptionalParams): Promise; @@ -618,6 +666,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApiManagementClientOptionalParams); constructor(credentials: coreAuth.TokenCredential, options?: ApiManagementClientOptionalParams); // (undocumented) + allPolicies: AllPolicies; + // (undocumented) api: Api; // (undocumented) apiDiagnostic: ApiDiagnostic; @@ -630,6 +680,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiIssueComment: ApiIssueComment; // (undocumented) + apiManagementGateway: ApiManagementGateway; + // (undocumented) + apiManagementGatewayConfigConnection: ApiManagementGatewayConfigConnection; + // (undocumented) + apiManagementGatewaySkus: ApiManagementGatewaySkus; + // (undocumented) apiManagementOperations: ApiManagementOperations; // (undocumented) apiManagementService: ApiManagementService; @@ -638,6 +694,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiManagementSkus: ApiManagementSkus; // (undocumented) + apiManagementWorkspaceLink: ApiManagementWorkspaceLink; + // (undocumented) + apiManagementWorkspaceLinks: ApiManagementWorkspaceLinks; + // (undocumented) apiOperation: ApiOperation; // (undocumented) apiOperationPolicy: ApiOperationPolicy; @@ -732,6 +792,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) operationOperations: OperationOperations; // (undocumented) + operationsResults: OperationsResults; + // (undocumented) + operationStatus: OperationStatus; + // (undocumented) outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints; // (undocumented) policy: Policy; @@ -740,6 +804,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyFragment: PolicyFragment; // (undocumented) + policyRestriction: PolicyRestriction; + // (undocumented) + policyRestrictionValidations: PolicyRestrictionValidations; + // (undocumented) portalConfig: PortalConfig; // (undocumented) portalRevision: PortalRevision; @@ -752,8 +820,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productApi: ProductApi; // (undocumented) + productApiLink: ProductApiLink; + // (undocumented) productGroup: ProductGroup; // (undocumented) + productGroupLink: ProductGroupLink; + // (undocumented) productPolicy: ProductPolicy; // (undocumented) productSubscriptions: ProductSubscriptions; @@ -780,6 +852,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) tag: Tag; // (undocumented) + tagApiLink: TagApiLink; + // (undocumented) + tagOperationLink: TagOperationLink; + // (undocumented) + tagProductLink: TagProductLink; + // (undocumented) tagResource: TagResource; // (undocumented) tenantAccess: TenantAccess; @@ -799,6 +877,72 @@ export class ApiManagementClient extends coreClient.ServiceClient { userIdentities: UserIdentities; // (undocumented) userSubscription: UserSubscription; + // (undocumented) + workspace: Workspace; + // (undocumented) + workspaceApi: WorkspaceApi; + // (undocumented) + workspaceApiDiagnostic: WorkspaceApiDiagnostic; + // (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) + workspaceBackend: WorkspaceBackend; + // (undocumented) + workspaceCertificate: WorkspaceCertificate; + // (undocumented) + workspaceDiagnostic: WorkspaceDiagnostic; + // (undocumented) + workspaceGlobalSchema: WorkspaceGlobalSchema; + // (undocumented) + workspaceGroup: WorkspaceGroup; + // (undocumented) + workspaceGroupUser: WorkspaceGroupUser; + // (undocumented) + workspaceLogger: WorkspaceLogger; + // (undocumented) + workspaceNamedValue: WorkspaceNamedValue; + // (undocumented) + workspaceNotification: WorkspaceNotification; + // (undocumented) + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + // (undocumented) + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + // (undocumented) + workspacePolicy: WorkspacePolicy; + // (undocumented) + workspacePolicyFragment: WorkspacePolicyFragment; + // (undocumented) + workspaceProduct: WorkspaceProduct; + // (undocumented) + workspaceProductApiLink: WorkspaceProductApiLink; + // (undocumented) + workspaceProductGroupLink: WorkspaceProductGroupLink; + // (undocumented) + workspaceProductPolicy: WorkspaceProductPolicy; + // (undocumented) + workspaceSubscription: WorkspaceSubscription; + // (undocumented) + workspaceTag: WorkspaceTag; + // (undocumented) + workspaceTagApiLink: WorkspaceTagApiLink; + // (undocumented) + workspaceTagOperationLink: WorkspaceTagOperationLink; + // (undocumented) + workspaceTagProductLink: WorkspaceTagProductLink; } // @public @@ -808,6 +952,250 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementGateway { + beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise, ApiManagementGatewayCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayResource, options?: ApiManagementGatewayCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise, ApiManagementGatewayDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise, ApiManagementGatewayUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, gatewayName: string, parameters: ApiManagementGatewayUpdateParameters, options?: ApiManagementGatewayUpdateOptionalParams): Promise; + get(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayGetOptionalParams): Promise; + list(options?: ApiManagementGatewayListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: ApiManagementGatewayListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementGatewayBaseProperties { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + readonly targetProvisioningState?: string; + virtualNetworkType?: VirtualNetworkType; +} + +// @public +export interface ApiManagementGatewayConfigConnection { + beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, configConnectionName: string, parameters: ApiManagementGatewayConfigConnectionResource, options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams): Promise, ApiManagementGatewayConfigConnectionCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, configConnectionName: string, parameters: ApiManagementGatewayConfigConnectionResource, options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, gatewayName: string, configConnectionName: string, ifMatch: string, options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams): Promise, ApiManagementGatewayConfigConnectionDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, gatewayName: string, configConnectionName: string, ifMatch: string, options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams): Promise; + get(resourceGroupName: string, gatewayName: string, configConnectionName: string, options?: ApiManagementGatewayConfigConnectionGetOptionalParams): Promise; + listByGateway(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayConfigConnectionCreateOrUpdateResponse = ApiManagementGatewayConfigConnectionResource; + +// @public +export interface ApiManagementGatewayConfigConnectionDeleteHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayConfigConnectionDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayConfigConnectionDeleteResponse = ApiManagementGatewayConfigConnectionDeleteHeaders; + +// @public +export interface ApiManagementGatewayConfigConnectionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayConfigConnectionGetResponse = ApiManagementGatewayConfigConnectionResource; + +// @public +export interface ApiManagementGatewayConfigConnectionListByGatewayNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayConfigConnectionListByGatewayNextResponse = ApiManagementGatewayConfigConnectionListResult; + +// @public +export interface ApiManagementGatewayConfigConnectionListByGatewayOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayConfigConnectionListByGatewayResponse = ApiManagementGatewayConfigConnectionListResult; + +// @public +export interface ApiManagementGatewayConfigConnectionListResult { + nextLink?: string; + value: ApiManagementGatewayConfigConnectionResource[]; +} + +// @public +export interface ApiManagementGatewayConfigConnectionResource extends ProxyResource { + readonly defaultHostname?: string; + readonly etag?: string; + hostnames?: string[]; + readonly provisioningState?: ProvisioningState; + sourceId?: string; +} + +// @public +export interface ApiManagementGatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayCreateOrUpdateResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayDeleteHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementGatewayDeleteResponse = ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +// @public +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListByResourceGroupResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListNextResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +// @public +export interface ApiManagementGatewayListResult { + nextLink?: string; + value: ApiManagementGatewayResource[]; +} + +// @public +export interface ApiManagementGatewayProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export interface ApiManagementGatewayResource extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + location: string; + readonly provisioningState?: string; + sku: ApiManagementGatewaySkuProperties; + readonly systemData?: SystemData; + readonly targetProvisioningState?: string; + virtualNetworkType?: VirtualNetworkType; +} + +// @public +export interface ApiManagementGatewaySkuProperties { + capacity?: number; + name: SkuType; +} + +// @public +export interface ApiManagementGatewaySkuPropertiesForPatch { + capacity?: number; + name?: SkuType; +} + +// @public +export interface ApiManagementGatewaySkus { + listAvailableSkus(resourceGroupName: string, gatewayName: string, options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementGatewaySkusListAvailableSkusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewaySkusListAvailableSkusNextResponse = GatewayResourceSkuResults; + +// @public +export interface ApiManagementGatewaySkusListAvailableSkusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementGatewaySkusListAvailableSkusResponse = GatewayResourceSkuResults; + +// @public +export interface ApiManagementGatewayUpdateHeaders { + location?: string; +} + +// @public +export interface ApiManagementGatewayUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + backend?: BackendConfiguration; + configurationApi?: GatewayConfigurationApi; + readonly createdAtUtc?: Date; + readonly etag?: string; + frontend?: FrontendConfiguration; + readonly provisioningState?: string; + sku?: ApiManagementGatewaySkuPropertiesForPatch; + readonly targetProvisioningState?: string; + virtualNetworkType?: VirtualNetworkType; +} + +// @public +export interface ApiManagementGatewayUpdateProperties extends ApiManagementGatewayBaseProperties { +} + +// @public +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -902,16 +1290,19 @@ export interface ApiManagementServiceBaseProperties { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; readonly gatewayRegionalUrl?: string; readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -952,6 +1343,11 @@ export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreCl // @public export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceDeleteHeaders { + location?: string; +} + // @public export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1041,6 +1437,7 @@ export interface ApiManagementServiceMigrateToStv2Headers { // @public export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + parameters?: MigrateToStv2Contract; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1066,10 +1463,12 @@ export interface ApiManagementServiceResource extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1078,6 +1477,7 @@ export interface ApiManagementServiceResource extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; location: string; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; @@ -1143,6 +1543,11 @@ export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams // @public export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +// @public +export interface ApiManagementServiceUpdateHeaders { + location?: string; +} + // @public export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1154,10 +1559,12 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1166,6 +1573,7 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -1298,13 +1706,61 @@ export interface ApiManagementSkuZoneDetails { } // @public -export type ApimIdentityType = string; +export interface ApiManagementWorkspaceLink { + get(resourceGroupName: string, serviceName: string, workspaceId: string, options?: ApiManagementWorkspaceLinkGetOptionalParams): Promise; +} // @public -export interface ApimResource { - readonly id?: string; - readonly name?: string; - tags?: { +export interface ApiManagementWorkspaceLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementWorkspaceLinkGetResponse = ApiManagementWorkspaceLinksResource; + +// @public +export interface ApiManagementWorkspaceLinks { + listByService(resourceGroupName: string, serviceName: string, options?: ApiManagementWorkspaceLinksListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiManagementWorkspaceLinksListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementWorkspaceLinksListByServiceNextResponse = ApiManagementWorkspaceLinksListResult; + +// @public +export interface ApiManagementWorkspaceLinksListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiManagementWorkspaceLinksListByServiceResponse = ApiManagementWorkspaceLinksListResult; + +// @public +export interface ApiManagementWorkspaceLinksListResult { + nextLink?: string; + value: ApiManagementWorkspaceLinksResource[]; +} + +// @public +export interface ApiManagementWorkspaceLinksProperties extends WorkspaceLinksBaseProperties { +} + +// @public +export interface ApiManagementWorkspaceLinksResource extends ProxyResource { + readonly etag?: string; + gateways?: WorkspaceLinksGateway[]; + workspaceId?: string; +} + +// @public +export type ApimIdentityType = string; + +// @public +export interface ApimResource { + readonly id?: string; + readonly name?: string; + tags?: { [propertyName: string]: string; }; readonly type?: string; @@ -1685,7 +2141,9 @@ export interface ApiSchema { // @public export interface ApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -2094,7 +2552,7 @@ export interface ArmIdWrapper { // @public export interface AssociationContract extends ProxyResource { - provisioningState?: "created"; + provisioningState?: ProvisioningState; } // @public @@ -2137,6 +2595,7 @@ export interface AuthorizationAccessPolicyCollection { // @public export interface AuthorizationAccessPolicyContract extends ProxyResource { + appIds?: string[]; objectId?: string; tenantId?: string; } @@ -2598,13 +3057,26 @@ export interface BackendAuthorizationHeaderCredentials { // @public export interface BackendBaseParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; +} + +// @public (undocumented) +export interface BackendBaseParametersPool extends BackendPool { +} + +// @public +export interface BackendCircuitBreaker { + rules?: CircuitBreakerRule[]; } // @public @@ -2614,16 +3086,25 @@ export interface BackendCollection { value?: BackendContract[]; } +// @public +export interface BackendConfiguration { + subnet?: BackendSubnetConfiguration; +} + // @public export interface BackendContract extends ProxyResource { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + typePropertiesType?: BackendType; url?: string; } @@ -2704,6 +3185,18 @@ export interface BackendListByServiceOptionalParams extends coreClient.Operation // @public export type BackendListByServiceResponse = BackendCollection; +// @public +export interface BackendPool { + services?: BackendPoolItem[]; +} + +// @public +export interface BackendPoolItem { + id: string; + priority?: number; + weight?: number; +} + // @public export interface BackendProperties { serviceFabricCluster?: BackendServiceFabricClusterProperties; @@ -2739,12 +3232,20 @@ export interface BackendServiceFabricClusterProperties { serverX509Names?: X509CertificateName[]; } +// @public +export interface BackendSubnetConfiguration { + id?: string; +} + // @public export interface BackendTlsProperties { validateCertificateChain?: boolean; validateCertificateName?: boolean; } +// @public +export type BackendType = string; + // @public export interface BackendUpdateHeaders { eTag?: string; @@ -2762,14 +3263,18 @@ export interface BackendUpdateParameterProperties extends BackendBaseParameters // @public export interface BackendUpdateParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; + // (undocumented) + pool?: BackendBaseParametersPool; properties?: BackendProperties; protocol?: BackendProtocol; proxy?: BackendProxyContract; resourceId?: string; title?: string; tls?: BackendTlsProperties; + type?: BackendType; url?: string; } @@ -3017,6 +3522,23 @@ export type CertificateSource = string; // @public export type CertificateStatus = string; +// @public +export interface CircuitBreakerFailureCondition { + count?: number; + errorReasons?: string[]; + interval?: string; + percentage?: number; + statusCodeRanges?: FailureStatusCodeRange[]; +} + +// @public +export interface CircuitBreakerRule { + acceptRetryAfter?: boolean; + failureCondition?: CircuitBreakerFailureCondition; + name?: string; + tripDuration?: string; +} + // @public export type ClientAuthenticationMethod = string; @@ -3025,6 +3547,11 @@ export interface ClientSecretContract { clientSecret?: string; } +// @public +export interface ConfigurationApi { + legacyApi?: LegacyApiState; +} + // @public export type ConfigurationIdName = string; @@ -3392,6 +3919,9 @@ export interface DeployConfigurationParameters { force?: boolean; } +// @public +export type DeveloperPortalStatus = string; + // @public export interface Diagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; @@ -3481,6 +4011,20 @@ export interface DiagnosticListByServiceOptionalParams extends coreClient.Operat // @public export type DiagnosticListByServiceResponse = DiagnosticCollection; +// @public +export interface DiagnosticUpdateContract extends ProxyResource { + alwaysLog?: AlwaysLog; + backend?: PipelineDiagnosticSettings; + frontend?: PipelineDiagnosticSettings; + httpCorrelationProtocol?: HttpCorrelationProtocol; + logClientIp?: boolean; + loggerId?: string; + metrics?: boolean; + operationNameFormat?: OperationNameFormat; + sampling?: SamplingSettings; + verbosity?: Verbosity; +} + // @public export interface DiagnosticUpdateHeaders { eTag?: string; @@ -3711,6 +4255,21 @@ export interface EndpointDetail { region?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorFieldContract { code?: string; @@ -3720,6 +4279,11 @@ export interface ErrorFieldContract { // @public export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface ErrorResponseAutoGenerated { code?: string; details?: ErrorFieldContract[]; message?: string; @@ -3741,6 +4305,17 @@ export type ExportFormat = string; // @public export type ExportResultFormat = string; +// @public +export interface FailureStatusCodeRange { + max?: number; + min?: number; +} + +// @public +export interface FrontendConfiguration { + readonly defaultHostname?: string; +} + // @public export interface Gateway { createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; @@ -3748,8 +4323,11 @@ export interface Gateway { generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, options?: GatewayGenerateTokenOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetEntityTagOptionalParams): Promise; + invalidateDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayInvalidateDebugCredentialsOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; + listDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListDebugCredentialsContract, options?: GatewayListDebugCredentialsOptionalParams): Promise; listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): Promise; + listTrace(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListTraceContract, options?: GatewayListTraceOptionalParams): Promise; regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, options?: GatewayRegenerateKeyOptionalParams): Promise; update(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, parameters: GatewayContract, options?: GatewayUpdateOptionalParams): Promise; } @@ -3888,6 +4466,11 @@ export interface GatewayCollection { readonly value?: GatewayContract[]; } +// @public +export interface GatewayConfigurationApi { + readonly hostname?: string; +} + // @public export interface GatewayContract extends ProxyResource { description?: string; @@ -3907,6 +4490,11 @@ export interface GatewayCreateOrUpdateOptionalParams extends coreClient.Operatio // @public export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; +// @public +export interface GatewayDebugCredentialsContract { + token?: string; +} + // @public export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { } @@ -4025,6 +4613,10 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams extends // @public export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +// @public +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + // @public export interface GatewayKeyRegenerationRequestContract { keyType: KeyType_2; @@ -4053,6 +4645,23 @@ export interface GatewayListByServiceOptionalParams extends coreClient.Operation // @public export type GatewayListByServiceResponse = GatewayCollection; +// @public +export interface GatewayListDebugCredentialsContract { + apiId: string; + credentialsExpireAfter?: string; + purposes: GatewayListDebugCredentialsContractPurpose[]; +} + +// @public +export type GatewayListDebugCredentialsContractPurpose = string; + +// @public +export interface GatewayListDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListDebugCredentialsResponse = GatewayDebugCredentialsContract; + // @public export interface GatewayListKeysHeaders { eTag?: string; @@ -4065,10 +4674,53 @@ export interface GatewayListKeysOptionalParams extends coreClient.OperationOptio // @public export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; +// @public +export interface GatewayListTraceContract { + traceId?: string; +} + +// @public +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListTraceResponse = { + [propertyName: string]: any; +}; + // @public export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { } +// @public +export interface GatewayResourceSkuResult { + readonly capacity?: GatewaySkuCapacity; + readonly resourceType?: string; + readonly sku?: GatewaySku; +} + +// @public +export interface GatewayResourceSkuResults { + nextLink?: string; + value: GatewayResourceSkuResult[]; +} + +// @public +export interface GatewaySku { + name?: SkuType; +} + +// @public +export interface GatewaySkuCapacity { + readonly default?: number; + readonly maximum?: number; + readonly minimum?: number; + readonly scaleType?: GatewaySkuCapacityScaleType; +} + +// @public +export type GatewaySkuCapacityScaleType = string; + // @public export interface GatewayTokenContract { value?: string; @@ -4121,13 +4773,16 @@ export interface GlobalSchemaCollection { export interface GlobalSchemaContract extends ProxyResource { description?: string; document?: Record; + readonly provisioningState?: string; schemaType?: SchemaType; value?: any; } // @public export interface GlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -4848,6 +5503,9 @@ export interface KeyVaultLastAccessStatusContractProperties { timeStampUtc?: Date; } +// @public +export type KeyVaultRefreshState = string; + // @public export enum KnownAccessIdName { Access = "access", @@ -4877,7 +5535,9 @@ export enum KnownApimIdentityType { // @public export enum KnownApiType { Graphql = "graphql", + Grpc = "grpc", Http = "http", + Odata = "odata", Soap = "soap", Websocket = "websocket" } @@ -4906,6 +5566,12 @@ export enum KnownBackendProtocol { Soap = "soap" } +// @public +export enum KnownBackendType { + Pool = "Pool", + Single = "Single" +} + // @public export enum KnownBearerTokenSendingMethod { AuthorizationHeader = "authorizationHeader", @@ -4981,6 +5647,10 @@ export enum KnownConnectivityStatusType { // @public export enum KnownContentFormat { GraphqlLink = "graphql-link", + Grpc = "grpc", + GrpcLink = "grpc-link", + Odata = "odata", + OdataLink = "odata-link", Openapi = "openapi", OpenapiJson = "openapi+json", OpenapiJsonLink = "openapi+json-link", @@ -5007,6 +5677,12 @@ export enum KnownDataMaskingMode { Mask = "Mask" } +// @public +export enum KnownDeveloperPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownExportApi { True = "true" @@ -5029,6 +5705,18 @@ export enum KnownExportResultFormat { Wsdl = "wsdl-link+xml" } +// @public +export enum KnownGatewayListDebugCredentialsContractPurpose { + Tracing = "tracing" +} + +// @public +export enum KnownGatewaySkuCapacityScaleType { + Automatic = "Automatic", + Manual = "Manual", + None = "None" +} + // @public export enum KnownGrantType { AuthorizationCode = "authorizationCode", @@ -5039,6 +5727,7 @@ export enum KnownGrantType { // @public export enum KnownHostnameType { + ConfigurationApi = "ConfigurationApi", DeveloperPortal = "DeveloperPortal", Management = "Management", Portal = "Portal", @@ -5076,6 +5765,24 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } +// @public +export enum KnownKeyVaultRefreshState { + False = "false", + True = "true" +} + +// @public +export enum KnownLegacyApiState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownLegacyPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownLoggerType { ApplicationInsights = "applicationInsights", @@ -5089,6 +5796,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownMigrateToStv2Mode { + NewIP = "NewIP", + PreserveIp = "PreserveIp" +} + // @public export enum KnownNatGatewayState { Disabled = "Disabled", @@ -5130,9 +5843,17 @@ export enum KnownPlatformVersion { Mtv1 = "mtv1", Stv1 = "stv1", Stv2 = "stv2", + Stv21 = "stv2.1", Undetermined = "undetermined" } +// @public +export enum KnownPolicyComplianceState { + Compliant = "Compliant", + NonCompliant = "NonCompliant", + Pending = "Pending" +} + // @public export enum KnownPolicyContentFormat { Rawxml = "rawxml", @@ -5158,6 +5879,12 @@ export enum KnownPolicyIdName { Policy = "policy" } +// @public +export enum KnownPolicyRestrictionRequireBase { + False = "false", + True = "true" +} + // @public export enum KnownPortalRevisionStatus { Completed = "completed", @@ -5201,6 +5928,18 @@ export enum KnownProtocol { Wss = "wss" } +// @public +export enum KnownProvisioningState { + Activating = "Activating", + Canceled = "Canceled", + Created = "created", + Failed = "Failed", + Succeeded = "Succeeded", + Terminating = "Terminating", + Updating = "Updating", + Upgrading = "Upgrading" +} + // @public export enum KnownPublicNetworkAccess { Disabled = "Disabled", @@ -5238,17 +5977,16 @@ export enum KnownSeverity { // @public export enum KnownSkuType { - Basic = "Basic", - Consumption = "Consumption", - Developer = "Developer", - Isolated = "Isolated", - Premium = "Premium", - Standard = "Standard" + Standard = "Standard", + WorkspaceGatewayPremium = "WorkspaceGatewayPremium", + WorkspaceGatewayStandard = "WorkspaceGatewayStandard" } // @public export enum KnownSoapApiType { GraphQL = "graphql", + GRPC = "grpc", + OData = "odata", SoapPassThrough = "soap", SoapToRest = "http", WebSocket = "websocket" @@ -5316,6 +6054,12 @@ export enum KnownVirtualNetworkType { None = "None" } +// @public +export type LegacyApiState = string; + +// @public +export type LegacyPortalStatus = string; + // @public export interface Logger { createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; @@ -5430,6 +6174,14 @@ export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; // @public export type Method = string; +// @public +export interface MigrateToStv2Contract { + mode?: MigrateToStv2Mode; +} + +// @public +export type MigrateToStv2Mode = string; + // @public export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; @@ -5459,6 +6211,7 @@ export interface NamedValueCollection { export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; secret?: boolean; tags?: string[]; value?: string; @@ -5468,6 +6221,7 @@ export interface NamedValueContract extends ProxyResource { export interface NamedValueContractProperties extends NamedValueEntityBaseParameters { displayName: string; keyVault?: KeyVaultContractProperties; + readonly provisioningState?: string; value?: string; } @@ -5489,7 +6243,9 @@ export interface NamedValueCreateContractProperties extends NamedValueEntityBase // @public export interface NamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6014,6 +6770,48 @@ export interface OperationResultLogItemContract { objectType?: string; } +// @public +export interface OperationsResults { + get(location: string, operationId: string, options?: OperationsResultsGetOptionalParams): Promise; +} + +// @public +export interface OperationsResultsGetHeaders { + location?: string; +} + +// @public +export interface OperationsResultsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsResultsGetResponse = OperationsResultsGetHeaders; + +// @public +export interface OperationStatus { + get(location: string, operationId: string, options?: OperationStatusGetOptionalParams): Promise; +} + +// @public +export interface OperationStatusGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationStatusGetResponse = OperationStatusResult; + +// @public +export interface OperationStatusResult { + endTime?: Date; + error?: ErrorDetail; + id?: string; + name?: string; + operations?: OperationStatusResult[]; + percentComplete?: number; + readonly resourceId?: string; + startTime?: Date; + status: string; +} + // @public export interface OperationTagResourceContractProperties { readonly apiName?: string; @@ -6119,7 +6917,7 @@ export interface Policy { delete(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, ifMatch: string, options?: PolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6129,6 +6927,9 @@ export interface PolicyCollection { value?: PolicyContract[]; } +// @public +export type PolicyComplianceState = string; + // @public export type PolicyContentFormat = string; @@ -6190,7 +6991,7 @@ export interface PolicyFragment { delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; } @@ -6208,12 +7009,15 @@ export type PolicyFragmentContentFormat = string; export interface PolicyFragmentContract extends ProxyResource { description?: string; format?: PolicyFragmentContentFormat; + readonly provisioningState?: string; value?: string; } // @public export interface PolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6255,6 +7059,13 @@ export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOpt // @public export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; +// @public +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + // @public export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; @@ -6303,6 +7114,13 @@ export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; // @public export type PolicyIdName = string; +// @public +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyListByServiceNextResponse = PolicyCollection; + // @public export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6311,14 +7129,146 @@ export interface PolicyListByServiceOptionalParams extends coreClient.OperationO export type PolicyListByServiceResponse = PolicyCollection; // @public -export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; +export interface PolicyRestriction { + createOrUpdate(resourceGroupName: string, serviceName: string, policyRestrictionId: string, parameters: PolicyRestrictionContract, options?: PolicyRestrictionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, policyRestrictionId: string, options?: PolicyRestrictionGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, policyRestrictionId: string, ifMatch: string, parameters: PolicyRestrictionUpdateContract, options?: PolicyRestrictionUpdateOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionCollection { + nextLink?: string; + // (undocumented) + value?: PolicyRestrictionContract[]; +} + +// @public +export interface PolicyRestrictionContract extends ProxyResource { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type PolicyRestrictionCreateOrUpdateResponse = PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionDeleteOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetEntityTagResponse = PolicyRestrictionGetEntityTagHeaders; + +// @public +export interface PolicyRestrictionGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceNextResponse = PolicyRestrictionCollection; + +// @public +export interface PolicyRestrictionListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionListByServiceResponse = PolicyRestrictionCollection; + +// @public +export type PolicyRestrictionRequireBase = string; + +// @public +export interface PolicyRestrictionUpdateContract { + requireBase?: PolicyRestrictionRequireBase; + scope?: string; +} + +// @public +export interface PolicyRestrictionUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & PolicyRestrictionContract; + +// @public +export interface PolicyRestrictionValidations { + beginByService(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise, PolicyRestrictionValidationsByServiceResponse>>; + beginByServiceAndWait(resourceGroupName: string, serviceName: string, options?: PolicyRestrictionValidationsByServiceOptionalParams): Promise; +} + +// @public +export interface PolicyRestrictionValidationsByServiceHeaders { + location?: string; +} + +// @public +export interface PolicyRestrictionValidationsByServiceOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyRestrictionValidationsByServiceResponse = OperationResultContract; + +// @public +export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; + +// @public +export interface PolicyWithComplianceCollection { + nextLink?: string; + value?: PolicyWithComplianceContract[]; +} + +// @public +export interface PolicyWithComplianceContract extends ProxyResource { + complianceState?: PolicyComplianceState; + referencePolicyId?: string; +} // @public export interface PortalConfig { createOrUpdate(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; } @@ -6391,6 +7341,13 @@ export interface PortalConfigGetOptionalParams extends coreClient.OperationOptio // @public export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; +// @public +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; + // @public export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6451,6 +7408,7 @@ export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; + readonly provisioningState?: string; readonly status?: PortalRevisionStatus; readonly statusDetails?: string; readonly updatedDateTime?: Date; @@ -6458,7 +7416,9 @@ export interface PortalRevisionContract extends ProxyResource { // @public export interface PortalRevisionCreateOrUpdateHeaders { + azureAsyncOperation?: string; eTag?: string; + location?: string; } // @public @@ -6590,6 +7550,11 @@ export interface PrivateEndpointConnection extends Resource { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } +// @public +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6599,6 +7564,11 @@ export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends c // @public export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionDeleteHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6725,6 +7695,66 @@ export type ProductApiCreateOrUpdateResponse = ApiContract; export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: ProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductApiLinkCollection { + count?: number; + nextLink?: string; + value?: ProductApiLinkContract[]; +} + +// @public +export interface ProductApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface ProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; + // @public export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { } @@ -6845,6 +7875,66 @@ export type ProductGroupCreateOrUpdateResponse = GroupContract; 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 { } @@ -6905,7 +7995,7 @@ export interface ProductPolicy { delete(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: ProductPolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetEntityTagOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6950,6 +8040,13 @@ export interface ProductPolicyGetOptionalParams extends coreClient.OperationOpti // @public export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +// @public +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductPolicyListByProductNextResponse = PolicyCollection; + // @public export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { } @@ -7113,6 +8210,9 @@ export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; // @public export type Protocol = string; +// @public +export type ProvisioningState = string; + // @public export interface ProxyResource extends Resource { } @@ -7625,6 +8725,7 @@ export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; + readonly provisioningState?: string; value?: string; } @@ -7944,6 +9045,66 @@ export interface Tag { update(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: TagUpdateOptionalParams): Promise; } +// @public +export interface TagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: TagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagApiLinkCollection { + count?: number; + nextLink?: string; + value?: TagApiLinkContract[]; +} + +// @public +export interface TagApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagApiLinkListByProductResponse = TagApiLinkCollection; + // @public export interface TagAssignToApiHeaders { eTag?: string; @@ -8218,40 +9379,160 @@ export interface TagListByServiceOptionalParams extends coreClient.OperationOpti export type TagListByServiceResponse = TagCollection; // @public -export interface TagResource { - listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; +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 TagResourceCollection { +export interface TagOperationLinkCollection { count?: number; nextLink?: string; - value?: TagResourceContract[]; + value?: TagOperationLinkContract[]; } // @public -export interface TagResourceContract { - api?: ApiTagResourceContractProperties; - operation?: OperationTagResourceContractProperties; - product?: ProductTagResourceContractProperties; - tag: TagResourceContractProperties; +export interface TagOperationLinkContract extends ProxyResource { + operationId?: string; } // @public -export interface TagResourceContractProperties { - id?: string; - name?: string; +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions { -} +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; // @public -export type TagResourceListByServiceNextResponse = TagResourceCollection; +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} // @public -export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { +export interface TagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface TagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: TagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagProductLinkCollection { + count?: number; + nextLink?: string; + value?: TagProductLinkContract[]; +} + +// @public +export interface TagProductLinkContract extends ProxyResource { + productId?: string; +} + +// @public +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagProductLinkListByProductResponse = TagProductLinkCollection; + +// @public +export interface TagResource { + listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagResourceCollection { + count?: number; + nextLink?: string; + value?: TagResourceContract[]; +} + +// @public +export interface TagResourceContract { + api?: ApiTagResourceContractProperties; + operation?: OperationTagResourceContractProperties; + product?: ProductTagResourceContractProperties; + tag: TagResourceContractProperties; +} + +// @public +export interface TagResourceContractProperties { + id?: string; + name?: string; +} + +// @public +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagResourceListByServiceNextResponse = TagResourceCollection; + +// @public +export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; @@ -8395,6 +9676,12 @@ export interface TenantConfiguration { getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } +// @public +export interface TenantConfigurationDeployHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8411,6 +9698,12 @@ export interface TenantConfigurationGetSyncStateOptionalParams extends coreClien // @public export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; +// @public +export interface TenantConfigurationSaveHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8432,6 +9725,12 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { syncDate?: Date; } +// @public +export interface TenantConfigurationValidateHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8505,8 +9804,9 @@ export type TranslateRequiredQueryParametersConduct = string; // @public export interface User { + beginDelete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise, UserDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: UserCreateParameters, options?: UserCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: UserDeleteOptionalParams): Promise; generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options?: UserGenerateSsoUrlOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options?: UserGetEntityTagOptionalParams): Promise; @@ -8590,13 +9890,24 @@ export interface UserCreateParameters { state?: UserState; } +// @public +export interface UserDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + // @public export interface UserDeleteOptionalParams extends coreClient.OperationOptions { appType?: AppType; deleteSubscriptions?: boolean; notify?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type UserDeleteResponse = UserDeleteHeaders; + // @public export interface UserEntityBaseParameters { identities?: UserIdentityContract[]; @@ -8837,6 +10148,2218 @@ export interface WikiUpdateContract { documents?: WikiDocumentationContract[]; } +// @public +export interface Workspace { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, parameters: WorkspaceContract, options?: WorkspaceCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, options?: WorkspaceDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: WorkspaceListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, parameters: WorkspaceContract, options?: WorkspaceUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApi { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise, WorkspaceApiCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, options?: WorkspaceApiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, parameters: ApiUpdateContract, options?: WorkspaceApiUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { + deleteRevisions?: boolean; +} + +// @public +export interface WorkspaceApiDiagnostic { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, parameters: DiagnosticContract, options?: WorkspaceApiDiagnosticCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, ifMatch: string, options?: WorkspaceApiDiagnosticDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, options?: WorkspaceApiDiagnosticGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, options?: WorkspaceApiDiagnosticGetEntityTagOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticUpdateContract, options?: WorkspaceApiDiagnosticUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiDiagnosticCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiDiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiDiagnosticCreateOrUpdateResponse = WorkspaceApiDiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +// @public +export interface WorkspaceApiDiagnosticDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiDiagnosticGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiDiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiDiagnosticGetEntityTagResponse = WorkspaceApiDiagnosticGetEntityTagHeaders; + +// @public +export interface WorkspaceApiDiagnosticGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiDiagnosticGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiDiagnosticGetResponse = WorkspaceApiDiagnosticGetHeaders & DiagnosticContract; + +// @public +export interface WorkspaceApiDiagnosticListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiDiagnosticListByWorkspaceNextResponse = DiagnosticCollection; + +// @public +export interface WorkspaceApiDiagnosticListByWorkspaceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiDiagnosticListByWorkspaceResponse = DiagnosticCollection; + +// @public +export interface WorkspaceApiDiagnosticUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiDiagnosticUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiDiagnosticUpdateResponse = WorkspaceApiDiagnosticUpdateHeaders & DiagnosticContract; + +// @public +export interface WorkspaceApiExport { + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, format: ExportFormat, exportParam: ExportApi, options?: WorkspaceApiExportGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiExportGetResponse = ApiExportResult; + +// @public +export interface WorkspaceApiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; + +// @public +export interface WorkspaceApiGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +// @public +export interface WorkspaceApiListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiListByServiceNextResponse = ApiCollection; + +// @public +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + expandApiVersionSet?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiListByServiceResponse = ApiCollection; + +// @public +export interface WorkspaceApiOperation { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, parameters: OperationContract, options?: WorkspaceApiOperationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, options?: WorkspaceApiOperationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiOperationListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, parameters: OperationUpdateContract, options?: WorkspaceApiOperationUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiOperationListByApiResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiOperationPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams): Promise; + listByOperation(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationPolicyListByOperationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiPolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceApiRelease { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, options?: WorkspaceApiReleaseDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiReleaseListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; + +// @public +export interface WorkspaceApiReleaseGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiRevision { + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, ifMatch: string, options?: WorkspaceApiSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiSchemaListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceApiSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +// @public +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; + +// @public +export interface WorkspaceApiUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiVersionSet { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, parameters: ApiVersionSetContract, options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, options?: WorkspaceApiVersionSetDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiVersionSetListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, options?: WorkspaceApiVersionSetUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; + +// @public +export interface WorkspaceApiVersionSetGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceBackend { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, backendId: string, parameters: BackendContract, options?: WorkspaceBackendCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, backendId: string, ifMatch: string, options?: WorkspaceBackendDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, backendId: string, options?: WorkspaceBackendGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, backendId: string, options?: WorkspaceBackendGetEntityTagOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceBackendListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: WorkspaceBackendUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceBackendCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceBackendCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceBackendCreateOrUpdateResponse = WorkspaceBackendCreateOrUpdateHeaders & BackendContract; + +// @public +export interface WorkspaceBackendDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceBackendGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceBackendGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceBackendGetEntityTagResponse = WorkspaceBackendGetEntityTagHeaders; + +// @public +export interface WorkspaceBackendGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceBackendGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceBackendGetResponse = WorkspaceBackendGetHeaders & BackendContract; + +// @public +export interface WorkspaceBackendListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceBackendListByWorkspaceNextResponse = BackendCollection; + +// @public +export interface WorkspaceBackendListByWorkspaceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceBackendListByWorkspaceResponse = BackendCollection; + +// @public +export interface WorkspaceBackendUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceBackendUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceBackendUpdateResponse = WorkspaceBackendUpdateHeaders & BackendContract; + +// @public +export interface WorkspaceCertificate { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, options?: WorkspaceCertificateCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, certificateId: string, ifMatch: string, options?: WorkspaceCertificateDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, certificateId: string, options?: WorkspaceCertificateGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, certificateId: string, options?: WorkspaceCertificateGetEntityTagOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceCertificateListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + refreshSecret(resourceGroupName: string, serviceName: string, workspaceId: string, certificateId: string, options?: WorkspaceCertificateRefreshSecretOptionalParams): Promise; +} + +// @public +export interface WorkspaceCertificateCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCertificateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceCertificateCreateOrUpdateResponse = WorkspaceCertificateCreateOrUpdateHeaders & CertificateContract; + +// @public +export interface WorkspaceCertificateDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceCertificateGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCertificateGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceCertificateGetEntityTagResponse = WorkspaceCertificateGetEntityTagHeaders; + +// @public +export interface WorkspaceCertificateGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCertificateGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceCertificateGetResponse = WorkspaceCertificateGetHeaders & CertificateContract; + +// @public +export interface WorkspaceCertificateListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceCertificateListByWorkspaceNextResponse = CertificateCollection; + +// @public +export interface WorkspaceCertificateListByWorkspaceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: boolean; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceCertificateListByWorkspaceResponse = CertificateCollection; + +// @public +export interface WorkspaceCertificateRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCertificateRefreshSecretOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceCertificateRefreshSecretResponse = WorkspaceCertificateRefreshSecretHeaders & CertificateContract; + +// @public +export interface WorkspaceCollection { + count?: number; + nextLink?: string; + value?: WorkspaceContract[]; +} + +// @public +export interface WorkspaceContract extends ProxyResource { + description?: string; + displayName?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & WorkspaceContract; + +// @public +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceDiagnostic { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, parameters: DiagnosticContract, options?: WorkspaceDiagnosticCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, ifMatch: string, options?: WorkspaceDiagnosticDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, options?: WorkspaceDiagnosticGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, options?: WorkspaceDiagnosticGetEntityTagOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceDiagnosticListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, diagnosticId: string, ifMatch: string, parameters: DiagnosticUpdateContract, options?: WorkspaceDiagnosticUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceDiagnosticCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceDiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceDiagnosticCreateOrUpdateResponse = WorkspaceDiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +// @public +export interface WorkspaceDiagnosticDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceDiagnosticGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceDiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceDiagnosticGetEntityTagResponse = WorkspaceDiagnosticGetEntityTagHeaders; + +// @public +export interface WorkspaceDiagnosticGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceDiagnosticGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceDiagnosticGetResponse = WorkspaceDiagnosticGetHeaders & DiagnosticContract; + +// @public +export interface WorkspaceDiagnosticListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceDiagnosticListByWorkspaceNextResponse = DiagnosticCollection; + +// @public +export interface WorkspaceDiagnosticListByWorkspaceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceDiagnosticListByWorkspaceResponse = DiagnosticCollection; + +// @public +export interface WorkspaceDiagnosticUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceDiagnosticUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceDiagnosticUpdateResponse = WorkspaceDiagnosticUpdateHeaders & DiagnosticContract; + +// @public +export interface WorkspaceGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; + +// @public +export interface WorkspaceGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; + +// @public +export interface WorkspaceGlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceGlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, ifMatch: string, options?: WorkspaceGlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceGlobalSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGroup { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, parameters: GroupCreateParameters, options?: WorkspaceGroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, options?: WorkspaceGroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGroupListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: WorkspaceGroupUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; + +// @public +export interface WorkspaceGroupGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & GroupContract; + +// @public +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; + +// @public +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupListByServiceResponse = GroupCollection; + +// @public +export interface WorkspaceGroupUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCheckEntityExistsOptionalParams): Promise; + create(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCreateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserDeleteOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupUserListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCreateResponse = UserContract; + +// @public +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserListNextResponse = UserCollection; + +// @public +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupUserListResponse = UserCollection; + +// @public (undocumented) +export interface WorkspaceLinksBaseProperties { + gateways?: WorkspaceLinksGateway[]; + workspaceId?: string; +} + +// @public (undocumented) +export interface WorkspaceLinksGateway { + id?: string; +} + +// @public +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; + +// @public +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceListByServiceResponse = WorkspaceCollection; + +// @public +export interface WorkspaceLogger { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, loggerId: string, parameters: LoggerContract, options?: WorkspaceLoggerCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, loggerId: string, ifMatch: string, options?: WorkspaceLoggerDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, loggerId: string, options?: WorkspaceLoggerGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, loggerId: string, options?: WorkspaceLoggerGetEntityTagOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceLoggerListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, options?: WorkspaceLoggerUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceLoggerCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceLoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceLoggerCreateOrUpdateResponse = WorkspaceLoggerCreateOrUpdateHeaders & LoggerContract; + +// @public +export interface WorkspaceLoggerDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceLoggerGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceLoggerGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceLoggerGetEntityTagResponse = WorkspaceLoggerGetEntityTagHeaders; + +// @public +export interface WorkspaceLoggerGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceLoggerGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceLoggerGetResponse = WorkspaceLoggerGetHeaders & LoggerContract; + +// @public +export interface WorkspaceLoggerListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceLoggerListByWorkspaceNextResponse = LoggerCollection; + +// @public +export interface WorkspaceLoggerListByWorkspaceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceLoggerListByWorkspaceResponse = LoggerCollection; + +// @public +export interface WorkspaceLoggerUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceLoggerUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceLoggerUpdateResponse = WorkspaceLoggerUpdateHeaders & LoggerContract; + +// @public +export interface WorkspaceNamedValue { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise, WorkspaceNamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise; + beginRefreshSecret(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise, WorkspaceNamedValueRefreshSecretResponse>>; + beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise, WorkspaceNamedValueUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, options?: WorkspaceNamedValueDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; + listValue(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueListValueOptionalParams): Promise; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNamedValueGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; + +// @public +export interface WorkspaceNamedValueGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: KeyVaultRefreshState; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListValueHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; + +// @public +export interface WorkspaceNamedValueRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNotification { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationGetResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationRecipientEmail { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +// @public +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; + +// @public +export interface WorkspaceNotificationRecipientUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; + +// @public +export interface WorkspacePolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspacePolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspacePolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise, WorkspacePolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, ifMatch: string, options?: WorkspacePolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; + listReferences(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + azureAsyncOperation?: string; + eTag?: string; + location?: string; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; + +// @public +export interface WorkspacePolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceProduct { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, parameters: ProductContract, options?: WorkspaceProductCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, options?: WorkspaceProductDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceProductListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: WorkspaceProductUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} + +// @public +export interface WorkspaceProductGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; + +// @public +export interface WorkspaceProductGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & ProductContract; + +// @public +export interface WorkspaceProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductListByServiceNextResponse = ProductCollection; + +// @public +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceProductListByServiceResponse = ProductCollection; + +// @public +export interface WorkspaceProductPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceProductPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetEntityTagOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductPolicyListByProductOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceProductPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + +// @public +export interface WorkspaceProductUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceSubscription { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, parameters: SubscriptionCreateParameters, options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, options?: WorkspaceSubscriptionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetEntityTagOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceSubscriptionListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: WorkspaceSubscriptionUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + ifMatch?: string; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; + +// @public +export interface WorkspaceSubscriptionGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListSecretsHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; + +// @public +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceTag { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, options?: WorkspaceTagDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetOptionalParams): Promise; + getEntityState(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetEntityStateOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceTagListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceTagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & TagContract; + +// @public +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagGetEntityStateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; + +// @public +export interface WorkspaceTagGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; + +// @public +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagListByServiceNextResponse = TagCollection; + +// @public +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + scope?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagListByServiceResponse = TagCollection; + +// @public +export interface WorkspaceTagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & TagContract; + +// @public +export interface WorkspaceUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & WorkspaceContract; + // @public export interface X509CertificateName { issuerCertificateThumbprint?: string; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 7907189618aa..b7fcbe7418b7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -11,16 +11,19 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "./lroImpl"; import { + AllPoliciesImpl, + ApiManagementGatewayImpl, + ApiManagementGatewaySkusImpl, ApiImpl, ApiRevisionImpl, ApiReleaseImpl, @@ -42,11 +45,11 @@ import { ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, - AuthorizationServerImpl, AuthorizationProviderImpl, AuthorizationImpl, AuthorizationLoginLinksImpl, AuthorizationAccessPolicyImpl, + AuthorizationServerImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -57,11 +60,13 @@ import { ApiManagementServiceSkusImpl, ApiManagementServiceImpl, DiagnosticImpl, + DocumentationImpl, EmailTemplateImpl, GatewayImpl, GatewayHostnameConfigurationImpl, GatewayApiImpl, GatewayCertificateAuthorityImpl, + ApiManagementGatewayConfigConnectionImpl, GroupImpl, GroupUserImpl, IdentityProviderImpl, @@ -77,6 +82,8 @@ import { PolicyImpl, PolicyDescriptionImpl, PolicyFragmentImpl, + PolicyRestrictionImpl, + PolicyRestrictionValidationsImpl, PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, @@ -91,6 +98,8 @@ import { ProductPolicyImpl, ProductWikiImpl, ProductWikisImpl, + ProductApiLinkImpl, + ProductGroupLinkImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -100,6 +109,9 @@ import { ApiManagementSkusImpl, SubscriptionImpl, TagResourceImpl, + TagApiLinkImpl, + TagOperationLinkImpl, + TagProductLinkImpl, TenantAccessImpl, TenantAccessGitImpl, TenantConfigurationImpl, @@ -108,9 +120,48 @@ import { UserSubscriptionImpl, UserIdentitiesImpl, UserConfirmationPasswordImpl, - DocumentationImpl + WorkspaceBackendImpl, + WorkspaceCertificateImpl, + WorkspaceDiagnosticImpl, + WorkspaceApiDiagnosticImpl, + WorkspaceLoggerImpl, + ApiManagementWorkspaceLinksImpl, + ApiManagementWorkspaceLinkImpl, + 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, + OperationStatusImpl, + OperationsResultsImpl, } from "./operations"; import { + AllPolicies, + ApiManagementGateway, + ApiManagementGatewaySkus, Api, ApiRevision, ApiRelease, @@ -132,11 +183,11 @@ import { ApiWikis, ApiExport, ApiVersionSet, - AuthorizationServer, AuthorizationProvider, Authorization, AuthorizationLoginLinks, AuthorizationAccessPolicy, + AuthorizationServer, Backend, Cache, Certificate, @@ -147,11 +198,13 @@ import { ApiManagementServiceSkus, ApiManagementService, Diagnostic, + Documentation, EmailTemplate, Gateway, GatewayHostnameConfiguration, GatewayApi, GatewayCertificateAuthority, + ApiManagementGatewayConfigConnection, Group, GroupUser, IdentityProvider, @@ -167,6 +220,8 @@ import { Policy, PolicyDescription, PolicyFragment, + PolicyRestriction, + PolicyRestrictionValidations, PortalConfig, PortalRevision, PortalSettings, @@ -181,6 +236,8 @@ import { ProductPolicy, ProductWiki, ProductWikis, + ProductApiLink, + ProductGroupLink, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -190,6 +247,9 @@ import { ApiManagementSkus, Subscription, TagResource, + TagApiLink, + TagOperationLink, + TagProductLink, TenantAccess, TenantAccessGit, TenantConfiguration, @@ -198,7 +258,43 @@ import { UserSubscription, UserIdentities, UserConfirmationPassword, - Documentation + WorkspaceBackend, + WorkspaceCertificate, + WorkspaceDiagnostic, + WorkspaceApiDiagnostic, + WorkspaceLogger, + ApiManagementWorkspaceLinks, + ApiManagementWorkspaceLink, + 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, + OperationStatus, + OperationsResults, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -206,7 +302,7 @@ import { ApiManagementClientOptionalParams, ConnectivityCheckRequest, PerformConnectivityCheckAsyncOptionalParams, - PerformConnectivityCheckAsyncResponse + PerformConnectivityCheckAsyncResponse, } from "./models"; export class ApiManagementClient extends coreClient.ServiceClient { @@ -217,22 +313,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ApiManagementClientOptionalParams | string, - options?: ApiManagementClientOptionalParams + options?: ApiManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -252,10 +348,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { } const defaults: ApiManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; + const packageDetails = `azsdk-js-arm-apimanagement/10.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,20 +361,21 @@ export class ApiManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -288,7 +385,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -298,9 +395,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -308,7 +405,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-08-01"; + this.apiVersion = options.apiVersion || "2023-09-01-preview"; + this.allPolicies = new AllPoliciesImpl(this); + this.apiManagementGateway = new ApiManagementGatewayImpl(this); + this.apiManagementGatewaySkus = new ApiManagementGatewaySkusImpl(this); this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); @@ -330,11 +430,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); - this.authorizationServer = new AuthorizationServerImpl(this); this.authorizationProvider = new AuthorizationProviderImpl(this); this.authorization = new AuthorizationImpl(this); this.authorizationLoginLinks = new AuthorizationLoginLinksImpl(this); this.authorizationAccessPolicy = new AuthorizationAccessPolicyImpl(this); + this.authorizationServer = new AuthorizationServerImpl(this); this.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -345,15 +445,18 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementServiceSkus = new ApiManagementServiceSkusImpl(this); this.apiManagementService = new ApiManagementServiceImpl(this); this.diagnostic = new DiagnosticImpl(this); + this.documentation = new DocumentationImpl(this); this.emailTemplate = new EmailTemplateImpl(this); this.gateway = new GatewayImpl(this); this.gatewayHostnameConfiguration = new GatewayHostnameConfigurationImpl( - this + this, ); this.gatewayApi = new GatewayApiImpl(this); this.gatewayCertificateAuthority = new GatewayCertificateAuthorityImpl( - this + this, ); + this.apiManagementGatewayConfigConnection = + new ApiManagementGatewayConfigConnectionImpl(this); this.group = new GroupImpl(this); this.groupUser = new GroupUserImpl(this); this.identityProvider = new IdentityProviderImpl(this); @@ -365,21 +468,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.notificationRecipientUser = new NotificationRecipientUserImpl(this); this.notificationRecipientEmail = new NotificationRecipientEmailImpl(this); this.openIdConnectProvider = new OpenIdConnectProviderImpl(this); - this.outboundNetworkDependenciesEndpoints = new OutboundNetworkDependenciesEndpointsImpl( - this - ); + this.outboundNetworkDependenciesEndpoints = + new OutboundNetworkDependenciesEndpointsImpl(this); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); this.policyFragment = new PolicyFragmentImpl(this); + this.policyRestriction = new PolicyRestrictionImpl(this); + this.policyRestrictionValidations = new PolicyRestrictionValidationsImpl( + this, + ); this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); this.signUpSettings = new SignUpSettingsImpl(this); this.delegationSettings = new DelegationSettingsImpl(this); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this - ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.product = new ProductImpl(this); this.productApi = new ProductApiImpl(this); this.productGroup = new ProductGroupImpl(this); @@ -387,6 +492,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productPolicy = new ProductPolicyImpl(this); this.productWiki = new ProductWikiImpl(this); this.productWikis = new ProductWikisImpl(this); + this.productApiLink = new ProductApiLinkImpl(this); + this.productGroupLink = new ProductGroupLinkImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -396,6 +503,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementSkus = new ApiManagementSkusImpl(this); this.subscription = new SubscriptionImpl(this); this.tagResource = new TagResourceImpl(this); + this.tagApiLink = new TagApiLinkImpl(this); + this.tagOperationLink = new TagOperationLinkImpl(this); + this.tagProductLink = new TagProductLinkImpl(this); this.tenantAccess = new TenantAccessImpl(this); this.tenantAccessGit = new TenantAccessGitImpl(this); this.tenantConfiguration = new TenantConfigurationImpl(this); @@ -404,7 +514,49 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(this); - this.documentation = new DocumentationImpl(this); + this.workspaceBackend = new WorkspaceBackendImpl(this); + this.workspaceCertificate = new WorkspaceCertificateImpl(this); + this.workspaceDiagnostic = new WorkspaceDiagnosticImpl(this); + this.workspaceApiDiagnostic = new WorkspaceApiDiagnosticImpl(this); + this.workspaceLogger = new WorkspaceLoggerImpl(this); + this.apiManagementWorkspaceLinks = new ApiManagementWorkspaceLinksImpl( + this, + ); + this.apiManagementWorkspaceLink = new ApiManagementWorkspaceLinkImpl(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.operationStatus = new OperationStatusImpl(this); + this.operationsResults = new OperationsResultsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -417,7 +569,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -431,7 +583,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } @@ -448,7 +600,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -457,21 +609,20 @@ export class ApiManagementClient extends coreClient.ServiceClient { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -480,8 +631,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -489,8 +640,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -500,9 +651,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, }, - spec: performConnectivityCheckAsyncOperationSpec + spec: performConnectivityCheckAsyncOperationSpec, }); const poller = await createHttpPoller< PerformConnectivityCheckAsyncResponse, @@ -510,7 +661,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -528,17 +679,20 @@ export class ApiManagementClient extends coreClient.ServiceClient { resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, - options?: PerformConnectivityCheckAsyncOptionalParams + options?: PerformConnectivityCheckAsyncOptionalParams, ): Promise { const poller = await this.beginPerformConnectivityCheckAsync( resourceGroupName, serviceName, connectivityCheckRequestParams, - options + options, ); return poller.pollUntilDone(); } + allPolicies: AllPolicies; + apiManagementGateway: ApiManagementGateway; + apiManagementGatewaySkus: ApiManagementGatewaySkus; api: Api; apiRevision: ApiRevision; apiRelease: ApiRelease; @@ -560,11 +714,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; - authorizationServer: AuthorizationServer; authorizationProvider: AuthorizationProvider; authorization: Authorization; authorizationLoginLinks: AuthorizationLoginLinks; authorizationAccessPolicy: AuthorizationAccessPolicy; + authorizationServer: AuthorizationServer; backend: Backend; cache: Cache; certificate: Certificate; @@ -575,11 +729,13 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementServiceSkus: ApiManagementServiceSkus; apiManagementService: ApiManagementService; diagnostic: Diagnostic; + documentation: Documentation; emailTemplate: EmailTemplate; gateway: Gateway; gatewayHostnameConfiguration: GatewayHostnameConfiguration; gatewayApi: GatewayApi; gatewayCertificateAuthority: GatewayCertificateAuthority; + apiManagementGatewayConfigConnection: ApiManagementGatewayConfigConnection; group: Group; groupUser: GroupUser; identityProvider: IdentityProvider; @@ -595,6 +751,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { policy: Policy; policyDescription: PolicyDescription; policyFragment: PolicyFragment; + policyRestriction: PolicyRestriction; + policyRestrictionValidations: PolicyRestrictionValidations; portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; @@ -609,6 +767,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productPolicy: ProductPolicy; productWiki: ProductWiki; productWikis: ProductWikis; + productApiLink: ProductApiLink; + productGroupLink: ProductGroupLink; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -618,6 +778,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementSkus: ApiManagementSkus; subscription: Subscription; tagResource: TagResource; + tagApiLink: TagApiLink; + tagOperationLink: TagOperationLink; + tagProductLink: TagProductLink; tenantAccess: TenantAccess; tenantAccessGit: TenantAccessGit; tenantConfiguration: TenantConfiguration; @@ -626,31 +789,66 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; - documentation: Documentation; + workspaceBackend: WorkspaceBackend; + workspaceCertificate: WorkspaceCertificate; + workspaceDiagnostic: WorkspaceDiagnostic; + workspaceApiDiagnostic: WorkspaceApiDiagnostic; + workspaceLogger: WorkspaceLogger; + apiManagementWorkspaceLinks: ApiManagementWorkspaceLinks; + apiManagementWorkspaceLink: ApiManagementWorkspaceLink; + 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; + operationStatus: OperationStatus; + operationsResults: OperationsResults; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/connectivityCheck", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 201: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 202: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, 204: { - bodyMapper: Mappers.ConnectivityCheckResponse + bodyMapper: Mappers.ConnectivityCheckResponse, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.connectivityCheckRequestParams, queryParameters: [Parameters.apiVersion], @@ -658,9 +856,9 @@ const performConnectivityCheckAsyncOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 4e69c371d1f3..4904d3e735b5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -8,6 +8,257 @@ import * as coreClient from "@azure/core-client"; +/** The response of All Policies. */ +export interface AllPoliciesCollection { + /** AllPolicies Contract value. */ + value?: AllPoliciesContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** Base Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayBaseProperties { + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; + /** The type of VPN in which API Management gateway needs to be configured in. */ + virtualNetworkType?: VirtualNetworkType; +} + +/** Information regarding how the gateway should be exposed. */ +export interface FrontendConfiguration { + /** + * The default hostname of the data-plane gateway to which requests can be sent. This is only applicable for API gateway with Standard SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultHostname?: string; +} + +/** Information regarding how the gateway should integrate with backend systems. */ +export interface BackendConfiguration { + /** The default hostname of the data-plane gateway to which requests can be sent. */ + subnet?: BackendSubnetConfiguration; +} + +/** Information regarding how the subnet to which the gateway should be injected. */ +export interface BackendSubnetConfiguration { + /** The ARM ID of the subnet in which the backend systems are hosted. */ + id?: string; +} + +/** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ +export interface GatewayConfigurationApi { + /** + * Hostname to which the agent connects to propagate configuration to the cloud. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostname?: string; +} + +/** API Management gateway resource SKU properties. */ +export interface ApiManagementGatewaySkuProperties { + /** Name of the Sku. */ + name: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity?: number; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** The Resource definition. */ +export interface ApimResource { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type for API Management resource is set to Microsoft.ApiManagement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + +/** API Management gateway resource SKU properties for PATCH operations given nothing should be required. */ +export interface ApiManagementGatewaySkuPropertiesForPatch { + /** Name of the Sku. */ + name?: SkuType; + /** Capacity of the SKU (number of deployed units of the SKU) */ + capacity?: number; +} + +/** The response of the List API Management gateway operation. */ +export interface ApiManagementGatewayListResult { + /** Result of the List API Management gateway operation. */ + value: ApiManagementGatewayResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; +} + +/** The API Management gateway SKUs operation response. */ +export interface GatewayResourceSkuResults { + /** The list of skus available for the gateway. */ + value: GatewayResourceSkuResult[]; + /** The uri to fetch the next page of API Management gateway Skus. */ + nextLink?: string; +} + +/** Describes an available API Management gateway SKU. */ +export interface GatewayResourceSkuResult { + /** + * The type of resource the SKU applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** + * Specifies API Management gateway SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sku?: GatewaySku; + /** + * Specifies the number of API Management gateway units. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacity?: GatewaySkuCapacity; +} + +/** Describes an available API Management SKU for gateways. */ +export interface GatewaySku { + /** Name of the Sku. */ + name?: SkuType; +} + +/** Describes scaling information of a SKU. */ +export interface GatewaySkuCapacity { + /** + * The minimum capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly minimum?: number; + /** + * The maximum capacity that can be set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maximum?: number; + /** + * The default capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly default?: number; + /** + * The scale type applicable to the sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scaleType?: GatewaySkuCapacityScaleType; +} + /** Paged API list representation. */ export interface ApiCollection { /** @@ -131,55 +382,6 @@ export interface ApiLicenseInformation { url?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - -/** Error Response. */ -export interface ErrorResponse { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Body contract. */ -export interface ErrorResponseBody { - /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ - code?: string; - /** Human-readable representation of the error. */ - message?: string; - /** The list of invalid fields send in request, in case of validation error. */ - details?: ErrorFieldContract[]; -} - -/** Error Field contract. */ -export interface ErrorFieldContract { - /** Property level error code. */ - code?: string; - /** Human-readable representation of property-level error. */ - message?: string; - /** Property name. */ - target?: string; -} - /** API Create or Update Parameters. */ export interface ApiCreateOrUpdateParameter { /** Description of the API. May include HTML formatting tags. */ @@ -227,9 +429,14 @@ export interface ApiCreateOrUpdateParameter { protocols?: Protocol[]; /** Version set details */ apiVersionSet?: ApiVersionSetContractDetails; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; /** Content value when Importing an API. */ value?: string; - /** Format of the Content in which the API is getting imported. */ + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ format?: ContentFormat; /** Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; @@ -239,6 +446,7 @@ export interface ApiCreateOrUpdateParameter { * * `soap` creates a SOAP pass-through API * * `websocket` creates websocket API * * `graphql` creates GraphQL API. + * New types can be added in the future. */ soapApiType?: SoapApiType; /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ @@ -891,62 +1099,10 @@ export interface ApiVersionSetUpdateParameters { versioningScheme?: VersioningScheme; } -/** Paged OAuth2 Authorization Servers list representation. */ -export interface AuthorizationServerCollection { +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { /** Page values. */ - value?: AuthorizationServerContract[]; - /** Total record count number across all pages. */ - count?: number; - /** Next page link if any. */ - nextLink?: string; -} - -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerContractBaseProperties { - /** Description of the authorization server. Can contain HTML formatting tags. */ - description?: string; - /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ - authorizationMethods?: AuthorizationMethod[]; - /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ - tokenBodyParameters?: TokenBodyParameterContract[]; - /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ - tokenEndpoint?: string; - /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ - supportState?: boolean; - /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ - defaultScope?: string; - /** Specifies the mechanism by which access token is passed to the API. */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** OAuth acquire token request body parameter (www-url-form-encoded). */ -export interface TokenBodyParameterContract { - /** body parameter name. */ - name: string; - /** body parameter value. */ - value: string; -} - -/** OAuth Server Secrets Contract. */ -export interface AuthorizationServerSecretsContract { - /** oAuth Authorization Server Secrets. */ - clientSecret?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** Paged Authorization Provider list representation. */ -export interface AuthorizationProviderCollection { - /** Page values. */ - value?: AuthorizationProviderContract[]; + value?: AuthorizationProviderContract[]; /** Next page link if any. */ nextLink?: string; } @@ -1013,6 +1169,58 @@ export interface AuthorizationAccessPolicyCollection { nextLink?: string; } +/** Paged OAuth2 Authorization Servers list representation. */ +export interface AuthorizationServerCollection { + /** Page values. */ + value?: AuthorizationServerContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerContractBaseProperties { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + +/** OAuth acquire token request body parameter (www-url-form-encoded). */ +export interface TokenBodyParameterContract { + /** body parameter name. */ + name: string; + /** body parameter value. */ + value: string; +} + +/** OAuth Server Secrets Contract. */ +export interface AuthorizationServerSecretsContract { + /** oAuth Authorization Server Secrets. */ + clientSecret?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -1039,6 +1247,11 @@ export interface BackendBaseParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; } /** Properties specific to the Backend Type. */ @@ -1111,6 +1324,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; + /** flag to accept Retry-After header from the backend. */ + acceptRetryAfter?: boolean; +} + +/** The trip conditions of the circuit breaker */ +export interface CircuitBreakerFailureCondition { + /** The threshold for opening the circuit. */ + count?: number; + /** The threshold for opening the circuit. */ + percentage?: number; + /** The interval during which the failures are counted. */ + interval?: string; + /** The status code ranges which are considered as failure. */ + statusCodeRanges?: FailureStatusCodeRange[]; + /** The error reasons which are considered as failure. */ + errorReasons?: string[]; +} + +/** The failure http status code range */ +export interface FailureStatusCodeRange { + /** The minimum http status code. */ + min?: number; + /** The maximum http status code. */ + max?: number; +} + +/** Backend pool information */ +export interface BackendPool { + /** The list of backend entities belonging to a pool. */ + services?: BackendPoolItem[]; +} + +/** Backend pool service information */ +export interface BackendPoolItem { + /** The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity. */ + id: string; + /** The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified. */ + weight?: number; + /** The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified. */ + priority?: number; +} + /** Backend update parameters. */ export interface BackendUpdateParameters { /** Backend Title. */ @@ -1127,6 +1396,11 @@ export interface BackendUpdateParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + type?: BackendType; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -1559,6 +1833,8 @@ export interface ApiManagementServiceBaseProperties { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -1591,6 +1867,10 @@ export interface ApiManagementServiceBaseProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; } /** Custom hostname configuration. */ @@ -1629,6 +1909,12 @@ export interface CertificateInformation { subject: string; } +/** Information regarding the Configuration API of the API Management service. */ +export interface ConfigurationApi { + /** Indication whether or not the legacy Configuration API (v1) should be exposed on the API Management service. Value is optional but must be 'Enabled' or 'Disabled'. If 'Disabled', legacy Configuration API (v1) will not be available for self-hosted gateways. Default value is 'Enabled' */ + legacyApi?: LegacyApiState; +} + /** Configuration of a virtual network to which API Management service is deployed. */ export interface VirtualNetworkConfiguration { /** @@ -1784,41 +2070,10 @@ export interface UserIdentityProperties { clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The Resource definition. */ -export interface ApimResource { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type for API Management resource is set to Microsoft.ApiManagement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; +/** Describes an available API Management SKU. */ +export interface MigrateToStv2Contract { + /** Mode of Migration to stv2. Default is PreserveIp. */ + mode?: MigrateToStv2Mode; } /** The response of the List API Management services operation. */ @@ -1872,6 +2127,28 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +/** Paged Documentation list representation. */ +export interface DocumentationCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DocumentationContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Documentation update contract details. */ +export interface DocumentationUpdateContract { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Paged email template list representation. */ export interface EmailTemplateCollection { /** Page values. */ @@ -1993,6 +2270,36 @@ export interface GatewayCertificateAuthorityCollection { readonly nextLink?: string; } +/** List debug credentials properties. */ +export interface GatewayListDebugCredentialsContract { + /** Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used. */ + credentialsExpireAfter?: string; + /** Purposes of debug credential. */ + purposes: GatewayListDebugCredentialsContractPurpose[]; + /** Full resource Id of an API. */ + apiId: string; +} + +/** Gateway debug credentials. */ +export interface GatewayDebugCredentialsContract { + /** Gateway debug token. */ + token?: string; +} + +/** List trace properties. */ +export interface GatewayListTraceContract { + /** Trace id. */ + traceId?: string; +} + +/** The response of the List API Management gateway operation. */ +export interface ApiManagementGatewayConfigConnectionListResult { + /** Result of the List API Management gateway config connection operation. */ + value: ApiManagementGatewayConfigConnectionResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; +} + /** Paged Group list representation. */ export interface GroupCollection { /** Page values. */ @@ -2365,6 +2672,51 @@ export interface ResourceCollection { nextLink?: string; } +/** The response of the get policy restrictions operation. */ +export interface PolicyRestrictionCollection { + value?: PolicyRestrictionContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** Policy restriction contract details. */ +export interface PolicyRestrictionUpdateContract { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; +} + +/** Error Body contract. */ +export interface ErrorResponseBody { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; +} + +/** Error Field contract. */ +export interface ErrorFieldContract { + /** Property level error code. */ + code?: string; + /** Human-readable representation of property-level error. */ + message?: string; + /** Property name. */ + target?: string; +} + +/** Log of the entity being created, updated or deleted. */ +export interface OperationResultLogItemContract { + /** The type of entity contract. */ + objectType?: string; + /** Action like create/update/delete. */ + action?: string; + /** Identifier of the entity being created/updated/deleted. */ + objectKey?: string; +} + /** The collection of the developer portal configurations. */ export interface PortalConfigCollection { /** The developer portal configurations. */ @@ -2534,6 +2886,26 @@ export interface SubscriptionCollection { nextLink?: string; } +/** Paged Product-API link list representation. */ +export interface ProductApiLinkCollection { + /** Page values. */ + value?: ProductApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Product-group link list representation. */ +export interface ProductGroupLinkCollection { + /** Page values. */ + value?: ProductGroupLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Quota Counter list representation. */ export interface QuotaCounterCollection { /** Quota counter values. */ @@ -3022,6 +3394,36 @@ export interface TagCreateUpdateParameters { displayName?: string; } +/** Paged Tag-API link list representation. */ +export interface TagApiLinkCollection { + /** Page values. */ + value?: TagApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-operation link list representation. */ +export interface TagOperationLinkCollection { + /** Page values. */ + value?: TagOperationLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-product link list representation. */ +export interface TagProductLinkCollection { + /** Page values. */ + value?: TagProductLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged AccessInformation list representation. */ export interface AccessInformationCollection { /** @@ -3078,16 +3480,6 @@ export interface DeployConfigurationParameters { force?: boolean; } -/** Log of the entity being created, updated or deleted. */ -export interface OperationResultLogItemContract { - /** The type of entity contract. */ - objectType?: string; - /** Action like create/update/delete. */ - action?: string; - /** Identifier of the entity being created/updated/deleted. */ - objectKey?: string; -} - /** Save Tenant Configuration Contract details. */ export interface SaveConfigurationParameter { /** The name of the Git branch in which to commit the current configuration snapshot. */ @@ -3169,26 +3561,69 @@ export interface UserTokenResult { value?: string; } -/** Paged Documentation list representation. */ -export interface DocumentationCollection { - /** - * Page values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DocumentationContract[]; +/** The response of the List API Management WorkspaceLink operation. */ +export interface ApiManagementWorkspaceLinksListResult { + /** Result of the List API Management WorkspaceLinks operation. */ + value: ApiManagementWorkspaceLinksResource[]; + /** Link to the next set of results. Not empty if Value contains incomplete list of API Management services. */ + nextLink?: string; +} + +export interface WorkspaceLinksBaseProperties { + /** The link to the API Management service workspace. */ + workspaceId?: string; + /** The array of linked gateways. */ + gateways?: WorkspaceLinksGateway[]; +} + +export interface WorkspaceLinksGateway { + /** The link to the API Management gateway. */ + id?: 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; +} + +/** The current status of an async operation. */ +export interface OperationStatusResult { + /** Fully qualified ID for the async operation. */ + id?: string; /** - * Next page link if any. + * Fully qualified ID of the resource against which the original async operation was started. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly resourceId?: string; + /** Name of the async operation. */ + name?: string; + /** Operation status. */ + status: string; + /** Percent of the operation that is complete. */ + percentComplete?: number; + /** The start time of the operation. */ + startTime?: Date; + /** The end time of the operation. */ + endTime?: Date; + /** The operations list. */ + operations?: OperationStatusResult[]; + /** If present, details of the operation error. */ + error?: ErrorDetail; } -/** Documentation update contract details. */ -export interface DocumentationUpdateContract { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Error Response. */ +export interface ErrorResponseAutoGenerated { + /** Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. */ + code?: string; + /** Human-readable representation of the error. */ + message?: string; + /** The list of invalid fields send in request, in case of validation error. */ + details?: ErrorFieldContract[]; } /** Object used to create an API Revision or Version based on an existing API Revision */ @@ -3203,6 +3638,14 @@ export interface ApiRevisionInfoContract { apiVersionSet?: ApiVersionSetContractDetails; } +/** The response of the list policy operation. */ +export interface PolicyWithComplianceCollection { + /** Policy Contract value. */ + value?: PolicyWithComplianceContract[]; + /** Next page link if any. */ + nextLink?: string; +} + /** Quota counter value details. */ export interface QuotaCounterValueContract { /** Number of times Counter was called. */ @@ -3221,49 +3664,6 @@ export interface ResolverResultLogItemContract { objectKey?: string; } -/** API Entity Properties */ -export interface ApiContractProperties extends ApiEntityBaseContract { - /** API identifier of the source API. */ - sourceApiId?: string; - /** API name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; - /** Version set details */ - apiVersionSet?: ApiVersionSetContractDetails; -} - -/** API update contract properties. */ -export interface ApiContractUpdateProperties extends ApiEntityBaseContract { - /** API name. */ - displayName?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - -/** API contract properties for the Tag Resources. */ -export interface ApiTagResourceContractProperties - extends ApiEntityBaseContract { - /** API identifier in the form /apis/{apiId}. */ - id?: string; - /** API name. */ - name?: string; - /** Absolute URL of the backend service implementing this API. */ - serviceUrl?: string; - /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ - path?: string; - /** Describes on which protocols the operations in this API can be invoked. */ - protocols?: Protocol[]; -} - /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} @@ -3296,179 +3696,87 @@ export interface PrivateLinkResource extends Resource { requiredZoneNames?: string[]; } -/** Operation Contract Properties */ -export interface OperationContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate: string; -} - -/** Operation Update Contract Properties. */ -export interface OperationUpdateContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName?: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method?: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate?: string; -} - -/** Product profile. */ -export interface ProductContractProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName: string; -} - -/** Product profile. */ -export interface ProductTagResourceContractProperties - extends ProductEntityBaseParameters { - /** Identifier of the product in the form of /products/{productId} */ - id?: string; - /** Product name. */ - name: string; -} - -/** Parameters supplied to the Update Product operation. */ -export interface ProductUpdateProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName?: string; -} - -/** Issue contract Properties. */ -export interface IssueContractProperties extends IssueContractBaseProperties { - /** The issue title. */ - title: string; - /** Text describing the issue. */ - description: string; - /** A resource identifier for the user created the issue. */ - userId: string; -} - -/** Issue contract Update Properties. */ -export interface IssueUpdateContractProperties - extends IssueContractBaseProperties { - /** The issue title. */ - title?: string; - /** Text describing the issue. */ - description?: string; - /** A resource identifier for the user created the issue. */ - userId?: string; -} - -/** TagDescription contract Properties. */ -export interface TagDescriptionContractProperties - extends TagDescriptionBaseProperties { - /** Identifier of the tag in the form of /tags/{tagId} */ - tagId?: string; - /** Tag name. */ - displayName?: string; -} - -/** Properties of an API Version Set. */ -export interface ApiVersionSetContractProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme: VersioningScheme; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayProperties + extends ApiManagementGatewayBaseProperties {} -/** 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; -} +/** Properties of an API Management gateway resource description. */ +export interface ApiManagementGatewayUpdateProperties + extends ApiManagementGatewayBaseProperties {} -/** External OAuth authorization server settings Properties. */ -export interface AuthorizationServerContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; +/** A single API Management gateway resource in List or Get response. */ +export interface ApiManagementGatewayResource extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku: ApiManagementGatewaySkuProperties; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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; + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; + /** The type of VPN in which API Management gateway needs to be configured in. */ + virtualNetworkType?: VirtualNetworkType; } -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerUpdateContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName?: string; - /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ - useInTestConsole?: boolean; - /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ - useInApiDocumentation?: boolean; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint?: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint?: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes?: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId?: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Parameters supplied to the Create Backend operation. */ -export interface BackendContractProperties extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url: string; - /** Backend communication protocol. */ - protocol: BackendProtocol; -} - -/** Parameters supplied to the Update Backend operation. */ -export interface BackendUpdateParameterProperties - extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url?: string; - /** Backend communication protocol. */ - protocol?: BackendProtocol; -} - -/** KeyVault contract details. */ -export interface KeyVaultContractProperties - extends KeyVaultContractCreateProperties { - /** Last time sync and refresh status of secret from key vault. */ - lastStatus?: KeyVaultLastAccessStatusContractProperties; -} - -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; -} - -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; +/** Parameter supplied to Update API Management gateway. */ +export interface ApiManagementGatewayUpdateParameters extends ApimResource { + /** SKU properties of the API Management gateway. */ + sku?: ApiManagementGatewaySkuPropertiesForPatch; + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The current provisioning state of the API Management gateway which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The provisioning state of the API Management gateway, which is targeted by the long running operation started on the gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetProvisioningState?: string; + /** + * Creation UTC date of the API Management gateway.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdAtUtc?: Date; + /** Information regarding how the gateway should be exposed. */ + frontend?: FrontendConfiguration; + /** Information regarding how the gateway should integrate with backend systems. */ + backend?: BackendConfiguration; + /** Information regarding the Configuration API of the API Management gateway. This is only applicable for API gateway with Standard SKU. */ + configurationApi?: GatewayConfigurationApi; + /** The type of VPN in which API Management gateway needs to be configured in. */ + virtualNetworkType?: VirtualNetworkType; } /** A single API Management service resource in List or Get response. */ @@ -3554,6 +3862,8 @@ export interface ApiManagementServiceResource extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3586,6 +3896,10 @@ export interface ApiManagementServiceResource extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail: string; /** Publisher name. */ @@ -3668,6 +3982,8 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3700,399 +4016,179 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail?: string; /** Publisher name. */ publisherName?: string; } -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; - /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - registrationDate?: Date; +/** API Entity Properties */ +export interface ApiContractProperties extends ApiEntityBaseContract { + /** API identifier of the source API. */ + sourceApiId?: string; + /** API name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; + /** Version set details */ + apiVersionSet?: ApiVersionSetContractDetails; /** - * Collection of groups user is part of. + * The provisioning state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groups?: GroupContractProperties[]; -} - -/** Parameters supplied to the Create User operation. */ -export interface UserCreateParameterProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email: string; - /** First name. */ - firstName: string; - /** Last name. */ - lastName: string; - /** User Password. If no value is provided, a default password is generated. */ - password?: string; - /** Determines the type of application which send the create user request. Default is legacy portal. */ - appType?: AppType; - /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ - confirmation?: Confirmation; + readonly provisioningState?: string; } -/** Parameters supplied to the Update User operation. */ -export interface UserUpdateParametersProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email?: string; - /** User Password. */ - password?: string; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; +/** API update contract properties. */ +export interface ApiContractUpdateProperties extends ApiEntityBaseContract { + /** API name. */ + displayName?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; +/** API contract properties for the Tag Resources. */ +export interface ApiTagResourceContractProperties + extends ApiEntityBaseContract { + /** API identifier in the form /apis/{apiId}. */ + id?: string; + /** API name. */ + name?: string; + /** Absolute URL of the backend service implementing this API. */ + serviceUrl?: string; + /** Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. */ + path?: string; + /** Describes on which protocols the operations in this API can be invoked. */ + protocols?: Protocol[]; } -/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ -export interface IdentityProviderCreateContractProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret: string; +/** Operation Contract Properties */ +export interface OperationContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate: string; } -/** Parameters supplied to the Update Identity Provider operation. */ -export interface IdentityProviderUpdateProperties - extends IdentityProviderBaseParameters { - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ - clientSecret?: string; +/** Operation Update Contract Properties. */ +export interface OperationUpdateContractProperties + extends OperationEntityBaseContract { + /** Operation Name. */ + displayName?: string; + /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ + method?: string; + /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ + urlTemplate?: string; } -/** NamedValue Contract properties. */ -export interface NamedValueContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ +/** Product profile. */ +export interface ProductContractProperties extends ProductEntityBaseParameters { + /** Product name. */ displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractProperties; } -/** NamedValue Contract properties. */ -export interface NamedValueCreateContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; +/** Product profile. */ +export interface ProductTagResourceContractProperties + extends ProductEntityBaseParameters { + /** Identifier of the product in the form of /products/{productId} */ + id?: string; + /** Product name. */ + name: string; } -/** NamedValue Contract properties. */ -export interface NamedValueUpdateParameterProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ +/** Parameters supplied to the Update Product operation. */ +export interface ProductUpdateProperties extends ProductEntityBaseParameters { + /** Product name. */ displayName?: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; } -/** API Create or Update Properties. */ -export interface ApiCreateOrUpdateProperties extends ApiContractProperties { - /** Content value when Importing an API. */ - value?: string; - /** Format of the Content in which the API is getting imported. */ - format?: ContentFormat; - /** Criteria to limit import of WSDL to a subset of the document. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; - /** - * Type of API to create. - * * `http` creates a REST API - * * `soap` creates a SOAP pass-through API - * * `websocket` creates websocket API - * * `graphql` creates GraphQL API. - */ - soapApiType?: SoapApiType; - /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ - translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; +/** Issue contract Properties. */ +export interface IssueContractProperties extends IssueContractBaseProperties { + /** The issue title. */ + title: string; + /** Text describing the issue. */ + description: string; + /** A resource identifier for the user created the issue. */ + userId: string; } -/** API details. */ -export interface ApiContract extends ProxyResource { - /** Description of the API. May include HTML formatting tags. */ - 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; -} - -/** 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; -} - -/** 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; -} - -/** 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; -} - -/** Tag Contract details. */ -export interface TagContract extends ProxyResource { - /** Tag name. */ - displayName?: 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; -} - -/** 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; -} - -/** 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; -} - -/** 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; -} - -/** 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. */ +/** 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; } -/** 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; -} - -/** 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; -} - -/** 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; +/** TagDescription contract Properties. */ +export interface TagDescriptionContractProperties + extends TagDescriptionBaseProperties { /** Identifier of the tag in the form of /tags/{tagId} */ tagId?: string; /** Tag name. */ displayName?: string; } -/** Wiki properties */ -export interface WikiContract extends ProxyResource { - /** Collection wiki documents included into this wiki. */ - documents?: WikiDocumentationContract[]; +/** 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; } -/** 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; +/** 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 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; +/** External OAuth authorization server settings Properties. */ +export interface AuthorizationServerContractProperties + extends AuthorizationServerContractBaseProperties { + /** User-friendly authorization server name. */ + displayName: string; + /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ + useInTestConsole?: boolean; + /** If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided. */ + useInApiDocumentation?: boolean; + /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ + clientRegistrationEndpoint: string; + /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ + authorizationEndpoint: string; + /** Form of an authorization grant, which the client uses to request the access token. */ + grantTypes: GrantType[]; + /** Client or app id registered with this authorization server. */ + clientId: string; + /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerUpdateContractProperties + extends AuthorizationServerContractBaseProperties { /** User-friendly authorization server name. */ displayName?: string; /** If true, the authorization server may be used in the developer portal test console. True by default if no value is provided. */ @@ -4111,248 +4207,52 @@ export interface AuthorizationServerContract extends ProxyResource { clientSecret?: 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; -} - -/** 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; +/** Parameters supplied to the Create Backend operation. */ +export interface BackendContractProperties extends BackendBaseParameters { + /** Runtime Url of the Backend. */ + url: string; + /** Backend communication protocol. */ + protocol: BackendProtocol; } -/** 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; +/** 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 ProxyResource { - /** Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconnect is PT2M. */ - after?: 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; -} - -/** 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; -} - -/** 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; -} - -/** Content type contract details. */ -export interface ContentItemContract extends ProxyResource { - /** Properties of the content item. */ - properties?: { [propertyName: string]: any }; -} - -/** 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; -} - -/** 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[]; -} - -/** Gateway details. */ -export interface GatewayContract extends ProxyResource { - /** Gateway location. */ - locationData?: ResourceLocationDataContract; - /** Gateway description */ - description?: 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; -} +export interface BackendBaseParametersPool extends BackendPool {} -/** Association entity details. */ -export interface AssociationContract extends ProxyResource { - /** Provisioning state. */ - provisioningState?: "created"; +/** KeyVault contract details. */ +export interface KeyVaultContractProperties + extends KeyVaultContractCreateProperties { + /** Last time sync and refresh status of secret from key vault. */ + lastStatus?: KeyVaultLastAccessStatusContractProperties; } -/** Gateway certificate authority details. */ -export interface GatewayCertificateAuthorityContract extends ProxyResource { - /** Determines whether certificate authority is trusted. */ - isTrusted?: boolean; +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: 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; +/** Properties of an API Management service resource description. */ +export interface ApiManagementServiceUpdateProperties + extends ApiManagementServiceBaseProperties { + /** Publisher email. */ + publisherEmail?: string; + /** Publisher name. */ + publisherName?: 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[]; +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { /** First name. */ firstName?: string; /** Last name. */ @@ -4371,3140 +4271,7091 @@ export interface UserContract extends ProxyResource { readonly groups?: GroupContractProperties[]; } -/** 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; +/** Parameters supplied to the Create User operation. */ +export interface UserCreateParameterProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email: string; + /** First name. */ + firstName: string; + /** Last name. */ + lastName: string; + /** User Password. If no value is provided, a default password is generated. */ + password?: string; + /** Determines the type of application which send the create user request. Default is legacy portal. */ + appType?: AppType; + /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ + confirmation?: Confirmation; +} + +/** Parameters supplied to the Update User operation. */ +export interface UserUpdateParametersProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email?: string; + /** User Password. */ + password?: string; + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderContractProperties + extends IdentityProviderBaseParameters { /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; + 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 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; +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderCreateContractProperties + extends IdentityProviderBaseParameters { /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; + 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; + clientSecret: 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; +/** Parameters supplied to the Update Identity Provider operation. */ +export interface IdentityProviderUpdateProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ + clientSecret?: string; } -/** NamedValue 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; +/** NamedValue Contract properties. */ +export interface NamedValueContractProperties + extends NamedValueEntityBaseParameters { /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName?: string; + displayName: string; /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ value?: string; /** KeyVault location details of the namedValue. */ keyVault?: KeyVaultContractProperties; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** NamedValue 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; +/** NamedValue Contract properties. */ +export interface NamedValueCreateContractProperties + extends NamedValueEntityBaseParameters { /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName?: string; + 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 ProxyResource { - /** Title of the Notification. */ - title?: string; - /** Description of the Notification. */ - description?: string; - /** Recipient Parameter values. */ - recipients?: RecipientsContractProperties; +/** NamedValue Contract properties. */ +export interface NamedValueUpdateParameterProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; } -/** Recipient User details. */ -export interface RecipientUserContract extends ProxyResource { - /** API Management UserId subscribed to notification. */ - userId?: string; -} +/** Properties of an API Management workspaceLinks resource. */ +export interface ApiManagementWorkspaceLinksProperties + extends WorkspaceLinksBaseProperties {} -/** Recipient Email details. */ -export interface RecipientEmailContract extends ProxyResource { - /** User Email subscribed to notification. */ - email?: string; +/** AllPolicies Contract details. */ +export interface AllPoliciesContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; } -/** OpenId Connect Provider details. */ -export interface OpenidConnectProviderContract extends ProxyResource { - /** User-friendly OpenID Connect Provider name. */ - displayName?: string; - /** User-friendly description of OpenID Connect Provider. */ +/** API details. */ +export interface ApiContract extends ProxyResource { + /** Description of the API. May include HTML formatting tags. */ 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; -} - -/** Policy description details. */ -export interface PolicyDescriptionContract extends ProxyResource { + /** 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; /** - * Policy description. + * 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 description?: string; + 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; /** - * Binary OR value of the Snippet scope. + * The provisioning state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scope?: number; -} - -/** 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; -} - -export interface ResourceCollectionValueItem extends ProxyResource {} - -/** 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; + readonly provisioningState?: string; } -/** Portal Revision's contract details. */ -export interface PortalRevisionContract extends ProxyResource { - /** Portal revision description. */ - description?: string; +/** ApiRelease details. */ +export interface ApiReleaseContract extends ProxyResource { + /** Identifier of the API the release belongs to. */ + apiId?: string; /** - * Portal revision publishing status details. + * 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 statusDetails?: string; + readonly createdDateTime?: Date; /** - * 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. + * 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; } -/** 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; +/** 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; } -/** Sign-In settings for the Developer Portal. */ -export interface PortalSigninSettings extends ProxyResource { - /** Redirect Anonymous users to the Sign-In page. */ - enabled?: boolean; +/** 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; } -/** 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; +/** Tag Contract details. */ +export interface TagContract extends ProxyResource { + /** Tag name. */ + displayName?: 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; +/** 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; } -/** 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. */ +/** 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; - /** 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; +} + +/** 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`
- `OData Schema` use `application/vnd.ms-azure-apim.odata.schema`
- `gRPC Schema` use `text/protobuf`. */ + contentType?: string; /** - * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The provisioning state * 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; + readonly provisioningState?: string; + /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ + value?: string; + /** Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise. */ + definitions?: Record; + /** Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise. */ + components?: Record; } -/** 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; +/** 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; } -/** Tenant Settings. */ -export interface TenantSettingsContract extends ProxyResource { - /** Tenant settings */ - settings?: { [propertyName: string]: 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; } -/** 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; +/** 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; } -/** 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[]; +/** 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; } -/** 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; -} - -/** Markdown documentation details. */ -export interface DocumentationContract extends ProxyResource { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: 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[]; +/** 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 Api_getEntityTag operation. */ -export interface ApiGetEntityTagHeaders { - /** 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 Api_get operation. */ -export interface ApiGetHeaders { - /** 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 Api_createOrUpdate operation. */ -export interface ApiCreateOrUpdateHeaders { - /** 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; } -/** 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; +/** 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; } -/** 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; +/** Authorization access policy contract. */ +export interface AuthorizationAccessPolicyContract extends ProxyResource { + /** The allowed Azure Active Directory Application IDs */ + appIds?: string[]; + /** The Tenant Id */ + tenantId?: string; + /** The Object Id */ + objectId?: string; } -/** 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; +/** 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 ApiRelease_createOrUpdate operation. */ -export interface ApiReleaseCreateOrUpdateHeaders { - /** 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 ApiRelease_update operation. */ -export interface ApiReleaseUpdateHeaders { - /** 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; + pool?: BackendBaseParametersPool; + /** Type of the backend. A backend can be either Single or Pool. */ + typePropertiesType?: BackendType; + /** Runtime Url of the Backend. */ + url?: string; + /** Backend communication protocol. */ + protocol?: BackendProtocol; } -/** 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; +/** 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 ApiOperation_get operation. */ -export interface ApiOperationGetHeaders { - /** 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 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 ApiOperation_update operation. */ -export interface ApiOperationUpdateHeaders { - /** 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 ApiOperationPolicy_getEntityTag operation. */ -export interface ApiOperationPolicyGetEntityTagHeaders { - /** 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 ApiOperationPolicy_get operation. */ -export interface ApiOperationPolicyGetHeaders { - /** 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 ApiOperationPolicy_createOrUpdate operation. */ -export interface ApiOperationPolicyCreateOrUpdateHeaders { - /** 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 Tag_getEntityStateByOperation operation. */ -export interface TagGetEntityStateByOperationHeaders { - /** 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 Tag_getByOperation operation. */ -export interface TagGetByOperationHeaders { - /** 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 Tag_getEntityStateByApi operation. */ -export interface TagGetEntityStateByApiHeaders { - /** 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 Tag_getByApi operation. */ -export interface TagGetByApiHeaders { - /** 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 Tag_assignToApi operation. */ -export interface TagAssignToApiHeaders { - /** 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?: ProvisioningState; } -/** 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; +/** Gateway certificate authority details. */ +export interface GatewayCertificateAuthorityContract extends ProxyResource { + /** Determines whether certificate authority is trusted. */ + isTrusted?: boolean; } -/** 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; +/** A single API Management gateway resource in List or Get response. */ +export interface ApiManagementGatewayConfigConnectionResource + extends ProxyResource { + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The current provisioning state of the API Management gateway config connection + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** The link to the API Management service workspace. */ + sourceId?: string; + /** + * The default hostname of the data-plane gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly defaultHostname?: string; + /** The hostnames of the data-plane gateway to which requests can be sent. */ + hostnames?: string[]; } -/** 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; +/** 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 Tag_get operation. */ -export interface TagGetHeaders { - /** 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 Tag_createOrUpdate operation. */ -export interface TagCreateOrUpdateHeaders { - /** 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 Tag_update operation. */ -export interface TagUpdateHeaders { - /** 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 GraphQLApiResolver_getEntityTag operation. */ -export interface GraphQLApiResolverGetEntityTagHeaders { - /** 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 GraphQLApiResolver_get operation. */ -export interface GraphQLApiResolverGetHeaders { - /** 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; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** 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; +/** 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 GraphQLApiResolver_update operation. */ -export interface GraphQLApiResolverUpdateHeaders { - /** 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 GraphQLApiResolverPolicy_getEntityTag operation. */ -export interface GraphQLApiResolverPolicyGetEntityTagHeaders { - /** 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 GraphQLApiResolverPolicy_get operation. */ -export interface GraphQLApiResolverPolicyGetHeaders { - /** 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 GraphQLApiResolverPolicy_createOrUpdate operation. */ -export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { - /** 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 ApiPolicy_getEntityTag operation. */ -export interface ApiPolicyGetEntityTagHeaders { - /** 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 ApiPolicy_get operation. */ -export interface ApiPolicyGetHeaders { - /** 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; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** 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; +export interface ResourceCollectionValueItem extends ProxyResource {} + +/** Policy restriction contract details. */ +export interface PolicyRestrictionContract extends ProxyResource { + /** Path to the policy document. */ + scope?: string; + /** Indicates if base policy should be enforced for the policy document. */ + requireBase?: PolicyRestrictionRequireBase; } -/** 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; +/** 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 ApiSchema_get operation. */ -export interface ApiSchemaGetHeaders { - /** 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 ApiSchema_createOrUpdate operation. */ -export interface ApiSchemaCreateOrUpdateHeaders { - /** 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; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** 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; +/** 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 ApiDiagnostic_get operation. */ -export interface ApiDiagnosticGetHeaders { - /** 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 ApiDiagnostic_createOrUpdate operation. */ -export interface ApiDiagnosticCreateOrUpdateHeaders { - /** 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 ApiDiagnostic_update operation. */ -export interface ApiDiagnosticUpdateHeaders { - /** 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 ApiIssue_getEntityTag operation. */ -export interface ApiIssueGetEntityTagHeaders { - /** 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 ApiIssue_get operation. */ -export interface ApiIssueGetHeaders { - /** 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 ApiIssue_createOrUpdate operation. */ -export interface ApiIssueCreateOrUpdateHeaders { - /** 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 ApiIssue_update operation. */ -export interface ApiIssueUpdateHeaders { - /** 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; + /** + * The provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; } -/** 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; +/** Tenant Settings. */ +export interface TenantSettingsContract extends ProxyResource { + /** Tenant settings */ + settings?: { [propertyName: string]: 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; +/** Tag-API link details. */ +export interface TagApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: 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; +/** Tag-operation link details. */ +export interface TagOperationLinkContract extends ProxyResource { + /** Full resource Id of an API operation. */ + operationId?: 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; +/** Tag-product link details. */ +export interface TagProductLinkContract extends ProxyResource { + /** Full resource Id of a product. */ + productId?: string; } -/** 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; +/** 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 ApiIssueAttachment_createOrUpdate operation. */ -export interface ApiIssueAttachmentCreateOrUpdateHeaders { - /** 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 ApiTagDescription_getEntityTag operation. */ -export interface ApiTagDescriptionGetEntityTagHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** Diagnostic details. */ +export interface DiagnosticUpdateContract 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 ApiTagDescription_get operation. */ -export interface ApiTagDescriptionGetHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** A single API Management WorkspaceLinks in List or Get response. */ +export interface ApiManagementWorkspaceLinksResource extends ProxyResource { + /** + * ETag of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** The link to the API Management service workspace. */ + workspaceId?: string; + /** The array of linked gateways. */ + gateways?: WorkspaceLinksGateway[]; } -/** 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; +/** Workspace details. */ +export interface WorkspaceContract extends ProxyResource { + /** Name of the workspace. */ + displayName?: string; + /** Description of the workspace. */ + description?: string; } -/** 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; +/** Policy Contract details. */ +export interface PolicyWithComplianceContract extends ProxyResource { + /** Policy Identifier */ + referencePolicyId?: string; + /** Policy Restriction Compliance State */ + complianceState?: PolicyComplianceState; } -/** 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; +/** 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 ApiWiki_createOrUpdate operation. */ -export interface ApiWikiCreateOrUpdateHeaders { - /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ - eTag?: string; +/** API Create or Update Properties. */ +export interface ApiCreateOrUpdateProperties extends ApiContractProperties { + /** Content value when Importing an API. */ + value?: string; + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ + format?: ContentFormat; + /** Criteria to limit import of WSDL to a subset of the document. */ + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + /** + * Type of API to create. + * * `http` creates a REST API + * * `soap` creates a SOAP pass-through API + * * `websocket` creates websocket API + * * `graphql` creates GraphQL API. + * New types can be added in the future. + */ + soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; } -/** Defines headers for 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 ApiManagementGateway_update operation. */ +export interface ApiManagementGatewayUpdateHeaders { + /** Location header */ + location?: string; } -/** 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 ApiManagementGateway_delete operation. */ +export interface ApiManagementGatewayDeleteHeaders { + /** Location header */ + location?: string; } -/** Defines headers for ApiVersionSet_get operation. */ -export interface ApiVersionSetGetHeaders { +/** 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 ApiVersionSet_createOrUpdate operation. */ -export interface ApiVersionSetCreateOrUpdateHeaders { +/** 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 ApiVersionSet_update operation. */ -export interface ApiVersionSetUpdateHeaders { +/** 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** Defines headers for AuthorizationServer_getEntityTag operation. */ -export interface AuthorizationServerGetEntityTagHeaders { +/** 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 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 Api_delete operation. */ +export interface ApiDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** Defines headers for AuthorizationServer_createOrUpdate operation. */ -export interface AuthorizationServerCreateOrUpdateHeaders { +/** 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 AuthorizationServer_update operation. */ -export interface AuthorizationServerUpdateHeaders { +/** 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 AuthorizationServer_listSecrets operation. */ -export interface AuthorizationServerListSecretsHeaders { +/** 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 AuthorizationProvider_get operation. */ -export interface AuthorizationProviderGetHeaders { +/** 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 AuthorizationProvider_createOrUpdate operation. */ -export interface AuthorizationProviderCreateOrUpdateHeaders { +/** 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 Authorization_get operation. */ -export interface AuthorizationGetHeaders { +/** 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 Authorization_createOrUpdate operation. */ -export interface AuthorizationCreateOrUpdateHeaders { +/** 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 Authorization_confirmConsentCode operation. */ -export interface AuthorizationConfirmConsentCodeHeaders { +/** 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 AuthorizationLoginLinks_post operation. */ -export interface AuthorizationLoginLinksPostHeaders { +/** 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 AuthorizationAccessPolicy_get operation. */ -export interface AuthorizationAccessPolicyGetHeaders { +/** 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 AuthorizationAccessPolicy_createOrUpdate operation. */ -export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { +/** 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 Backend_getEntityTag operation. */ -export interface BackendGetEntityTagHeaders { +/** 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 Backend_get operation. */ -export interface BackendGetHeaders { +/** 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 Backend_createOrUpdate operation. */ -export interface BackendCreateOrUpdateHeaders { +/** 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 Backend_update operation. */ -export interface BackendUpdateHeaders { +/** 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 Cache_getEntityTag operation. */ -export interface CacheGetEntityTagHeaders { +/** 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 Cache_get operation. */ -export interface CacheGetHeaders { +/** 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 Cache_createOrUpdate operation. */ -export interface CacheCreateOrUpdateHeaders { +/** 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 Cache_update operation. */ -export interface CacheUpdateHeaders { +/** 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 Certificate_getEntityTag operation. */ -export interface CertificateGetEntityTagHeaders { +/** 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 Certificate_get operation. */ -export interface CertificateGetHeaders { +/** 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 Certificate_createOrUpdate operation. */ -export interface CertificateCreateOrUpdateHeaders { +/** 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 Certificate_refreshSecret operation. */ -export interface CertificateRefreshSecretHeaders { +/** 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 ContentType_get operation. */ -export interface ContentTypeGetHeaders { +/** 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 ContentType_createOrUpdate operation. */ -export interface ContentTypeCreateOrUpdateHeaders { +/** 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 ContentItem_getEntityTag operation. */ -export interface ContentItemGetEntityTagHeaders { +/** 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 ContentItem_get operation. */ -export interface ContentItemGetHeaders { +/** 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 ContentItem_createOrUpdate operation. */ -export interface ContentItemCreateOrUpdateHeaders { +/** 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 DeletedServices_purge operation. */ -export interface DeletedServicesPurgeHeaders { - location?: string; -} - -/** Defines headers for ApiManagementService_restore operation. */ -export interface ApiManagementServiceRestoreHeaders { - location?: string; -} - -/** Defines headers for ApiManagementService_backup operation. */ -export interface ApiManagementServiceBackupHeaders { - location?: string; -} - -/** Defines headers for ApiManagementService_migrateToStv2 operation. */ -export interface ApiManagementServiceMigrateToStv2Headers { - location?: string; -} - -/** Defines headers for ApiManagementService_applyNetworkConfigurationUpdates operation. */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { - location?: string; -} - -/** Defines headers for Diagnostic_getEntityTag operation. */ -export interface DiagnosticGetEntityTagHeaders { +/** 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 Diagnostic_get operation. */ -export interface DiagnosticGetHeaders { +/** 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 Diagnostic_createOrUpdate operation. */ -export interface DiagnosticCreateOrUpdateHeaders { +/** 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 Diagnostic_update operation. */ -export interface DiagnosticUpdateHeaders { +/** 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 EmailTemplate_getEntityTag operation. */ -export interface EmailTemplateGetEntityTagHeaders { +/** 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 EmailTemplate_get operation. */ -export interface EmailTemplateGetHeaders { +/** 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 EmailTemplate_update operation. */ -export interface EmailTemplateUpdateHeaders { +/** 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** Defines headers for Gateway_getEntityTag operation. */ -export interface GatewayGetEntityTagHeaders { +/** 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 Gateway_get operation. */ -export interface GatewayGetHeaders { +/** 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 Gateway_createOrUpdate operation. */ -export interface GatewayCreateOrUpdateHeaders { +/** 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 Gateway_update operation. */ -export interface GatewayUpdateHeaders { +/** 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 Gateway_listKeys operation. */ -export interface GatewayListKeysHeaders { +/** 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 GatewayHostnameConfiguration_getEntityTag operation. */ -export interface GatewayHostnameConfigurationGetEntityTagHeaders { +/** 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 GatewayHostnameConfiguration_get operation. */ -export interface GatewayHostnameConfigurationGetHeaders { +/** 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 GatewayHostnameConfiguration_createOrUpdate operation. */ -export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { +/** 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 GatewayApi_getEntityTag operation. */ -export interface GatewayApiGetEntityTagHeaders { +/** 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 GatewayCertificateAuthority_getEntityTag operation. */ -export interface GatewayCertificateAuthorityGetEntityTagHeaders { +/** 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 GatewayCertificateAuthority_get operation. */ -export interface GatewayCertificateAuthorityGetHeaders { +/** 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 GatewayCertificateAuthority_createOrUpdate operation. */ -export interface GatewayCertificateAuthorityCreateOrUpdateHeaders { +/** 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 Group_getEntityTag operation. */ -export interface GroupGetEntityTagHeaders { +/** 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 Group_get operation. */ -export interface GroupGetHeaders { +/** 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 Group_createOrUpdate operation. */ -export interface GroupCreateOrUpdateHeaders { +/** 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 Group_update operation. */ -export interface GroupUpdateHeaders { +/** 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 IdentityProvider_getEntityTag operation. */ -export interface IdentityProviderGetEntityTagHeaders { +/** 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 IdentityProvider_get operation. */ -export interface IdentityProviderGetHeaders { +/** 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 IdentityProvider_createOrUpdate operation. */ -export interface IdentityProviderCreateOrUpdateHeaders { +/** 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 IdentityProvider_update operation. */ -export interface IdentityProviderUpdateHeaders { +/** 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 IdentityProvider_listSecrets operation. */ -export interface IdentityProviderListSecretsHeaders { +/** 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 Issue_get operation. */ -export interface IssueGetHeaders { +/** 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 Logger_getEntityTag operation. */ -export interface LoggerGetEntityTagHeaders { +/** 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 Logger_get operation. */ -export interface LoggerGetHeaders { +/** 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 Logger_createOrUpdate operation. */ -export interface LoggerCreateOrUpdateHeaders { +/** 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 Logger_update operation. */ -export interface LoggerUpdateHeaders { +/** 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 NamedValue_getEntityTag operation. */ -export interface NamedValueGetEntityTagHeaders { +/** 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 NamedValue_get operation. */ -export interface NamedValueGetHeaders { +/** 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 NamedValue_createOrUpdate operation. */ -export interface NamedValueCreateOrUpdateHeaders { +/** 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 NamedValue_update operation. */ -export interface NamedValueUpdateHeaders { +/** 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 NamedValue_listValue operation. */ -export interface NamedValueListValueHeaders { +/** 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 NamedValue_refreshSecret operation. */ -export interface NamedValueRefreshSecretHeaders { +/** 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 OpenIdConnectProvider_getEntityTag operation. */ -export interface OpenIdConnectProviderGetEntityTagHeaders { +/** 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 OpenIdConnectProvider_get operation. */ -export interface OpenIdConnectProviderGetHeaders { +/** 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 OpenIdConnectProvider_createOrUpdate operation. */ -export interface OpenIdConnectProviderCreateOrUpdateHeaders { +/** 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 OpenIdConnectProvider_update operation. */ -export interface OpenIdConnectProviderUpdateHeaders { +/** 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 OpenIdConnectProvider_listSecrets operation. */ -export interface OpenIdConnectProviderListSecretsHeaders { +/** 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 Policy_getEntityTag operation. */ -export interface PolicyGetEntityTagHeaders { +/** 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 Policy_get operation. */ -export interface PolicyGetHeaders { +/** 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 Policy_createOrUpdate operation. */ -export interface PolicyCreateOrUpdateHeaders { - /** Current entity state version */ +/** 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 PolicyFragment_getEntityTag operation. */ -export interface PolicyFragmentGetEntityTagHeaders { +/** 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 PolicyFragment_get operation. */ -export interface PolicyFragmentGetHeaders { +/** 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 PolicyFragment_createOrUpdate operation. */ -export interface PolicyFragmentCreateOrUpdateHeaders { - /** Current entity state version */ +/** 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 PortalConfig_getEntityTag operation. */ -export interface PortalConfigGetEntityTagHeaders { +/** 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 PortalConfig_get operation. */ -export interface PortalConfigGetHeaders { +/** 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 PortalRevision_getEntityTag operation. */ -export interface PortalRevisionGetEntityTagHeaders { +/** 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 PortalRevision_get operation. */ -export interface PortalRevisionGetHeaders { +/** 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 PortalRevision_createOrUpdate operation. */ -export interface PortalRevisionCreateOrUpdateHeaders { +/** 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 PortalRevision_update operation. */ -export interface PortalRevisionUpdateHeaders { +/** 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 SignInSettings_getEntityTag operation. */ -export interface SignInSettingsGetEntityTagHeaders { +/** 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 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 headers for ApiManagementClient_performConnectivityCheckAsync operation. */ +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + location?: string; } -/** Defines headers for SignUpSettings_getEntityTag operation. */ -export interface SignUpSettingsGetEntityTagHeaders { +/** 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 SignUpSettings_get operation. */ -export interface SignUpSettingsGetHeaders { +/** 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 DelegationSettings_getEntityTag operation. */ -export interface DelegationSettingsGetEntityTagHeaders { +/** 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; } -/** Defines headers for DelegationSettings_get operation. */ -export interface DelegationSettingsGetHeaders { +/** 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 headers for Product_getEntityTag operation. */ -export interface ProductGetEntityTagHeaders { +/** 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 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 headers for DeletedServices_purge operation. */ +export interface DeletedServicesPurgeHeaders { + location?: 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; +/** Defines headers for ApiManagementService_restore operation. */ +export interface ApiManagementServiceRestoreHeaders { + location?: string; } -/** 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 headers for ApiManagementService_backup operation. */ +export interface ApiManagementServiceBackupHeaders { + location?: 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; +/** Defines headers for ApiManagementService_update operation. */ +export interface ApiManagementServiceUpdateHeaders { + /** Location header */ + location?: string; } -/** 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 headers for ApiManagementService_delete operation. */ +export interface ApiManagementServiceDeleteHeaders { + /** Location header */ + location?: 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; +/** Defines headers for ApiManagementService_migrateToStv2 operation. */ +export interface ApiManagementServiceMigrateToStv2Headers { + location?: string; } -/** Defines headers for ProductWiki_getEntityTag operation. */ -export interface ProductWikiGetEntityTagHeaders { +/** Defines headers for ApiManagementService_applyNetworkConfigurationUpdates operation. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + location?: string; +} + +/** 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 headers for ProductWiki_get operation. */ -export interface ProductWikiGetHeaders { +/** 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; } -/** Defines headers for ProductWiki_createOrUpdate operation. */ -export interface ProductWikiCreateOrUpdateHeaders { +/** 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 headers for ProductWiki_update operation. */ -export interface ProductWikiUpdateHeaders { +/** 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; } -/** Defines headers for ProductWikis_list operation. */ -export interface ProductWikisListHeaders { +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ProductWikis_listNext operation. */ -export interface ProductWikisListNextHeaders { +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GlobalSchema_getEntityTag operation. */ -export interface GlobalSchemaGetEntityTagHeaders { +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GlobalSchema_get operation. */ -export interface GlobalSchemaGetHeaders { +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for GlobalSchema_createOrUpdate operation. */ -export interface GlobalSchemaCreateOrUpdateHeaders { +/** 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 headers for TenantSettings_get operation. */ -export interface TenantSettingsGetHeaders { +/** 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; } -/** Defines headers for Subscription_getEntityTag operation. */ -export interface SubscriptionGetEntityTagHeaders { +/** 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 headers for Subscription_get operation. */ -export interface SubscriptionGetHeaders { +/** 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; } -/** Defines headers for Subscription_createOrUpdate operation. */ -export interface SubscriptionCreateOrUpdateHeaders { +/** 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 headers for Subscription_update operation. */ -export interface SubscriptionUpdateHeaders { +/** 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; } -/** Defines headers for Subscription_listSecrets operation. */ -export interface SubscriptionListSecretsHeaders { +/** 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 headers for TenantAccess_getEntityTag operation. */ -export interface TenantAccessGetEntityTagHeaders { +/** 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; } -/** Defines headers for TenantAccess_get operation. */ -export interface TenantAccessGetHeaders { +/** 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 headers for TenantAccess_create operation. */ -export interface TenantAccessCreateHeaders { +/** 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; } -/** Defines headers for TenantAccess_update operation. */ -export interface TenantAccessUpdateHeaders { +/** 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 headers for TenantAccess_listSecrets operation. */ -export interface TenantAccessListSecretsHeaders { +/** 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; } -/** Defines headers for User_getEntityTag operation. */ -export interface UserGetEntityTagHeaders { +/** 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 headers for User_get operation. */ -export interface UserGetHeaders { +/** 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; } -/** Defines headers for User_createOrUpdate operation. */ -export interface UserCreateOrUpdateHeaders { +/** 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 headers for User_update operation. */ -export interface UserUpdateHeaders { +/** Defines headers for ApiManagementGatewayConfigConnection_delete operation. */ +export interface ApiManagementGatewayConfigConnectionDeleteHeaders { + /** Location header */ + location?: 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; } -/** Defines headers for UserSubscription_get operation. */ -export interface UserSubscriptionGetHeaders { +/** 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 headers for Documentation_getEntityTag operation. */ -export interface DocumentationGetEntityTagHeaders { +/** 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; } -/** Defines headers for Documentation_get operation. */ -export interface DocumentationGetHeaders { +/** 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 headers for Documentation_createOrUpdate operation. */ -export interface DocumentationCreateOrUpdateHeaders { +/** 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; } -/** Defines headers for Documentation_update operation. */ -export interface DocumentationUpdateHeaders { +/** 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; } -/** 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 IdentityProvider_createOrUpdate operation. */ +export interface IdentityProviderCreateOrUpdateHeaders { + /** 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 { - /** 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_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 ApiVersionSetContractDetailsVersioningScheme. \ - * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Segment**: The API Version is passed in a path segment. \ - * **Query**: The API Version is passed in a query parameter. \ - * **Header**: The API Version is passed in a HTTP header. - */ -export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Defines headers for 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 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 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 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 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 ApiType} that the service accepts. */ -export enum KnownApiType { - /** Http */ - Http = "http", - /** Soap */ - Soap = "soap", - /** Websocket */ - Websocket = "websocket", - /** Graphql */ - Graphql = "graphql" +/** 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 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 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 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 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 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 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 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 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 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 NamedValue_createOrUpdate operation. */ +export interface NamedValueCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ -export enum KnownTranslateRequiredQueryParametersConduct { - /** Translates required query parameters to template ones. Is a default value */ - Template = "template", - /** Leaves required query parameters as they are (no translation done). */ - Query = "query" +/** Defines headers for 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 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 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 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 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 PolicyIdName} that the service accepts. */ -export enum KnownPolicyIdName { - /** Policy */ - Policy = "policy" +/** 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 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 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 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 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 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 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 AlwaysLog} that the service accepts. */ -export enum KnownAlwaysLog { - /** Always log all erroneous request regardless of sampling settings. */ - AllErrors = "allErrors" +/** 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 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 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 SamplingType} that the service accepts. */ -export enum KnownSamplingType { - /** Fixed-rate sampling. */ - Fixed = "fixed" +/** 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 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 Policy_createOrUpdate operation. */ +export interface PolicyCreateOrUpdateHeaders { + /** Current entity state version */ + 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 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 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 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 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 PolicyFragment_createOrUpdate operation. */ +export interface PolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines 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 PolicyRestriction_getEntityTag operation. */ +export interface PolicyRestrictionGetEntityTagHeaders { + /** 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 PolicyRestriction_get operation. */ +export interface PolicyRestrictionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines 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 PolicyRestriction_createOrUpdate operation. */ +export interface PolicyRestrictionCreateOrUpdateHeaders { + /** Current entity state version */ + 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 PolicyRestriction_update operation. */ +export interface PolicyRestrictionUpdateHeaders { + /** Current entity state version */ + 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 PolicyRestrictionValidations_byService operation. */ +export interface PolicyRestrictionValidationsByServiceHeaders { + /** location of the header. */ + location?: 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 PortalConfig_getEntityTag operation. */ +export interface PortalConfigGetEntityTagHeaders { + /** 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 PortalConfig_get operation. */ +export interface PortalConfigGetHeaders { + /** 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 PortalRevision_getEntityTag operation. */ +export interface PortalRevisionGetEntityTagHeaders { + /** 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; - -/** Known values of {@link ExportApi} that the service accepts. */ -export enum KnownExportApi { - /** True */ - True = "true" +/** 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 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 PortalRevision_createOrUpdate operation. */ +export interface PortalRevisionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} -/** 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 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 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 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 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 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 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 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 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 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 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 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 ClientAuthenticationMethod} that the service accepts. */ -export enum KnownClientAuthenticationMethod { - /** Basic Client Authentication method. */ - Basic = "Basic", - /** Body based Authentication method. */ - Body = "Body" +/** 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 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 PrivateEndpointConnection_createOrUpdate operation. */ +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + /** Location header */ + location?: string; +} -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - /** AuthorizationHeader */ - AuthorizationHeader = "authorizationHeader", - /** Query */ - Query = "query" +/** Defines headers for PrivateEndpointConnection_delete operation. */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** Location header */ + location?: 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 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 AuthorizationType} that the service accepts. */ -export enum KnownAuthorizationType { - /** OAuth2 authorization type */ - OAuth2 = "OAuth2" +/** 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 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; +/** 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 OAuth2GrantType} that the service accepts. */ -export enum KnownOAuth2GrantType { - /** Authorization Code grant */ - AuthorizationCode = "AuthorizationCode", - /** Client Credential grant */ - ClientCredentials = "ClientCredentials" +/** 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 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; +/** 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 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 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 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 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 PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - /** IPv4 */ - IPv4 = "IPv4" +/** 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 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 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 ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - /** TCP */ - TCP = "TCP", - /** Http */ - Http = "HTTP", - /** Https */ - Https = "HTTPS" +/** 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 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; +/** 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 Method} that the service accepts. */ -export enum KnownMethod { - /** GET */ - GET = "GET", - /** Post */ - Post = "POST" +/** 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 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 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 Origin} that the service accepts. */ -export enum KnownOrigin { - /** Local */ - Local = "Local", - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound" +/** 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 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 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 Severity} that the service accepts. */ -export enum KnownSeverity { - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning" +/** 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 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 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 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 GlobalSchema_createOrUpdate operation. */ +export interface GlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines 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 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 ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - /** Unknown */ - Unknown = "Unknown", - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Degraded */ - Degraded = "Degraded" +/** 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 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 Subscription_get operation. */ +export interface SubscriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + 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 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 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 Subscription_update operation. */ +export interface SubscriptionUpdateHeaders { + /** 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 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 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 TagApiLink_get operation. */ +export interface TagApiLinkGetHeaders { + /** 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 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 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 TagProductLink_get operation. */ +export interface TagProductLinkGetHeaders { + /** 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 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 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 TenantAccess_get operation. */ +export interface TenantAccessGetHeaders { + /** 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 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 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 TenantAccess_update operation. */ +export interface TenantAccessUpdateHeaders { + /** 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 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 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 TenantConfiguration_deploy operation. */ +export interface TenantConfigurationDeployHeaders { + location?: string; +} -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Defines headers for TenantConfiguration_save operation. */ +export interface TenantConfigurationSaveHeaders { + location?: 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 TenantConfiguration_validate operation. */ +export interface TenantConfigurationValidateHeaders { + location?: 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 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 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; +/** 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; +} -/** 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 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 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 User_update operation. */ +export interface UserUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ -export enum KnownCertificateConfigurationStoreName { - /** CertificateAuthority */ - CertificateAuthority = "CertificateAuthority", - /** Root */ - Root = "Root" +/** Defines headers for User_delete operation. */ +export interface UserDeleteHeaders { + /** Location header */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; } -/** - * Defines 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 UserSubscription_get operation. */ +export interface UserSubscriptionGetHeaders { + /** 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 WorkspaceBackend_getEntityTag operation. */ +export interface WorkspaceBackendGetEntityTagHeaders { + /** 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 WorkspaceBackend_get operation. */ +export interface WorkspaceBackendGetHeaders { + /** 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 WorkspaceBackend_createOrUpdate operation. */ +export interface WorkspaceBackendCreateOrUpdateHeaders { + /** 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 WorkspaceBackend_update operation. */ +export interface WorkspaceBackendUpdateHeaders { + /** 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 WorkspaceCertificate_getEntityTag operation. */ +export interface WorkspaceCertificateGetEntityTagHeaders { + /** 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 WorkspaceCertificate_get operation. */ +export interface WorkspaceCertificateGetHeaders { + /** 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 WorkspaceCertificate_createOrUpdate operation. */ +export interface WorkspaceCertificateCreateOrUpdateHeaders { + /** 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 WorkspaceCertificate_refreshSecret operation. */ +export interface WorkspaceCertificateRefreshSecretHeaders { + /** 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 WorkspaceDiagnostic_getEntityTag operation. */ +export interface WorkspaceDiagnosticGetEntityTagHeaders { + /** 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 WorkspaceDiagnostic_get operation. */ +export interface WorkspaceDiagnosticGetHeaders { + /** 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 WorkspaceDiagnostic_createOrUpdate operation. */ +export interface WorkspaceDiagnosticCreateOrUpdateHeaders { + /** 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 WorkspaceDiagnostic_update operation. */ +export interface WorkspaceDiagnosticUpdateHeaders { + /** 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 WorkspaceApiDiagnostic_getEntityTag operation. */ +export interface WorkspaceApiDiagnosticGetEntityTagHeaders { + /** 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 WorkspaceApiDiagnostic_get operation. */ +export interface WorkspaceApiDiagnosticGetHeaders { + /** 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 WorkspaceApiDiagnostic_createOrUpdate operation. */ +export interface WorkspaceApiDiagnosticCreateOrUpdateHeaders { + /** 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 WorkspaceApiDiagnostic_update operation. */ +export interface WorkspaceApiDiagnosticUpdateHeaders { + /** 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 WorkspaceLogger_getEntityTag operation. */ +export interface WorkspaceLoggerGetEntityTagHeaders { + /** 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 WorkspaceLogger_get operation. */ +export interface WorkspaceLoggerGetHeaders { + /** 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 WorkspaceLogger_createOrUpdate operation. */ +export interface WorkspaceLoggerCreateOrUpdateHeaders { + /** 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 WorkspaceLogger_update operation. */ +export interface WorkspaceLoggerUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: 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 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 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; +/** 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; +} -/** 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 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 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; +/** Defines headers for Workspace_update operation. */ +export interface WorkspaceUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link 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 headers for WorkspacePolicy_getEntityTag operation. */ +export interface WorkspacePolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for 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; +/** Defines headers for WorkspacePolicy_get operation. */ +export interface WorkspacePolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +/** Defines headers for WorkspacePolicy_createOrUpdate operation. */ +export interface WorkspacePolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for 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; +/** Defines headers for WorkspaceNamedValue_getEntityTag operation. */ +export interface WorkspaceNamedValueGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SchemaType} that the service accepts. */ -export enum KnownSchemaType { - /** XML schema type. */ - Xml = "xml", - /** Json schema type. */ - Json = "json" +/** 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for 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; + /** Location header contains the URL where the status of the long running operation can be checked */ + location?: string; + /** Azure-AsyncOperation header contains the URL where the status of the long running operation can be checked */ + azureAsyncOperation?: string; +} + +/** Defines headers for WorkspaceProduct_getEntityTag operation. */ +export interface WorkspaceProductGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_get operation. */ +export interface WorkspaceProductGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_createOrUpdate operation. */ +export interface WorkspaceProductCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_update operation. */ +export interface WorkspaceProductUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductApiLink_get operation. */ +export interface WorkspaceProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductGroupLink_get operation. */ +export interface WorkspaceProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_getEntityTag operation. */ +export interface WorkspaceProductPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_get operation. */ +export interface WorkspaceProductPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_createOrUpdate operation. */ +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_getEntityState operation. */ +export interface WorkspaceTagGetEntityStateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_get operation. */ +export interface WorkspaceTagGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_createOrUpdate operation. */ +export interface WorkspaceTagCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_update operation. */ +export interface WorkspaceTagUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagApiLink_get operation. */ +export interface WorkspaceTagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagOperationLink_get operation. */ +export interface WorkspaceTagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagProductLink_get operation. */ +export interface WorkspaceTagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for OperationsResults_get operation. */ +export interface OperationsResultsGetHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Known values of {@link PolicyComplianceState} that the service accepts. */ +export enum KnownPolicyComplianceState { + /** The policy restriction compliance state has not yet been determined. */ + Pending = "Pending", + /** The scope in restriction is out of compliance. */ + NonCompliant = "NonCompliant", + /** The scope in restriction is in compliance. */ + Compliant = "Compliant", } /** - * Defines values for SchemaType. \ - * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * Defines values for PolicyComplianceState. \ + * {@link KnownPolicyComplianceState} can be used interchangeably with PolicyComplianceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: XML schema type. \ - * **json**: Json schema type. + * **Pending**: The policy restriction compliance state has not yet been determined. \ + * **NonCompliant**: The scope in restriction is out of compliance. \ + * **Compliant**: The scope in restriction is in compliance. */ -export type SchemaType = string; +export type PolicyComplianceState = string; + +/** Known values of {@link VirtualNetworkType} that the service accepts. */ +export enum KnownVirtualNetworkType { + /** The API Management gateway is not part of any Virtual Network. */ + None = "None", + /** The API Management gateway is part of Virtual Network and it is accessible from Internet. */ + External = "External", + /** The API Management gateway 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 API Management gateway is not part of any Virtual Network. \ + * **External**: The API Management gateway is part of Virtual Network and it is accessible from Internet. \ + * **Internal**: The API Management gateway is part of Virtual Network and it is only accessible from within the virtual network. + */ +export type VirtualNetworkType = string; + +/** Known values of {@link SkuType} that the service accepts. */ +export enum KnownSkuType { + /** Standard SKU of the API gateway. */ + Standard = "Standard", + /** Standard SKU of the API gateway to be used in Workspaces. */ + WorkspaceGatewayStandard = "WorkspaceGatewayStandard", + /** Premium SKU of the API gateway to be used in Workspaces. */ + WorkspaceGatewayPremium = "WorkspaceGatewayPremium", +} + +/** + * 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 + * **Standard**: Standard SKU of the API gateway. \ + * **WorkspaceGatewayStandard**: Standard SKU of the API gateway to be used in Workspaces. \ + * **WorkspaceGatewayPremium**: Premium SKU of the API gateway to be used in Workspaces. + */ +export type SkuType = 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 GatewaySkuCapacityScaleType} that the service accepts. */ +export enum KnownGatewaySkuCapacityScaleType { + /** Supported scale type automatic. */ + Automatic = "Automatic", + /** Supported scale type manual. */ + Manual = "Manual", + /** Scaling not supported. */ + None = "None", +} + +/** + * Defines values for GatewaySkuCapacityScaleType. \ + * {@link KnownGatewaySkuCapacityScaleType} can be used interchangeably with GatewaySkuCapacityScaleType, + * 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 GatewaySkuCapacityScaleType = 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 ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ +export enum KnownApiVersionSetContractDetailsVersioningScheme { + /** The API Version is passed in a path segment. */ + Segment = "Segment", + /** The API Version is passed in a query parameter. */ + Query = "Query", + /** The API Version is passed in a HTTP header. */ + Header = "Header", +} + +/** + * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ + * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Segment**: The API Version is passed in a path segment. \ + * **Query**: The API Version is passed in a query parameter. \ + * **Header**: The API Version is passed in a HTTP header. + */ +export type ApiVersionSetContractDetailsVersioningScheme = string; + +/** 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", + /** Odata */ + Odata = "odata", + /** Grpc */ + Grpc = "grpc", +} + +/** + * 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** \ + * **odata** \ + * **grpc** + */ +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", + /** The contents are inline and Content Type is a OData XML Document. */ + Odata = "odata", + /** The OData metadata document hosted on a publicly accessible internet address. */ + OdataLink = "odata-link", + /** The contents are inline and Content Type is a gRPC protobuf file. */ + Grpc = "grpc", + /** The gRPC protobuf file is hosted on a publicly accessible internet address. */ + GrpcLink = "grpc-link", +} + +/** + * Defines values for 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. \ + * **odata**: The contents are inline and Content Type is a OData XML Document. \ + * **odata-link**: The OData metadata document hosted on a publicly accessible internet address. \ + * **grpc**: The contents are inline and Content Type is a gRPC protobuf file. \ + * **grpc-link**: The gRPC protobuf file is hosted on a publicly accessible internet address. + */ +export type 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", + /** Imports the API having a OData front end. */ + OData = "odata", + /** Imports the API having a gRPC front end. */ + GRPC = "grpc", +} + +/** + * 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. \ + * **odata**: Imports the API having a OData front end. \ + * **grpc**: Imports the API having a gRPC 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 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 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 BackendType} that the service accepts. */ +export enum KnownBackendType { + /** supports single backend */ + Single = "Single", + /** supports pool backend */ + Pool = "Pool", +} + +/** + * Defines values for BackendType. \ + * {@link KnownBackendType} can be used interchangeably with BackendType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Single**: supports single backend \ + * **Pool**: supports pool backend + */ +export type BackendType = 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 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", + /** ConfigurationApi */ + ConfigurationApi = "ConfigurationApi", +} + +/** + * 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** \ + * **ConfigurationApi** + */ +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 LegacyApiState} that the service accepts. */ +export enum KnownLegacyApiState { + /** Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. */ + Enabled = "Enabled", + /** Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ + Disabled = "Disabled", +} + +/** + * Defines values for LegacyApiState. \ + * {@link KnownLegacyApiState} can be used interchangeably with LegacyApiState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. \ + * **Disabled**: Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. + */ +export type LegacyApiState = 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 PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected", +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link LegacyPortalStatus} that the service accepts. */ +export enum KnownLegacyPortalStatus { + /** Legacy Portal is enabled for the service. */ + Enabled = "Enabled", + /** Legacy Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for LegacyPortalStatus. \ + * {@link KnownLegacyPortalStatus} can be used interchangeably with LegacyPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Legacy Portal is enabled for the service. \ + * **Disabled**: Legacy Portal is disabled for the service. + */ +export type LegacyPortalStatus = string; + +/** Known values of {@link DeveloperPortalStatus} that the service accepts. */ +export enum KnownDeveloperPortalStatus { + /** Developer Portal is enabled for the service. */ + Enabled = "Enabled", + /** Developer Portal is disabled for the service. */ + Disabled = "Disabled", +} + +/** + * Defines values for DeveloperPortalStatus. \ + * {@link KnownDeveloperPortalStatus} can be used interchangeably with DeveloperPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Developer Portal is enabled for the service. \ + * **Disabled**: Developer Portal is disabled for the service. + */ +export type DeveloperPortalStatus = string; + +/** Known values of {@link ApimIdentityType} that the service accepts. */ +export enum KnownApimIdentityType { + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + /** None */ + None = "None", +} + +/** + * Defines values for ApimIdentityType. \ + * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** \ + * **None** + */ +export type ApimIdentityType = string; + +/** Known values of {@link MigrateToStv2Mode} that the service accepts. */ +export enum KnownMigrateToStv2Mode { + /** Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. */ + PreserveIp = "PreserveIp", + /** Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. */ + NewIP = "NewIP", +} + +/** + * Defines values for MigrateToStv2Mode. \ + * {@link KnownMigrateToStv2Mode} can be used interchangeably with MigrateToStv2Mode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PreserveIp**: Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. \ + * **NewIP**: Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. + */ +export type MigrateToStv2Mode = string; + +/** Known values of {@link TemplateName} that the service accepts. */ +export enum KnownTemplateName { + /** ApplicationApprovedNotificationMessage */ + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", + /** AccountClosedDeveloper */ + AccountClosedDeveloper = "accountClosedDeveloper", + /** QuotaLimitApproachingDeveloperNotificationMessage */ + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", + /** NewDeveloperNotificationMessage */ + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", + /** EmailChangeIdentityDefault */ + EmailChangeIdentityDefault = "emailChangeIdentityDefault", + /** InviteUserNotificationMessage */ + InviteUserNotificationMessage = "inviteUserNotificationMessage", + /** NewCommentNotificationMessage */ + NewCommentNotificationMessage = "newCommentNotificationMessage", + /** ConfirmSignUpIdentityDefault */ + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", + /** NewIssueNotificationMessage */ + NewIssueNotificationMessage = "newIssueNotificationMessage", + /** PurchaseDeveloperNotificationMessage */ + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", + /** PasswordResetIdentityDefault */ + PasswordResetIdentityDefault = "passwordResetIdentityDefault", + /** PasswordResetByAdminNotificationMessage */ + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", + /** RejectDeveloperNotificationMessage */ + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", + /** RequestDeveloperNotificationMessage */ + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage", +} + +/** + * Defines values for TemplateName. \ + * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **applicationApprovedNotificationMessage** \ + * **accountClosedDeveloper** \ + * **quotaLimitApproachingDeveloperNotificationMessage** \ + * **newDeveloperNotificationMessage** \ + * **emailChangeIdentityDefault** \ + * **inviteUserNotificationMessage** \ + * **newCommentNotificationMessage** \ + * **confirmSignUpIdentityDefault** \ + * **newIssueNotificationMessage** \ + * **purchaseDeveloperNotificationMessage** \ + * **passwordResetIdentityDefault** \ + * **passwordResetByAdminNotificationMessage** \ + * **rejectDeveloperNotificationMessage** \ + * **requestDeveloperNotificationMessage** + */ +export type TemplateName = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Activating */ + Activating = "Activating", + /** Canceled */ + Canceled = "Canceled", + /** Failed */ + Failed = "Failed", + /** Succeeded */ + Succeeded = "Succeeded", + /** Terminating */ + Terminating = "Terminating", + /** Upgrading */ + Upgrading = "Upgrading", + /** Updating */ + Updating = "Updating", + /** Created */ + Created = "created", +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Activating** \ + * **Canceled** \ + * **Failed** \ + * **Succeeded** \ + * **Terminating** \ + * **Upgrading** \ + * **Updating** \ + * **created** + */ +export type ProvisioningState = string; + +/** Known values of {@link GatewayListDebugCredentialsContractPurpose} that the service accepts. */ +export enum KnownGatewayListDebugCredentialsContractPurpose { + /** The tracing purpose. */ + Tracing = "tracing", +} + +/** + * Defines values for GatewayListDebugCredentialsContractPurpose. \ + * {@link KnownGatewayListDebugCredentialsContractPurpose} can be used interchangeably with GatewayListDebugCredentialsContractPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tracing**: The tracing purpose. + */ +export type GatewayListDebugCredentialsContractPurpose = string; + +/** Known values of {@link UserState} that the service accepts. */ +export enum KnownUserState { + /** User state is active. */ + Active = "active", + /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ + Blocked = "blocked", + /** User account is pending. Requires identity confirmation before it can be made active. */ + Pending = "pending", + /** User account is closed. All identities and related entities are removed. */ + Deleted = "deleted", +} + +/** + * Defines values for UserState. \ + * {@link KnownUserState} can be used interchangeably with UserState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **active**: User state is active. \ + * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ + * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ + * **deleted**: User account is closed. All identities and related entities are removed. + */ +export type UserState = string; + +/** Known values of {@link IdentityProviderType} that the service accepts. */ +export enum KnownIdentityProviderType { + /** Facebook as Identity provider. */ + Facebook = "facebook", + /** Google as Identity provider. */ + Google = "google", + /** Microsoft Live as Identity provider. */ + Microsoft = "microsoft", + /** Twitter as Identity provider. */ + Twitter = "twitter", + /** Azure Active Directory as Identity provider. */ + Aad = "aad", + /** Azure Active Directory B2C as Identity provider. */ + AadB2C = "aadB2C", +} + +/** + * Defines values for IdentityProviderType. \ + * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **facebook**: Facebook as Identity provider. \ + * **google**: Google as Identity provider. \ + * **microsoft**: Microsoft Live as Identity provider. \ + * **twitter**: Twitter as Identity provider. \ + * **aad**: Azure Active Directory as Identity provider. \ + * **aadB2C**: Azure Active Directory B2C as Identity provider. + */ +export type IdentityProviderType = string; + +/** Known values of {@link LoggerType} that the service accepts. */ +export enum KnownLoggerType { + /** Azure Event Hub as log destination. */ + AzureEventHub = "azureEventHub", + /** Azure Application Insights as log destination. */ + ApplicationInsights = "applicationInsights", + /** Azure Monitor */ + AzureMonitor = "azureMonitor", +} + +/** + * Defines values for LoggerType. \ + * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azureEventHub**: Azure Event Hub as log destination. \ + * **applicationInsights**: Azure Application Insights as log destination. \ + * **azureMonitor**: Azure Monitor + */ +export type LoggerType = string; + +/** Known values of {@link ConnectivityStatusType} that the service accepts. */ +export enum KnownConnectivityStatusType { + /** Initializing */ + Initializing = "initializing", + /** Success */ + Success = "success", + /** Failure */ + Failure = "failure", +} + +/** + * Defines values for ConnectivityStatusType. \ + * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **initializing** \ + * **success** \ + * **failure** + */ +export type ConnectivityStatusType = string; + +/** Known values of {@link NotificationName} that the service accepts. */ +export enum KnownNotificationName { + /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", + /** The following email recipients and users will receive email notifications about new API product subscriptions. */ + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ + NewApplicationNotificationMessage = "NewApplicationNotificationMessage", + /** The following recipients will receive blind carbon copies of all emails sent to developers. */ + BCC = "BCC", + /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when developer closes his account. */ + AccountClosedPublisher = "AccountClosedPublisher", + /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage", +} + +/** + * Defines values for NotificationName. \ + * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ + * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ + * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ + * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ + * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ + * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ + * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + */ +export type NotificationName = string; + +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PolicyRestrictionRequireBase} that the service accepts. */ +export enum KnownPolicyRestrictionRequireBase { + /** The policy is required to have base policy */ + True = "true", + /** The policy does not require to have base policy */ + False = "false", +} + +/** + * Defines values for PolicyRestrictionRequireBase. \ + * {@link KnownPolicyRestrictionRequireBase} can be used interchangeably with PolicyRestrictionRequireBase, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: The policy is required to have base policy \ + * **false**: The policy does not require to have base policy + */ +export type PolicyRestrictionRequireBase = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly", +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + +/** Known values of {@link PortalRevisionStatus} that the service accepts. */ +export enum KnownPortalRevisionStatus { + /** Portal's revision has been queued. */ + Pending = "pending", + /** Portal's revision is being published. */ + Publishing = "publishing", + /** Portal's revision publishing completed. */ + Completed = "completed", + /** Portal's revision publishing failed. */ + Failed = "failed", +} + +/** + * Defines values for PortalRevisionStatus. \ + * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **pending**: Portal's revision has been queued. \ + * **publishing**: Portal's revision is being published. \ + * **completed**: Portal's revision publishing completed. \ + * **failed**: Portal's revision publishing failed. + */ +export type PortalRevisionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed", +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link SchemaType} that the service accepts. */ +export enum KnownSchemaType { + /** XML schema type. */ + Xml = "xml", + /** Json schema type. */ + Json = "json", +} + +/** + * Defines values for SchemaType. \ + * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: XML schema type. \ + * **json**: Json schema type. + */ +export type SchemaType = string; + +/** Known values of {@link SettingsTypeName} that the service accepts. */ +export enum KnownSettingsTypeName { + /** Public */ + Public = "public", +} + +/** + * Defines values for SettingsTypeName. \ + * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **public** + */ +export type SettingsTypeName = string; + +/** Known values of {@link AppType} that the service accepts. */ +export enum KnownAppType { + /** User create request was sent by legacy developer portal. */ + Portal = "portal", + /** User create request was sent by new developer portal. */ + DeveloperPortal = "developerPortal", +} + +/** + * Defines values for AppType. \ + * {@link KnownAppType} can be used interchangeably with AppType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **portal**: User create request was sent by legacy developer portal. \ + * **developerPortal**: User create request was sent by new developer portal. + */ +export type AppType = string; + +/** Known values of {@link AccessIdName} that the service accepts. */ +export enum KnownAccessIdName { + /** Access */ + Access = "access", + /** GitAccess */ + GitAccess = "gitAccess", +} + +/** + * Defines values for AccessIdName. \ + * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **access** \ + * **gitAccess** + */ +export type AccessIdName = string; + +/** Known values of {@link ConfigurationIdName} that the service accepts. */ +export enum KnownConfigurationIdName { + /** Configuration */ + Configuration = "configuration", +} + +/** + * Defines values for ConfigurationIdName. \ + * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **configuration** + */ +export type ConfigurationIdName = string; + +/** Known values of {@link Confirmation} that the service accepts. */ +export enum KnownConfirmation { + /** Send an e-mail to the user confirming they have successfully signed up. */ + Signup = "signup", + /** Send an e-mail inviting the user to sign-up and complete registration. */ + Invite = "invite", +} + +/** + * Defines values for Confirmation. \ + * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ + * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + */ +export type Confirmation = string; + +/** Known values of {@link KeyVaultRefreshState} that the service accepts. */ +export enum KnownKeyVaultRefreshState { + /** Entities for which KeyVault refresh failed. */ + True = "true", + /** Entities for which KeyVault refresh succeeded */ + False = "false", +} + +/** + * Defines values for KeyVaultRefreshState. \ + * {@link KnownKeyVaultRefreshState} can be used interchangeably with KeyVaultRefreshState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: Entities for which KeyVault refresh failed. \ + * **false**: Entities for which KeyVault refresh succeeded + */ +export type KeyVaultRefreshState = string; +/** Defines values for ProductState. */ +export type ProductState = "notPublished" | "published"; +/** Defines values for AuthorizationMethod. */ +export type AuthorizationMethod = + | "HEAD" + | "OPTIONS" + | "TRACE" + | "GET" + | "POST" + | "PUT" + | "PATCH" + | "DELETE"; +/** Defines values for NameAvailabilityReason. */ +export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; +/** Defines values for KeyType. */ +export type KeyType = "primary" | "secondary"; +/** Defines values for GroupType. */ +export type GroupType = "custom" | "system" | "external"; +/** Defines values for PolicyScopeContract. */ +export type PolicyScopeContract = + | "Tenant" + | "Product" + | "Api" + | "Operation" + | "All"; +/** Defines values for AsyncOperationStatus. */ +export type AsyncOperationStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; +/** Defines values for SubscriptionState. */ +export type SubscriptionState = + | "suspended" + | "active" + | "expired" + | "submitted" + | "rejected" + | "cancelled"; +/** Defines values for ApiManagementSkuCapacityScaleType. */ +export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +/** Defines values for ApiManagementSkuRestrictionsType. */ +export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; +/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ +export type ApiManagementSkuRestrictionsReasonCode = + | "QuotaId" + | "NotAvailableForSubscription"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type AllPoliciesListByServiceResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface AllPoliciesListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AllPoliciesListByServiceNextResponse = AllPoliciesCollection; + +/** Optional parameters. */ +export interface ApiManagementGatewayCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiManagementGatewayCreateOrUpdateResponse = + ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ApiManagementGatewayUpdateResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiManagementGatewayGetResponse = ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ApiManagementGatewayDeleteResponse = + ApiManagementGatewayDeleteHeaders & ApiManagementGatewayResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementGatewayListByResourceGroupResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementGatewayListResponse = ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementGatewayListByResourceGroupNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewayListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementGatewayListNextResponse = + ApiManagementGatewayListResult; + +/** Optional parameters. */ +export interface ApiManagementGatewaySkusListAvailableSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableSkus operation. */ +export type ApiManagementGatewaySkusListAvailableSkusResponse = + GatewayResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementGatewaySkusListAvailableSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableSkusNext operation. */ +export type ApiManagementGatewaySkusListAvailableSkusNextResponse = + GatewayResourceSkuResults; + +/** Optional parameters. */ +export interface ApiListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiListByServiceResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiGetResponse = ApiGetHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ApiDeleteResponse = ApiDeleteHeaders; + +/** Optional parameters. */ +export interface ApiListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged APIs. */ + includeNotTaggedApis?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type ApiListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiListByServiceNextResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type ApiListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiRevisionListByServiceResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiReleaseListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiReleaseListByServiceResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiReleaseGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiReleaseGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiReleaseListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiOperationListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; +} + +/** Contains response data for the listByApi operation. */ +export type ApiOperationListByApiResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiOperationGetResponse = ApiOperationGetHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationCreateOrUpdateResponse = + ApiOperationCreateOrUpdateHeaders & OperationContract; + +/** Optional parameters. */ +export interface ApiOperationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiOperationListByApiNextResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type ApiOperationPolicyListByOperationResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationPolicyGetEntityTagResponse = + ApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationPolicyCreateOrUpdateResponse = + ApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByOperation operation. */ +export type TagListByOperationResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByOperation operation. */ +export type TagGetEntityStateByOperationResponse = + TagGetEntityStateByOperationHeaders; + +/** Optional parameters. */ +export interface TagGetByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByOperation operation. */ +export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToOperation operation. */ +export type TagAssignToOperationResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type TagListByApiResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByApi operation. */ +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; + +/** Optional parameters. */ +export interface TagGetByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByApi operation. */ +export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToApi operation. */ +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDetachFromApiOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type TagListByProductResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByProduct operation. */ +export type TagGetEntityStateByProductResponse = + TagGetEntityStateByProductHeaders; + +/** Optional parameters. */ +export interface TagGetByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByProduct operation. */ +export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToProduct operation. */ +export type TagAssignToProductResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromProductOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; +} + +/** Contains response data for the listByService operation. */ +export type TagListByServiceResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityState operation. */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; + +/** Optional parameters. */ +export interface TagGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagGetResponse = TagGetHeaders & TagContract; + +/** Optional parameters. */ +export interface TagCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type TagUpdateResponse = TagUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type TagListByOperationNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type TagListByApiNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagListByProductNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type TagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = + GraphQLApiResolverGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverCreateOrUpdateResponse = + GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = + GraphQLApiResolverPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = + GraphQLApiResolverPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = + GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = + PolicyCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApis operation. */ +export type ApiProductListByApisResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApisNext operation. */ +export type ApiProductListByApisNextResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiPolicyListByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApi operation. */ +export type ApiPolicyListByApiResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiSchemaListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type ApiSchemaListByApiResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiSchemaGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & + SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaDeleteOptionalParams + extends coreClient.OperationOptions { + /** If true removes all references to the schema before deleting it. */ + force?: boolean; +} + +/** Optional parameters. */ +export interface ApiSchemaListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiDiagnosticGetEntityTagResponse = + ApiDiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiDiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiDiagnosticCreateOrUpdateResponse = + ApiDiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiIssueListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueListByServiceResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the get operation. */ +export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & + IssueContract; + +/** Optional parameters. */ +export interface ApiIssueUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueListByServiceNextResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueCommentGetEntityTagResponse = + ApiIssueCommentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueCommentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & + IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCommentCreateOrUpdateResponse = + ApiIssueCommentCreateOrUpdateHeaders & IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueAttachmentGetEntityTagResponse = + ApiIssueAttachmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & + IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueAttachmentCreateOrUpdateResponse = + ApiIssueAttachmentCreateOrUpdateHeaders & IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueAttachmentListByServiceNextResponse = + IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiTagDescriptionGetEntityTagResponse = + ApiTagDescriptionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & + TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiTagDescriptionCreateOrUpdateResponse = + ApiTagDescriptionCreateOrUpdateHeaders & TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiTagDescriptionListByServiceNextResponse = + TagDescriptionCollection; + +/** Optional parameters. */ +export interface OperationListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged Operations. */ + includeNotTaggedOperations?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type OperationListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface OperationListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type OperationListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ApiWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ApiWikisListResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiWikisListNextResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiExportGetResponse = ApiExportResult; + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface ApiVersionSetGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiVersionSetGetEntityTagResponse = + ApiVersionSetGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiVersionSetGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiVersionSetCreateOrUpdateResponse = + ApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = + AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = + AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationCreateOrUpdateResponse = + AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = + AuthorizationConfirmConsentCodeHeaders; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = + AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationLoginLinksPostOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = + AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationAccessPolicyGetResponse = + AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationAccessPolicyCreateOrUpdateResponse = + AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = + AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationServerListByServiceResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationServerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type AuthorizationServerGetEntityTagResponse = + AuthorizationServerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface AuthorizationServerGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationServerCreateOrUpdateResponse = + AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AuthorizationServerUpdateResponse = + AuthorizationServerUpdateHeaders & AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationServerListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type AuthorizationServerListSecretsResponse = + AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationServerListByServiceNextResponse = + AuthorizationServerCollection; + +/** Optional parameters. */ +export interface BackendListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type BackendListByServiceResponse = BackendCollection; + +/** Optional parameters. */ +export interface BackendGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; + +/** Optional parameters. */ +export interface BackendGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type BackendGetResponse = BackendGetHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & + BackendContract; + +/** Optional parameters. */ +export interface BackendUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BackendReconnectOptionalParams + extends coreClient.OperationOptions { + /** Reconnect request parameters. */ + parameters?: BackendReconnectContract; +} + +/** Optional parameters. */ +export interface BackendListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type BackendListByServiceNextResponse = BackendCollection; + +/** Optional parameters. */ +export interface CacheListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type CacheListByServiceResponse = CacheCollection; + +/** Optional parameters. */ +export interface CacheGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CacheGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CacheGetResponse = CacheGetHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & + CacheContract; + +/** Optional parameters. */ +export interface CacheUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; + +/** Optional parameters. */ +export interface CacheDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CacheListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CacheListByServiceNextResponse = CacheCollection; + +/** Optional parameters. */ +export interface CertificateListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** When set to true, the response contains only certificates entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type CertificateListByServiceResponse = CertificateCollection; + +/** Optional parameters. */ +export interface CertificateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CertificateGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CertificateGetResponse = CertificateGetHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CertificateCreateOrUpdateResponse = + CertificateCreateOrUpdateHeaders & CertificateContract; + +/** Optional parameters. */ +export interface CertificateDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CertificateRefreshSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the refreshSecret operation. */ +export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CertificateListByServiceNextResponse = CertificateCollection; + +/** Optional parameters. */ +export interface PerformConnectivityCheckAsyncOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the performConnectivityCheckAsync operation. */ +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + +/** Optional parameters. */ +export interface ContentTypeListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentTypeListByServiceResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentTypeGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentTypeGetResponse = ContentTypeGetHeaders & + ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentTypeCreateOrUpdateResponse = + ContentTypeCreateOrUpdateHeaders & ContentTypeContract; + +/** Optional parameters. */ +export interface ContentTypeDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentTypeListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentTypeListByServiceNextResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentItemListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type ContentItemListByServiceResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface ContentItemGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ContentItemGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentItemGetResponse = ContentItemGetHeaders & + ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ContentItemCreateOrUpdateResponse = + ContentItemCreateOrUpdateHeaders & ContentItemContract; + +/** Optional parameters. */ +export interface ContentItemDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentItemListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentItemListByServiceNextResponse = ContentItemCollection; + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DeletedServicesListBySubscriptionResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface DeletedServicesGetByNameOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByName operation. */ +export type DeletedServicesGetByNameResponse = DeletedServiceContract; + +/** Optional parameters. */ +export interface DeletedServicesPurgeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DeletedServicesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DeletedServicesListBySubscriptionNextResponse = + DeletedServicesCollection; + +/** Optional parameters. */ +export interface ApiManagementOperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ApiManagementOperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementOperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiManagementOperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkus operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailableServiceSkusNext operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = + ResourceSkuResults; + +/** Optional parameters. */ +export interface ApiManagementServiceRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the restore operation. */ +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceBackupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the backup operation. */ +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface 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 { + /** Optional parameters supplied to migrate service. */ + parameters?: MigrateToStv2Contract; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = + ApiManagementServiceResource; + +/** Optional parameters. */ +export interface 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; -/** Known values of {@link SettingsTypeName} that the service accepts. */ -export enum KnownSettingsTypeName { - /** Public */ - Public = "public" +/** 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; } -/** - * 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 listByService operation. */ +export type DiagnosticListByServiceResponse = DiagnosticCollection; -/** 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 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; } -/** - * 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 createOrUpdate operation. */ +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & + DiagnosticContract; -/** Known values of {@link AccessIdName} that the service accepts. */ -export enum KnownAccessIdName { - /** Access */ - Access = "access", - /** GitAccess */ - GitAccess = "gitAccess" +/** Optional parameters. */ +export interface DiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type 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 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; +/** Contains response data for the listByService operation. */ +export type DocumentationListByServiceResponse = DocumentationCollection; -/** Known values of {@link ConfigurationIdName} that the service accepts. */ -export enum KnownConfigurationIdName { - /** Configuration */ - Configuration = "configuration" +/** Optional parameters. */ +export interface DocumentationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type DocumentationGetEntityTagResponse = + DocumentationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface DocumentationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; + +/** 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 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 createOrUpdate operation. */ +export type DocumentationCreateOrUpdateResponse = + DocumentationCreateOrUpdateHeaders & DocumentationContract; -/** 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 DocumentationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; + +/** Optional parameters. */ +export interface DocumentationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DocumentationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** 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 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"; -/** Defines values for AsyncResolverStatus. */ -export type AsyncResolverStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; +/** Contains response data for the listByService operation. */ +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; + +/** Optional parameters. */ +export interface EmailTemplateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type EmailTemplateGetEntityTagResponse = + EmailTemplateGetEntityTagHeaders; + +/** 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; +} + +/** 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 ApiListByServiceOptionalParams +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 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 GatewayInvalidateDebugCredentialsOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GatewayListDebugCredentialsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listDebugCredentials operation. */ +export type GatewayListDebugCredentialsResponse = + GatewayDebugCredentialsContract; + +/** Optional parameters. */ +export interface GatewayListTraceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listTrace operation. */ +export type GatewayListTraceResponse = { [propertyName: string]: any }; + +/** 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; @@ -7513,19 +11364,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; @@ -7534,196 +11406,261 @@ 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; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = + GatewayCertificateAuthorityCreateOrUpdateHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface ApiReleaseUpdateOptionalParams +export interface GatewayCertificateAuthorityDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & - ApiReleaseContract; +/** Optional parameters. */ +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GatewayCertificateAuthorityListByServiceNextResponse = + GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface ApiReleaseDeleteOptionalParams +export interface ApiManagementGatewayConfigConnectionListByGatewayOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByGateway operation. */ +export type ApiManagementGatewayConfigConnectionListByGatewayResponse = + ApiManagementGatewayConfigConnectionListResult; + /** Optional parameters. */ -export interface ApiReleaseListByServiceNextOptionalParams +export interface ApiManagementGatewayConfigConnectionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; +/** Contains response data for the get operation. */ +export type ApiManagementGatewayConfigConnectionGetResponse = + ApiManagementGatewayConfigConnectionResource; /** Optional parameters. */ -export interface ApiOperationListByApiOptionalParams +export interface ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams 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 |
*/ + /** 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 ApiManagementGatewayConfigConnectionCreateOrUpdateResponse = + ApiManagementGatewayConfigConnectionResource; + +/** Optional parameters. */ +export interface ApiManagementGatewayConfigConnectionDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type ApiManagementGatewayConfigConnectionDeleteResponse = + ApiManagementGatewayConfigConnectionDeleteHeaders; + +/** Optional parameters. */ +export interface ApiManagementGatewayConfigConnectionListByGatewayNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByGatewayNext operation. */ +export type ApiManagementGatewayConfigConnectionListByGatewayNextResponse = + ApiManagementGatewayConfigConnectionListResult; + +/** Optional parameters. */ +export interface GroupListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| 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 GroupGetEntityTagOptionalParams + 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; + +/** Optional parameters. */ +export interface GroupUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ApiOperationGetEntityTagOptionalParams +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; - /** Optional parameters. */ -export interface ApiOperationGetOptionalParams +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiOperationGetResponse = ApiOperationGetHeaders & - OperationContract; +/** Contains response data for the listByServiceNext operation. */ +export type GroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ApiOperationCreateOrUpdateOptionalParams +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & - OperationContract; +/** Contains response data for the list operation. */ +export type GroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface ApiOperationUpdateOptionalParams +export interface GroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & - OperationContract; +/** Contains response data for the checkEntityExists operation. */ +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiOperationDeleteOptionalParams +export interface GroupUserCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type GroupUserCreateResponse = UserContract; + +/** Optional parameters. */ +export interface GroupUserDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiOperationListByApiNextOptionalParams +export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiOperationListByApiNextResponse = OperationCollection; +/** Contains response data for the listNext operation. */ +export type GroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ApiOperationPolicyListByOperationOptionalParams +export interface IdentityProviderListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type IdentityProviderListByServiceResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiOperationPolicyGetEntityTagOptionalParams +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; +export type IdentityProviderGetEntityTagResponse = + IdentityProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiOperationPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface IdentityProviderGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & - PolicyContract; +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiOperationPolicyCreateOrUpdateOptionalParams +export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & - PolicyContract; +export type IdentityProviderCreateOrUpdateResponse = + IdentityProviderCreateOrUpdateHeaders & IdentityProviderContract; /** Optional parameters. */ -export interface ApiOperationPolicyDeleteOptionalParams +export interface IdentityProviderUpdateOptionalParams 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; +/** Contains response data for the update operation. */ +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface TagGetEntityStateByOperationOptionalParams +export interface IdentityProviderDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByOperation operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; - /** Optional parameters. */ -export interface TagGetByOperationOptionalParams +export interface IdentityProviderListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByOperation operation. */ -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +/** Contains response data for the listSecrets operation. */ +export type IdentityProviderListSecretsResponse = + IdentityProviderListSecretsHeaders & ClientSecretContract; /** Optional parameters. */ -export interface TagAssignToOperationOptionalParams +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToOperation operation. */ -export type TagAssignToOperationResponse = TagContract; - -/** Optional parameters. */ -export interface TagDetachFromOperationOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; /** Optional parameters. */ -export interface TagListByApiOptionalParams +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; @@ -7731,38 +11668,26 @@ export interface TagListByApiOptionalParams 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; +/** Contains response data for the listByService operation. */ +export type IssueListByServiceResponse = IssueCollection; /** Optional parameters. */ -export interface TagGetByApiOptionalParams - extends coreClient.OperationOptions {} +export interface IssueGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByApi operation. */ -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; +/** Contains response data for the get operation. */ +export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ -export interface TagAssignToApiOptionalParams +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToApi operation. */ -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; - -/** Optional parameters. */ -export interface TagDetachFromApiOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type IssueListByServiceNextResponse = IssueCollection; /** Optional parameters. */ -export interface TagListByProductOptionalParams +export interface LoggerListByServiceOptionalParams 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 |
| 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; @@ -7770,220 +11695,254 @@ export interface TagListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type TagListByProductResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type LoggerListByServiceResponse = LoggerCollection; /** Optional parameters. */ -export interface TagGetEntityStateByProductOptionalParams +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByProduct operation. */ -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; +/** Contains response data for the getEntityTag operation. */ +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByProductOptionalParams - extends coreClient.OperationOptions {} +export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByProduct operation. */ -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +/** Contains response data for the get operation. */ +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; /** Optional parameters. */ -export interface TagAssignToProductOptionalParams +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 LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & + LoggerContract; + +/** Optional parameters. */ +export interface LoggerUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToProduct operation. */ -export type TagAssignToProductResponse = TagContract; +/** Contains response data for the update operation. */ +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; /** Optional parameters. */ -export interface TagDetachFromProductOptionalParams +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface LoggerListByServiceNextOptionalParams + 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 |
|-------------|-------------|-------------|-------------|
| 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 |
|-------------|-------------|-------------|-------------|
| 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; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; + /** When set to true, the response contains only named value entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } /** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +export type NamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface NamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +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 TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} +export interface NamedValueUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} +export interface NamedValueDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByOperationNextOptionalParams +export interface NamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; +/** Contains response data for the listValue operation. */ +export type NamedValueListValueResponse = NamedValueListValueHeaders & + NamedValueSecretContract; /** Optional parameters. */ -export interface TagListByApiNextOptionalParams - extends coreClient.OperationOptions {} +export interface NamedValueRefreshSecretOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +/** 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 TagListByProductNextOptionalParams +export interface NetworkStatusListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type NetworkStatusListByServiceResponse = + NetworkStatusContractByLocation[]; /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface NetworkStatusListByLocationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +/** Contains response data for the listByLocation operation. */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract; /** Optional parameters. */ -export interface GraphQLApiResolverListByApiOptionalParams +export interface NotificationListByServiceOptionalParams 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; +/** Contains response data for the listByService operation. */ +export type NotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface GraphQLApiResolverGetOptionalParams +export interface NotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & - ResolverContract; +export type NotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface GraphQLApiResolverCreateOrUpdateOptionalParams +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 GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & - ResolverContract; +export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface GraphQLApiResolverUpdateOptionalParams +export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & - ResolverContract; +/** Contains response data for the listByServiceNext operation. */ +export type NotificationListByServiceNextResponse = NotificationCollection; /** Optional parameters. */ -export interface GraphQLApiResolverDeleteOptionalParams +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; + /** Optional parameters. */ -export interface GraphQLApiResolverListByApiNextOptionalParams +export interface NotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverOptionalParams +export interface NotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolver operation. */ -export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams +export interface NotificationRecipientUserDeleteOptionalParams 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; -} +export interface NotificationRecipientEmailListByNotificationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & - PolicyContract; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** 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; -} +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyDeleteOptionalParams +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; + /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolverNext operation. */ -export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; - /** Optional parameters. */ -export interface ApiProductListByApisOptionalParams +export interface OpenIdConnectProviderListByServiceOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| 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; @@ -7991,287 +11950,328 @@ export interface ApiProductListByApisOptionalParams skip?: number; } -/** Contains response data for the listByApis operation. */ -export type ApiProductListByApisResponse = ProductCollection; +/** Contains response data for the listByService operation. */ +export type OpenIdConnectProviderListByServiceResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface ApiProductListByApisNextOptionalParams +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApisNext operation. */ -export type ApiProductListByApisNextResponse = ProductCollection; +/** Contains response data for the getEntityTag operation. */ +export type OpenIdConnectProviderGetEntityTagResponse = + OpenIdConnectProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiPolicyListByApiOptionalParams +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApi operation. */ -export type ApiPolicyListByApiResponse = PolicyCollection; +/** Contains response data for the get operation. */ +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiPolicyGetEntityTagOptionalParams +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 OpenIdConnectProviderCreateOrUpdateResponse = + OpenIdConnectProviderCreateOrUpdateHeaders & OpenidConnectProviderContract; + +/** Optional parameters. */ +export interface OpenIdConnectProviderUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; +/** Contains response data for the update operation. */ +export type OpenIdConnectProviderUpdateResponse = + OpenIdConnectProviderUpdateHeaders & OpenidConnectProviderContract; /** Optional parameters. */ -export interface ApiPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface OpenIdConnectProviderDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; +/** Optional parameters. */ +export interface OpenIdConnectProviderListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type OpenIdConnectProviderListSecretsResponse = + OpenIdConnectProviderListSecretsHeaders & ClientSecretContract; /** 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; -} +export interface OpenIdConnectProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the listByServiceNext operation. */ +export type OpenIdConnectProviderListByServiceNextResponse = + OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface ApiPolicyDeleteOptionalParams +export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = + OutboundEnvironmentEndpointList; + /** 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; -} +export interface PolicyListByServiceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection; +/** Contains response data for the listByService operation. */ +export type PolicyListByServiceResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiSchemaGetEntityTagOptionalParams +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiSchemaGetOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} /** Contains response data for the get operation. */ -export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiSchemaCreateOrUpdateOptionalParams +export interface PolicyCreateOrUpdateOptionalParams 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; +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface ApiSchemaDeleteOptionalParams - extends coreClient.OperationOptions { - /** If true removes all references to the schema before deleting it. */ - force?: boolean; -} +export interface PolicyDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiSchemaListByApiNextOptionalParams +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiSchemaListByApiNextResponse = SchemaCollection; +/** Contains response data for the listByServiceNext operation. */ +export type PolicyListByServiceNextResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceOptionalParams +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| 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 ApiDiagnosticListByServiceResponse = DiagnosticCollection; +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ApiDiagnosticGetEntityTagOptionalParams +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders; +export type PolicyFragmentGetEntityTagResponse = + PolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiDiagnosticGetOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & - DiagnosticContract; +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams +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 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 {} +export type PolicyFragmentCreateOrUpdateResponse = + PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceNextOptionalParams +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; - /** Optional parameters. */ -export interface ApiIssueListByServiceOptionalParams +export interface PolicyFragmentListReferencesOptionalParams 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 listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; + +/** Optional parameters. */ +export interface PolicyFragmentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + +/** Optional parameters. */ +export interface PolicyRestrictionListByServiceOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByService operation. */ -export type ApiIssueListByServiceResponse = IssueCollection; +export type PolicyRestrictionListByServiceResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface ApiIssueGetEntityTagOptionalParams +export interface PolicyRestrictionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; +export type PolicyRestrictionGetEntityTagResponse = + PolicyRestrictionGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; -} +export interface PolicyRestrictionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; +export type PolicyRestrictionGetResponse = PolicyRestrictionGetHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface ApiIssueCreateOrUpdateOptionalParams +export interface PolicyRestrictionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & - IssueContract; +export type PolicyRestrictionCreateOrUpdateResponse = + PolicyRestrictionCreateOrUpdateHeaders & PolicyRestrictionContract; /** Optional parameters. */ -export interface ApiIssueUpdateOptionalParams +export interface PolicyRestrictionUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; +export type PolicyRestrictionUpdateResponse = PolicyRestrictionUpdateHeaders & + PolicyRestrictionContract; /** Optional parameters. */ -export interface ApiIssueDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyRestrictionDeleteOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} /** Optional parameters. */ -export interface ApiIssueListByServiceNextOptionalParams +export interface PolicyRestrictionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueListByServiceNextResponse = IssueCollection; +export type PolicyRestrictionListByServiceNextResponse = + PolicyRestrictionCollection; /** Optional parameters. */ -export interface ApiIssueCommentListByServiceOptionalParams +export interface PolicyRestrictionValidationsByServiceOptionalParams 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; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the byService operation. */ +export type PolicyRestrictionValidationsByServiceResponse = + OperationResultContract; + +/** Optional parameters. */ +export interface PortalConfigListByServiceOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByService operation. */ -export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; +export type PortalConfigListByServiceResponse = PortalConfigCollection; /** Optional parameters. */ -export interface ApiIssueCommentGetEntityTagOptionalParams +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueCommentGetOptionalParams +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & - IssueCommentContract; +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; /** 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; -} +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & - IssueCommentContract; +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; /** Optional parameters. */ -export interface ApiIssueCommentDeleteOptionalParams +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ -export interface ApiIssueCommentListByServiceNextOptionalParams +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceOptionalParams +export interface PortalRevisionListByServiceOptionalParams 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 | 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; @@ -8280,312 +12280,347 @@ export interface ApiIssueAttachmentListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentGetEntityTagOptionalParams +export interface PortalRevisionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; +export type PortalRevisionGetEntityTagResponse = + PortalRevisionGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueAttachmentGetOptionalParams +export interface PortalRevisionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & - IssueAttachmentContract; +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams +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 ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & - IssueAttachmentContract; +export type PortalRevisionCreateOrUpdateResponse = + PortalRevisionCreateOrUpdateHeaders & PortalRevisionContract; /** Optional parameters. */ -export interface ApiIssueAttachmentDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface PortalRevisionUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceNextOptionalParams +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; /** 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; -} +export interface PortalSettingsListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; /** Optional parameters. */ -export interface ApiTagDescriptionGetEntityTagOptionalParams +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; +export type SignInSettingsGetEntityTagResponse = + SignInSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiTagDescriptionGetOptionalParams +export interface SignInSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & - TagDescriptionContract; +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & + PortalSigninSettings; /** Optional parameters. */ -export interface ApiTagDescriptionCreateOrUpdateOptionalParams +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 ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & - TagDescriptionContract; +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; /** Optional parameters. */ -export interface ApiTagDescriptionDeleteOptionalParams +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type SignUpSettingsGetEntityTagResponse = + SignUpSettingsGetEntityTagHeaders; + /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceNextOptionalParams +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; +/** Contains response data for the get operation. */ +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & + PortalSignupSettings; /** Optional parameters. */ -export interface OperationListByTagsOptionalParams +export interface SignUpSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| 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; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the getEntityTag operation. */ +export type DelegationSettingsGetEntityTagResponse = + DelegationSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiWikiGetEntityTagOptionalParams +export interface DelegationSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & + PortalDelegationSettings; /** Optional parameters. */ -export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; +export interface DelegationSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiWikiCreateOrUpdateOptionalParams +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 ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & - WikiContract; +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; /** Optional parameters. */ -export interface ApiWikiUpdateOptionalParams +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; +/** Contains response data for the listSecrets operation. */ +export type DelegationSettingsListSecretsResponse = + PortalSettingValidationKeyContract; /** Optional parameters. */ -export interface ApiWikiDeleteOptionalParams +export interface PrivateEndpointConnectionListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type PrivateEndpointConnectionListByServiceResponse = + PrivateEndpointConnectionListResult; + /** Optional parameters. */ -export interface ApiWikisListOptionalParams +export interface PrivateEndpointConnectionGetByNameOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByName operation. */ +export type PrivateEndpointConnectionGetByNameResponse = + PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams 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; + /** 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 list operation. */ -export type ApiWikisListResponse = WikiCollection; +/** 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 ApiWikisListNextOptionalParams +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiWikisListNextResponse = WikiCollection; +/** Contains response data for the listPrivateLinkResources operation. */ +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ApiExportGetOptionalParams +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Contains response data for the getPrivateLinkResource operation. */ +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = + PrivateLinkResource; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams +export interface ProductListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; +export type ProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams - extends coreClient.OperationOptions {} +export interface ProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; +export type ProductGetResponse = ProductGetHeaders & ProductContract; /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams +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 ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; - -/** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +export interface ProductDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; +} /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams +export interface ProductListByTagsOptionalParams 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 |
| 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 listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +/** Contains response data for the listByTags operation. */ +export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type ProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +/** Contains response data for the listByTagsNext operation. */ +export type ProductListByTagsNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +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 AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; +/** Contains response data for the listByProduct operation. */ +export type ProductApiListByProductResponse = ApiCollection; /** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams +export interface ProductApiCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & - AuthorizationServerContract; +/** Contains response data for the checkEntityExists operation. */ +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface AuthorizationServerDeleteOptionalParams +export interface ProductApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiCreateOrUpdateResponse = ApiContract; + /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; - /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiListByProductNextResponse = ApiCollection; /** Optional parameters. */ -export interface AuthorizationProviderListByServiceOptionalParams +export interface ProductGroupListByProductOptionalParams 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 | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8593,43 +12628,40 @@ export interface AuthorizationProviderListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupListByProductResponse = GroupCollection; /** Optional parameters. */ -export interface AuthorizationProviderGetOptionalParams +export interface ProductGroupCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & - AuthorizationProviderContract; +/** Contains response data for the checkEntityExists operation. */ +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface AuthorizationProviderCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ProductGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & - AuthorizationProviderContract; +export type ProductGroupCreateOrUpdateResponse = GroupContract; /** Optional parameters. */ -export interface AuthorizationProviderDeleteOptionalParams +export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AuthorizationProviderListByServiceNextOptionalParams +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupListByProductNextResponse = GroupCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderOptionalParams +export interface ProductSubscriptionsListOptionalParams 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 |
| 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; @@ -8637,570 +12669,499 @@ export interface AuthorizationListByAuthorizationProviderOptionalParams 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 {} +/** Contains response data for the list operation. */ +export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface AuthorizationConfirmConsentCodeOptionalParams +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the confirmConsentCode operation. */ -export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; +/** Contains response data for the listNext operation. */ +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderNextOptionalParams +export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationProviderNext operation. */ -export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface AuthorizationLoginLinksPostOptionalParams +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the post operation. */ -export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & - AuthorizationLoginResponseContract; +/** Contains response data for the getEntityTag operation. */ +export type ProductPolicyGetEntityTagResponse = + ProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams +export interface ProductPolicyGetOptionalParams 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; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** 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; +export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams +export interface ProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & - AuthorizationAccessPolicyContract; +export type ProductPolicyCreateOrUpdateResponse = + ProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface AuthorizationAccessPolicyDeleteOptionalParams +export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationNext operation. */ -export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; - -/** 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; +/** Contains response data for the listByProductNext operation. */ +export type ProductPolicyListByProductNextResponse = PolicyCollection; /** Optional parameters. */ -export interface BackendGetEntityTagOptionalParams +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendGetOptionalParams extends coreClient.OperationOptions {} +export interface ProductWikiGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; /** Optional parameters. */ -export interface BackendCreateOrUpdateOptionalParams +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & - BackendContract; +export type ProductWikiCreateOrUpdateResponse = + ProductWikiCreateOrUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface BackendUpdateOptionalParams +export interface ProductWikiUpdateOptionalParams 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; -} +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface BackendListByServiceNextOptionalParams +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection; - /** Optional parameters. */ -export interface CacheListByServiceOptionalParams +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 listByService operation. */ -export type CacheListByServiceResponse = CacheCollection; +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; /** Optional parameters. */ -export interface CacheGetEntityTagOptionalParams +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; /** Optional parameters. */ -export interface CacheGetOptionalParams 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 get operation. */ -export type CacheGetResponse = CacheGetHeaders & CacheContract; +/** Contains response data for the listByProduct operation. */ +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; /** 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; -} +export interface ProductApiLinkGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & - CacheContract; +/** Contains response data for the get operation. */ +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface CacheUpdateOptionalParams +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface CacheDeleteOptionalParams +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CacheListByServiceNextResponse = CacheCollection; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface CertificateListByServiceOptionalParams +export interface ProductGroupLinkListByProductOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| 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; - /** 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; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface CertificateGetOptionalParams +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateGetHeaders & - CertificateContract; +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** 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; -} +export interface ProductGroupLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & - CertificateContract; +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** Optional parameters. */ -export interface CertificateDeleteOptionalParams +export interface ProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface CertificateRefreshSecretOptionalParams +export interface ProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the refreshSecret operation. */ -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & - CertificateContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface CertificateListByServiceNextOptionalParams +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection; - -/** Optional parameters. */ -export interface PerformConnectivityCheckAsyncOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the performConnectivityCheckAsync operation. */ -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; +/** Contains response data for the listByService operation. */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface ContentTypeListByServiceOptionalParams +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ContentTypeListByServiceResponse = ContentTypeCollection; +/** Contains response data for the update operation. */ +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface ContentTypeGetOptionalParams +export interface QuotaByPeriodKeysGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ContentTypeGetResponse = ContentTypeGetHeaders & - ContentTypeContract; +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; /** 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; -} +export interface QuotaByPeriodKeysUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & - ContentTypeContract; +/** Contains response data for the update operation. */ +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; /** Optional parameters. */ -export interface ContentTypeDeleteOptionalParams +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByService operation. */ +export type RegionListByServiceResponse = RegionListResult; + /** Optional parameters. */ -export interface ContentTypeListByServiceNextOptionalParams +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +export type RegionListByServiceNextResponse = RegionListResult; /** Optional parameters. */ -export interface ContentItemListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByApiOptionalParams + 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 listByService operation. */ -export type ContentItemListByServiceResponse = ContentItemCollection; +/** Contains response data for the listByApi operation. */ +export type ReportsListByApiResponse = ReportCollection; /** Optional parameters. */ -export interface ContentItemGetEntityTagOptionalParams - 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 getEntityTag operation. */ -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; +/** Contains response data for the listByUser operation. */ +export type ReportsListByUserResponse = ReportCollection; /** Optional parameters. */ -export interface ContentItemGetOptionalParams - 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 get operation. */ -export type ContentItemGetResponse = ContentItemGetHeaders & - ContentItemContract; +/** Contains response data for the listByOperation operation. */ +export type ReportsListByOperationResponse = ReportCollection; /** Optional parameters. */ -export interface ContentItemCreateOrUpdateOptionalParams +export interface ReportsListByProductOptionalParams 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 ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & - ContentItemContract; - -/** Optional parameters. */ -export interface ContentItemDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ReportsListByProductResponse = ReportCollection; /** Optional parameters. */ -export interface ContentItemListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByGeoOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByServiceNext operation. */ -export type ContentItemListByServiceNextResponse = ContentItemCollection; +/** Contains response data for the listByGeo operation. */ +export type ReportsListByGeoResponse = ReportCollection; /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionOptionalParams - 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 listBySubscription operation. */ -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +export type ReportsListBySubscriptionResponse = ReportCollection; /** Optional parameters. */ -export interface DeletedServicesGetByNameOptionalParams - 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 getByName operation. */ -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +/** Contains response data for the listByTime operation. */ +export type ReportsListByTimeResponse = ReportCollection; /** Optional parameters. */ -export interface DeletedServicesPurgeOptionalParams +export interface ReportsListByRequestOptionalParams 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; + /** 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 DeletedServicesListBySubscriptionNextOptionalParams +export interface ReportsListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; +/** Contains response data for the listByApiNext operation. */ +export type ReportsListByApiNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementOperationsListOptionalParams +export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementOperationsListResponse = OperationListResult; +/** Contains response data for the listByUserNext operation. */ +export type ReportsListByUserNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementOperationsListNextOptionalParams +export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult; +/** Contains response data for the listByOperationNext operation. */ +export type ReportsListByOperationNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams +export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkus operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +/** Contains response data for the listByProductNext operation. */ +export type ReportsListByProductNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams +export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkusNext operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; +/** Contains response data for the listByGeoNext operation. */ +export type ReportsListByGeoNextResponse = ReportCollection; /** 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; -} +export interface ReportsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the restore operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ReportsListBySubscriptionNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementServiceBackupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ReportsListByTimeNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the backup operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; +/** Contains response data for the listByTimeNext operation. */ +export type ReportsListByTimeNextResponse = ReportCollection; /** Optional parameters. */ -export interface ApiManagementServiceCreateOrUpdateOptionalParams +export interface GlobalSchemaListByServiceOptionalParams 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 |
*/ + 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 ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +/** Contains response data for the listByService operation. */ +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** 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 GlobalSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; +/** Contains response data for the getEntityTag operation. */ +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceGetOptionalParams +export interface GlobalSchemaGetOptionalParams 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; -} +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface ApiManagementServiceMigrateToStv2OptionalParams +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 migrateToStv2 operation. */ -export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; +/** Contains response data for the createOrUpdate operation. */ +export type GlobalSchemaCreateOrUpdateResponse = + GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupOptionalParams +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; - /** Optional parameters. */ -export interface ApiManagementServiceListOptionalParams +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ApiManagementServiceListResponse = ApiManagementServiceListResult; +/** Contains response data for the listByServiceNext operation. */ +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetSsoTokenOptionalParams - extends coreClient.OperationOptions {} +export interface TenantSettingsListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Not used */ + filter?: string; +} -/** Contains response data for the getSsoToken operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; +/** Contains response data for the listByService operation. */ +export type TenantSettingsListByServiceResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface ApiManagementServiceCheckNameAvailabilityOptionalParams +export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; +/** Contains response data for the get operation. */ +export type TenantSettingsGetResponse = TenantSettingsGetHeaders & + TenantSettingsContract; /** Optional parameters. */ -export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams +export interface TenantSettingsListByServiceNextOptionalParams 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; +/** Contains response data for the listByServiceNext operation. */ +export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupNextOptionalParams +export interface ApiManagementSkusListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; +/** Contains response data for the list operation. */ +export type ApiManagementSkusListResponse = ApiManagementSkusResult; /** Optional parameters. */ -export interface ApiManagementServiceListNextOptionalParams +export interface ApiManagementSkusListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; +export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; /** Optional parameters. */ -export interface DiagnosticListByServiceOptionalParams +export interface SubscriptionListOptionalParams 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 |
| 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; @@ -9208,57 +13169,91 @@ export interface DiagnosticListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection; +/** Contains response data for the list operation. */ +export type SubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface DiagnosticGetEntityTagOptionalParams +export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface DiagnosticGetOptionalParams +export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +export type SubscriptionGetResponse = SubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface DiagnosticCreateOrUpdateOptionalParams +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 DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type SubscriptionCreateOrUpdateResponse = + SubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface DiagnosticUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} /** Contains response data for the update operation. */ -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & - DiagnosticContract; +export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface DiagnosticDeleteOptionalParams +export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DiagnosticListByServiceNextOptionalParams +export interface SubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +/** Optional parameters. */ +export interface SubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EmailTemplateListByServiceOptionalParams +export interface SubscriptionListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & + SubscriptionKeysContract; + +/** Optional parameters. */ +export interface SubscriptionListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SubscriptionListNextResponse = SubscriptionCollection; + +/** Optional parameters. */ +export interface TagResourceListByServiceOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| 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; @@ -9267,56 +13262,99 @@ export interface EmailTemplateListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; +export type TagResourceListByServiceResponse = TagResourceCollection; /** Optional parameters. */ -export interface EmailTemplateGetEntityTagOptionalParams +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +/** Contains response data for the listByServiceNext operation. */ +export type TagResourceListByServiceNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface EmailTemplateGetOptionalParams +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; +} + +/** Contains response data for the listByProduct operation. */ +export type TagApiLinkListByProductResponse = TagApiLinkCollection; + +/** Optional parameters. */ +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & - EmailTemplateContract; +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; /** Optional parameters. */ -export interface EmailTemplateCreateOrUpdateOptionalParams +export interface TagApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +/** Optional parameters. */ +export interface TagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; + +/** Optional parameters. */ +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 EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; +/** Contains response data for the listByProduct operation. */ +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; + +/** Optional parameters. */ +export interface TagOperationLinkGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface EmailTemplateUpdateOptionalParams +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & - EmailTemplateContract; +/** Contains response data for the createOrUpdate operation. */ +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; /** Optional parameters. */ -export interface EmailTemplateDeleteOptionalParams +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EmailTemplateListByServiceNextOptionalParams +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +/** Contains response data for the listByProductNext operation. */ +export type TagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface GatewayListByServiceOptionalParams +export interface TagProductLinkListByProductOptionalParams 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 |
*/ + /** | 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; @@ -9324,274 +13362,262 @@ export interface GatewayListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type GatewayListByServiceResponse = GatewayCollection; +/** Contains response data for the listByProduct operation. */ +export type TagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface GatewayGetEntityTagOptionalParams +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; - -/** Optional parameters. */ -export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the get operation. */ -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & + TagProductLinkContract; /** Optional parameters. */ -export interface GatewayCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface TagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & - GatewayContract; +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; /** Optional parameters. */ -export interface GatewayUpdateOptionalParams +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; - /** Optional parameters. */ -export interface GatewayDeleteOptionalParams +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + /** Optional parameters. */ -export interface GatewayListKeysOptionalParams - extends coreClient.OperationOptions {} +export interface TenantAccessListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Not used */ + filter?: string; +} -/** Contains response data for the listKeys operation. */ -export type GatewayListKeysResponse = GatewayListKeysHeaders & - GatewayKeysContract; +/** Contains response data for the listByService operation. */ +export type TenantAccessListByServiceResponse = AccessInformationCollection; /** Optional parameters. */ -export interface GatewayRegenerateKeyOptionalParams +export interface TenantAccessGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; + /** Optional parameters. */ -export interface GatewayGenerateTokenOptionalParams +export interface TenantAccessGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateToken operation. */ -export type GatewayGenerateTokenResponse = GatewayTokenContract; +/** Contains response data for the get operation. */ +export type TenantAccessGetResponse = TenantAccessGetHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface GatewayListByServiceNextOptionalParams +export interface TenantAccessCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayListByServiceNextResponse = GatewayCollection; +/** Contains response data for the create operation. */ +export type TenantAccessCreateResponse = TenantAccessCreateHeaders & + AccessInformationContract; /** 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 |
| 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; -} +export interface TenantAccessUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +/** Contains response data for the update operation. */ +export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams +export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +/** Optional parameters. */ +export interface TenantAccessRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetOptionalParams +export interface TenantAccessListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & - GatewayHostnameConfigurationContract; +/** Contains response data for the listSecrets operation. */ +export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & + AccessInformationSecretsContract; /** Optional parameters. */ -export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface TenantAccessListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & - GatewayHostnameConfigurationContract; +/** Contains response data for the listByServiceNext operation. */ +export type TenantAccessListByServiceNextResponse = AccessInformationCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationDeleteOptionalParams +export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams +export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; - /** Optional parameters. */ -export interface GatewayApiListByServiceOptionalParams +export interface TenantConfigurationDeployOptionalParams 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; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByService operation. */ -export type GatewayApiListByServiceResponse = ApiCollection; +/** Contains response data for the deploy operation. */ +export type TenantConfigurationDeployResponse = OperationResultContract; /** Optional parameters. */ -export interface GatewayApiGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface TenantConfigurationSaveOptionalParams + 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 GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; +/** Contains response data for the save operation. */ +export type TenantConfigurationSaveResponse = OperationResultContract; /** Optional parameters. */ -export interface GatewayApiCreateOrUpdateOptionalParams +export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { - /** Association entity details. */ - parameters?: AssociationContract; + /** 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 GatewayApiCreateOrUpdateResponse = ApiContract; - -/** Optional parameters. */ -export interface GatewayApiDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the validate operation. */ +export type TenantConfigurationValidateResponse = OperationResultContract; /** Optional parameters. */ -export interface GatewayApiListByServiceNextOptionalParams +export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the getSyncState operation. */ +export type TenantConfigurationGetSyncStateResponse = + TenantConfigurationSyncStateContract; /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceOptionalParams +export interface UserListByServiceOptionalParams 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 |
| 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 GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; +export type UserListByServiceResponse = UserCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetEntityTagOptionalParams +export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; +export type UserGetEntityTagResponse = UserGetEntityTagHeaders; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetOptionalParams - extends coreClient.OperationOptions {} +export interface UserGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & - GatewayCertificateAuthorityContract; +export type UserGetResponse = UserGetHeaders & UserContract; /** Optional parameters. */ -export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams +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 GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & - GatewayCertificateAuthorityContract; - -/** Optional parameters. */ -export interface GatewayCertificateAuthorityDeleteOptionalParams - extends coreClient.OperationOptions {} +export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & + UserContract; /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; +/** Contains response data for the update operation. */ +export type UserUpdateResponse = UserUpdateHeaders & UserContract; /** Optional parameters. */ -export interface GroupListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; +export interface UserDeleteOptionalParams extends coreClient.OperationOptions { + /** Whether to delete user's subscription or not. */ + deleteSubscriptions?: boolean; + /** Send an Account Closed Email notification to the User. */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByService operation. */ -export type GroupListByServiceResponse = GroupCollection; +/** Contains response data for the delete operation. */ +export type UserDeleteResponse = UserDeleteHeaders; /** Optional parameters. */ -export interface GroupGetEntityTagOptionalParams +export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; +/** Contains response data for the generateSsoUrl operation. */ +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; /** Optional parameters. */ -export interface GroupGetOptionalParams extends coreClient.OperationOptions {} +export interface UserGetSharedAccessTokenOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GroupGetResponse = GroupGetHeaders & GroupContract; +/** Contains response data for the getSharedAccessToken operation. */ +export type UserGetSharedAccessTokenResponse = UserTokenResult; /** 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; -} +export interface UserListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & - GroupContract; +/** Contains response data for the listByServiceNext operation. */ +export type UserListByServiceNextResponse = UserCollection; /** Optional parameters. */ -export interface GroupUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; +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; +} -/** Optional parameters. */ -export interface GroupDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type UserGroupListResponse = GroupCollection; /** Optional parameters. */ -export interface GroupListByServiceNextOptionalParams +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GroupListByServiceNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type UserGroupListNextResponse = GroupCollection; /** Optional parameters. */ -export interface GroupUserListOptionalParams +export interface UserSubscriptionListOptionalParams 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 |
|-------------|------------------------|-----------------------------------|
|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; @@ -9600,126 +13626,171 @@ export interface GroupUserListOptionalParams } /** Contains response data for the list operation. */ -export type GroupUserListResponse = UserCollection; +export type UserSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GroupUserCheckEntityExistsOptionalParams +export interface UserSubscriptionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type GroupUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the get operation. */ +export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface GroupUserCreateOptionalParams +export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type GroupUserCreateResponse = UserContract; +/** Contains response data for the listNext operation. */ +export type UserSubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface GroupUserDeleteOptionalParams +export interface UserIdentitiesListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type UserIdentitiesListResponse = UserIdentityCollection; + /** Optional parameters. */ -export interface GroupUserListNextOptionalParams +export interface UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GroupUserListNextResponse = UserCollection; +export type UserIdentitiesListNextResponse = UserIdentityCollection; /** Optional parameters. */ -export interface IdentityProviderListByServiceOptionalParams - 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; +} -/** Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList; +/** Optional parameters. */ +export interface WorkspaceBackendListByWorkspaceOptionalParams + 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 listByWorkspace operation. */ +export type WorkspaceBackendListByWorkspaceResponse = BackendCollection; /** Optional parameters. */ -export interface IdentityProviderGetEntityTagOptionalParams +export interface WorkspaceBackendGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; +export type WorkspaceBackendGetEntityTagResponse = + WorkspaceBackendGetEntityTagHeaders; /** Optional parameters. */ -export interface IdentityProviderGetOptionalParams +export interface WorkspaceBackendGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderGetHeaders & - IdentityProviderContract; +export type WorkspaceBackendGetResponse = WorkspaceBackendGetHeaders & + BackendContract; /** Optional parameters. */ -export interface IdentityProviderCreateOrUpdateOptionalParams +export interface WorkspaceBackendCreateOrUpdateOptionalParams 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 IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & - IdentityProviderContract; +export type WorkspaceBackendCreateOrUpdateResponse = + WorkspaceBackendCreateOrUpdateHeaders & BackendContract; /** Optional parameters. */ -export interface IdentityProviderUpdateOptionalParams +export interface WorkspaceBackendUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & - IdentityProviderContract; - -/** Optional parameters. */ -export interface IdentityProviderDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceBackendUpdateResponse = WorkspaceBackendUpdateHeaders & + BackendContract; /** Optional parameters. */ -export interface IdentityProviderListSecretsOptionalParams +export interface WorkspaceBackendDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface IdentityProviderListByServiceNextOptionalParams +export interface WorkspaceBackendListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceBackendListByWorkspaceNextResponse = BackendCollection; /** Optional parameters. */ -export interface IssueListByServiceOptionalParams +export interface WorkspaceCertificateListByWorkspaceOptionalParams 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 |
|-------------|-------------|-------------|-------------|
| 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 IssueListByServiceResponse = IssueCollection; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceCertificateListByWorkspaceResponse = CertificateCollection; /** Optional parameters. */ -export interface IssueGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceCertificateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceCertificateGetEntityTagResponse = + WorkspaceCertificateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceCertificateGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IssueGetResponse = IssueGetHeaders & IssueContract; +export type WorkspaceCertificateGetResponse = WorkspaceCertificateGetHeaders & + CertificateContract; /** Optional parameters. */ -export interface IssueListByServiceNextOptionalParams +export interface WorkspaceCertificateCreateOrUpdateOptionalParams + 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 WorkspaceCertificateCreateOrUpdateResponse = + WorkspaceCertificateCreateOrUpdateHeaders & CertificateContract; + +/** Optional parameters. */ +export interface WorkspaceCertificateDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection; +/** Optional parameters. */ +export interface WorkspaceCertificateRefreshSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceCertificateRefreshSecretResponse = + WorkspaceCertificateRefreshSecretHeaders & CertificateContract; /** Optional parameters. */ -export interface LoggerListByServiceOptionalParams +export interface WorkspaceCertificateListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceCertificateListByWorkspaceNextResponse = + CertificateCollection; + +/** Optional parameters. */ +export interface WorkspaceDiagnosticListByWorkspaceOptionalParams 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 |
*/ + /** | 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; @@ -9727,249 +13798,206 @@ export interface LoggerListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceDiagnosticListByWorkspaceResponse = DiagnosticCollection; /** Optional parameters. */ -export interface LoggerGetEntityTagOptionalParams +export interface WorkspaceDiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; +export type WorkspaceDiagnosticGetEntityTagResponse = + WorkspaceDiagnosticGetEntityTagHeaders; /** Optional parameters. */ -export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceDiagnosticGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; +export type WorkspaceDiagnosticGetResponse = WorkspaceDiagnosticGetHeaders & + DiagnosticContract; /** Optional parameters. */ -export interface LoggerCreateOrUpdateOptionalParams +export interface WorkspaceDiagnosticCreateOrUpdateOptionalParams 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 LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & - LoggerContract; +export type WorkspaceDiagnosticCreateOrUpdateResponse = + WorkspaceDiagnosticCreateOrUpdateHeaders & DiagnosticContract; /** Optional parameters. */ -export interface LoggerUpdateOptionalParams +export interface WorkspaceDiagnosticUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; +export type WorkspaceDiagnosticUpdateResponse = + WorkspaceDiagnosticUpdateHeaders & DiagnosticContract; /** Optional parameters. */ -export interface LoggerDeleteOptionalParams +export interface WorkspaceDiagnosticDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LoggerListByServiceNextOptionalParams +export interface WorkspaceDiagnosticListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceDiagnosticListByWorkspaceNextResponse = + DiagnosticCollection; /** Optional parameters. */ -export interface NamedValueListByServiceOptionalParams +export interface WorkspaceApiDiagnosticListByWorkspaceOptionalParams 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 |
*/ + /** | 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; - /** When set to true, the response contains only named value entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; } -/** Contains response data for the listByService operation. */ -export type NamedValueListByServiceResponse = NamedValueCollection; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceApiDiagnosticListByWorkspaceResponse = + DiagnosticCollection; /** Optional parameters. */ -export interface NamedValueGetEntityTagOptionalParams +export interface WorkspaceApiDiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; +export type WorkspaceApiDiagnosticGetEntityTagResponse = + WorkspaceApiDiagnosticGetEntityTagHeaders; /** Optional parameters. */ -export interface NamedValueGetOptionalParams +export interface WorkspaceApiDiagnosticGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; +export type WorkspaceApiDiagnosticGetResponse = + WorkspaceApiDiagnosticGetHeaders & DiagnosticContract; /** Optional parameters. */ -export interface NamedValueCreateOrUpdateOptionalParams +export interface WorkspaceApiDiagnosticCreateOrUpdateOptionalParams 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; - -/** Optional parameters. */ -export interface NamedValueUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type 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; - -/** Optional parameters. */ -export interface NamedValueRefreshSecretOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the refreshSecret operation. */ -export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & - NamedValueContract; +export type WorkspaceApiDiagnosticCreateOrUpdateResponse = + WorkspaceApiDiagnosticCreateOrUpdateHeaders & DiagnosticContract; /** Optional parameters. */ -export interface NamedValueListByServiceNextOptionalParams +export interface WorkspaceApiDiagnosticUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type NamedValueListByServiceNextResponse = NamedValueCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiDiagnosticUpdateResponse = + WorkspaceApiDiagnosticUpdateHeaders & DiagnosticContract; /** Optional parameters. */ -export interface NetworkStatusListByServiceOptionalParams +export interface WorkspaceApiDiagnosticDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; - /** Optional parameters. */ -export interface NetworkStatusListByLocationOptionalParams +export interface WorkspaceApiDiagnosticListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type NetworkStatusListByLocationResponse = NetworkStatusContract; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceApiDiagnosticListByWorkspaceNextResponse = + DiagnosticCollection; /** Optional parameters. */ -export interface NotificationListByServiceOptionalParams +export interface WorkspaceLoggerListByWorkspaceOptionalParams 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 |
*/ + 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 NotificationListByServiceResponse = NotificationCollection; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceLoggerListByWorkspaceResponse = LoggerCollection; /** Optional parameters. */ -export interface NotificationGetOptionalParams +export interface WorkspaceLoggerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceLoggerGetEntityTagResponse = + WorkspaceLoggerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceLoggerGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NotificationGetResponse = NotificationContract; +export type WorkspaceLoggerGetResponse = WorkspaceLoggerGetHeaders & + LoggerContract; /** Optional parameters. */ -export interface NotificationCreateOrUpdateOptionalParams +export interface WorkspaceLoggerCreateOrUpdateOptionalParams 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 NotificationCreateOrUpdateResponse = NotificationContract; - -/** Optional parameters. */ -export interface NotificationListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type NotificationListByServiceNextResponse = NotificationCollection; - -/** Optional parameters. */ -export interface NotificationRecipientUserListByNotificationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; - -/** Optional parameters. */ -export interface NotificationRecipientUserCheckEntityExistsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +export type WorkspaceLoggerCreateOrUpdateResponse = + WorkspaceLoggerCreateOrUpdateHeaders & LoggerContract; /** Optional parameters. */ -export interface NotificationRecipientUserCreateOrUpdateOptionalParams +export interface WorkspaceLoggerUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; +/** Contains response data for the update operation. */ +export type WorkspaceLoggerUpdateResponse = WorkspaceLoggerUpdateHeaders & + LoggerContract; /** Optional parameters. */ -export interface NotificationRecipientUserDeleteOptionalParams +export interface WorkspaceLoggerDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NotificationRecipientEmailListByNotificationOptionalParams +export interface WorkspaceLoggerListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceLoggerListByWorkspaceNextResponse = LoggerCollection; /** Optional parameters. */ -export interface NotificationRecipientEmailCheckEntityExistsOptionalParams +export interface ApiManagementWorkspaceLinksListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientEmailCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listByService operation. */ +export type ApiManagementWorkspaceLinksListByServiceResponse = + ApiManagementWorkspaceLinksListResult; /** Optional parameters. */ -export interface NotificationRecipientEmailCreateOrUpdateOptionalParams +export interface ApiManagementWorkspaceLinksListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; +/** Contains response data for the listByServiceNext operation. */ +export type ApiManagementWorkspaceLinksListByServiceNextResponse = + ApiManagementWorkspaceLinksListResult; /** Optional parameters. */ -export interface NotificationRecipientEmailDeleteOptionalParams +export interface ApiManagementWorkspaceLinkGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ApiManagementWorkspaceLinkGetResponse = + ApiManagementWorkspaceLinksResource; + /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceOptionalParams +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9978,152 +14006,134 @@ export interface OpenIdConnectProviderListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; +export type WorkspaceListByServiceResponse = WorkspaceCollection; /** Optional parameters. */ -export interface OpenIdConnectProviderGetEntityTagOptionalParams +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; /** Optional parameters. */ -export interface OpenIdConnectProviderGetOptionalParams +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & - OpenidConnectProviderContract; +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & - OpenidConnectProviderContract; +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderUpdateOptionalParams +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & - OpenidConnectProviderContract; - -/** Optional parameters. */ -export interface OpenIdConnectProviderDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface OpenIdConnectProviderListSecretsOptionalParams +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & - ClientSecretContract; - /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceNextOptionalParams +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; - -/** Optional parameters. */ -export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; /** Optional parameters. */ -export interface PolicyListByServiceOptionalParams +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyListByServiceResponse = PolicyCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspacePolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyGetEntityTagOptionalParams +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +export type WorkspacePolicyGetEntityTagResponse = + WorkspacePolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { +export interface WorkspacePolicyGetOptionalParams + extends coreClient.OperationOptions { /** Policy Export Format. */ format?: PolicyExportFormat; } /** Contains response data for the get operation. */ -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface PolicyCreateOrUpdateOptionalParams +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspacePolicyCreateOrUpdateResponse = + WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface PolicyDeleteOptionalParams +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PolicyDescriptionListByServiceOptionalParams - extends coreClient.OperationOptions { - /** Policy scope. */ - scope?: PolicyScopeContract; -} +export interface WorkspacePolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +/** Contains response data for the listByApiNext operation. */ +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface PolicyFragmentListByServiceOptionalParams +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Query parameter to fetch named value entities based on refresh status. */ + isKeyVaultRefreshFailed?: KeyVaultRefreshState; } /** Contains response data for the listByService operation. */ -export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface PolicyFragmentGetEntityTagOptionalParams +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; +export type WorkspaceNamedValueGetEntityTagResponse = + WorkspaceNamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyFragmentGetOptionalParams - extends coreClient.OperationOptions { - /** Policy fragment content format. */ - format?: PolicyFragmentContentFormat; -} +export interface WorkspaceNamedValueGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & - PolicyFragmentContract; +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; @@ -10134,73 +14144,58 @@ export interface PolicyFragmentCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & - PolicyFragmentContract; - -/** Optional parameters. */ -export interface PolicyFragmentDeleteOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceNamedValueCreateOrUpdateResponse = + WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PolicyFragmentListReferencesOptionalParams +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listReferences operation. */ -export type PolicyFragmentListReferencesResponse = ResourceCollection; - -/** Optional parameters. */ -export interface PortalConfigListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type PortalConfigListByServiceResponse = PortalConfigCollection; +/** Contains response data for the update operation. */ +export type WorkspaceNamedValueUpdateResponse = + WorkspaceNamedValueUpdateHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigGetEntityTagOptionalParams +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; - /** Optional parameters. */ -export interface PortalConfigGetOptionalParams +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PortalConfigGetResponse = PortalConfigGetHeaders & - PortalConfigContract; +/** Contains response data for the listValue operation. */ +export type WorkspaceNamedValueListValueResponse = + WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; /** Optional parameters. */ -export interface PortalConfigUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNamedValueRefreshSecretOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the update operation. */ -export type PortalConfigUpdateResponse = PortalConfigContract; +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceNamedValueRefreshSecretResponse = + WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; /** Optional parameters. */ -export interface PortalConfigCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface PortalRevisionListByServiceOptionalParams +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** - * | Field | Supported operators | Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |isCurrent | eq, ne | | - * - */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10209,26 +14204,29 @@ export interface PortalRevisionListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalRevisionGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = + WorkspaceGlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalRevisionGetOptionalParams +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -10236,269 +14234,195 @@ export interface PortalRevisionCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & - PortalRevisionContract; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = + WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; /** Optional parameters. */ -export interface PortalRevisionUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & - PortalRevisionContract; +export interface WorkspaceGlobalSchemaDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PortalRevisionListByServiceNextOptionalParams +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; +export type WorkspaceGlobalSchemaListByServiceNextResponse = + GlobalSchemaCollection; /** Optional parameters. */ -export interface PortalSettingsListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNotificationListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} /** Contains response data for the listByService operation. */ -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; - -/** Optional parameters. */ -export interface SignInSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface SignInSettingsGetOptionalParams +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & - PortalSigninSettings; +export type WorkspaceNotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface SignInSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SignInSettingsCreateOrUpdateOptionalParams +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; - -/** Optional parameters. */ -export interface SignUpSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; - -/** Optional parameters. */ -export interface SignUpSettingsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & - PortalSignupSettings; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface SignUpSettingsUpdateOptionalParams +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SignUpSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNotificationListByServiceNextResponse = + NotificationCollection; /** Optional parameters. */ -export interface DelegationSettingsGetEntityTagOptionalParams +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientUserListByNotificationResponse = + RecipientUserCollection; /** Optional parameters. */ -export interface DelegationSettingsGetOptionalParams +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & - PortalDelegationSettings; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface DelegationSettingsUpdateOptionalParams +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface DelegationSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - /** Contains response data for the createOrUpdate operation. */ -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = + RecipientUserContract; /** Optional parameters. */ -export interface DelegationSettingsListSecretsOptionalParams +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; - /** Optional parameters. */ -export interface PrivateEndpointConnectionListByServiceOptionalParams +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = + RecipientEmailCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetByNameOptionalParams +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface PrivateEndpointConnectionDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPrivateLinkResources operation. */ -export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = + RecipientEmailContract; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getPrivateLinkResource operation. */ -export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductListByServiceOptionalParams +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Products which are part of a specific tag. */ - tags?: string; - /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ - expandGroups?: boolean; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ProductListByServiceResponse = ProductCollection; +export type WorkspacePolicyFragmentListByServiceResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductGetEntityTagOptionalParams +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; +export type WorkspacePolicyFragmentGetEntityTagResponse = + WorkspacePolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspacePolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ProductGetResponse = ProductGetHeaders & ProductContract; +export type WorkspacePolicyFragmentGetResponse = + WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductCreateOrUpdateOptionalParams +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & - ProductContract; +export type WorkspacePolicyFragmentCreateOrUpdateResponse = + WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; /** Optional parameters. */ -export interface ProductUpdateOptionalParams +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; - -/** Optional parameters. */ -export interface ProductDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delete existing subscriptions associated with the product or not. */ - deleteSubscriptions?: boolean; -} - /** Optional parameters. */ -export interface ProductListByTagsOptionalParams +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Products. */ - includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ProductListByTagsResponse = TagResourceCollection; +/** Contains response data for the listReferences operation. */ +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ProductListByServiceNextOptionalParams +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ProductListByServiceNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ProductListByTagsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByTagsNext operation. */ -export type ProductListByTagsNextResponse = TagResourceCollection; +export type WorkspacePolicyFragmentListByServiceNextResponse = + PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductApiListByProductOptionalParams +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10506,40 +14430,59 @@ export interface ProductApiListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductApiListByProductResponse = ApiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceGroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ProductApiCheckEntityExistsOptionalParams +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type ProductApiCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceGroupGetEntityTagResponse = + WorkspaceGroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductApiCreateOrUpdateOptionalParams +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & + GroupContract; + +/** Optional parameters. */ +export interface WorkspaceGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ProductApiCreateOrUpdateResponse = ApiContract; +export type WorkspaceGroupCreateOrUpdateResponse = + WorkspaceGroupCreateOrUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ProductApiDeleteOptionalParams +export interface WorkspaceGroupUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & + GroupContract; + +/** Optional parameters. */ +export interface 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; @@ -10547,38 +14490,38 @@ export interface ProductGroupListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductGroupListByProductResponse = GroupCollection; +/** Contains response data for the list operation. */ +export type WorkspaceGroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface ProductGroupCheckEntityExistsOptionalParams +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkEntityExists operation. */ -export type ProductGroupCheckEntityExistsResponse = { +export type WorkspaceGroupUserCheckEntityExistsResponse = { body: boolean; }; /** Optional parameters. */ -export interface ProductGroupCreateOrUpdateOptionalParams +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ProductGroupCreateOrUpdateResponse = GroupContract; +/** Contains response data for the create operation. */ +export type WorkspaceGroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ProductGroupDeleteOptionalParams +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductGroupListByProductNextOptionalParams +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductGroupListByProductNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type WorkspaceGroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ProductSubscriptionsListOptionalParams +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; @@ -10589,94 +14532,91 @@ export interface ProductSubscriptionsListOptionalParams } /** Contains response data for the list operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductSubscriptionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductPolicyListByProductOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByProduct operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ProductPolicyGetEntityTagOptionalParams +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +export type WorkspaceSubscriptionGetEntityTagResponse = + WorkspaceSubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface WorkspaceSubscriptionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyCreateOrUpdateOptionalParams +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspaceSubscriptionCreateOrUpdateResponse = + WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} + +/** Contains response data for the update operation. */ +export type WorkspaceSubscriptionUpdateResponse = + WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; /** Optional parameters. */ -export interface ProductWikiGetEntityTagOptionalParams +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; - /** Optional parameters. */ -export interface ProductWikiGetOptionalParams +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; - /** Optional parameters. */ -export interface ProductWikiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & - WikiContract; +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductWikiUpdateOptionalParams +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; +/** Contains response data for the listSecrets operation. */ +export type WorkspaceSubscriptionListSecretsResponse = + WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; /** Optional parameters. */ -export interface ProductWikiDeleteOptionalParams +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + /** Optional parameters. */ -export interface ProductWikisListOptionalParams +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10684,314 +14624,372 @@ export interface ProductWikisListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; - -/** Optional parameters. */ -export interface ProductWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductWikisListNextResponse = ProductWikisListNextHeaders & - WikiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiVersionSetListByServiceResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface QuotaByCounterKeysListByServiceOptionalParams +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiVersionSetGetEntityTagResponse = + WorkspaceApiVersionSetGetEntityTagHeaders; /** Optional parameters. */ -export interface QuotaByCounterKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiVersionSetGetResponse = + WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the get operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiVersionSetCreateOrUpdateResponse = + WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; +export type WorkspaceApiVersionSetUpdateResponse = + WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; /** Optional parameters. */ -export interface RegionListByServiceOptionalParams +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type RegionListByServiceResponse = RegionListResult; - /** Optional parameters. */ -export interface RegionListByServiceNextOptionalParams +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type RegionListByServiceNextResponse = RegionListResult; +export type WorkspaceApiVersionSetListByServiceNextResponse = + ApiVersionSetCollection; /** Optional parameters. */ -export interface ReportsListByApiOptionalParams +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; } -/** Contains response data for the listByApi operation. */ -export type ReportsListByApiResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByUserOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByUser operation. */ -export type ReportsListByUserResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationOptionalParams +export interface WorkspaceApiGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +/** Optional parameters. */ +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 listByOperation operation. */ -export type ReportsListByOperationResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiCreateOrUpdateResponse = + WorkspaceApiCreateOrUpdateHeaders & ApiContract; /** Optional parameters. */ -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; -} +export interface WorkspaceApiUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByProduct operation. */ -export type ReportsListByProductResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & + ApiContract; /** Optional parameters. */ -export interface ReportsListByGeoOptionalParams +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; } -/** Contains response data for the listByGeo operation. */ -export type ReportsListByGeoResponse = ReportCollection; +/** Optional parameters. */ +export interface WorkspaceApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListBySubscriptionOptionalParams +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 listBySubscription operation. */ -export type ReportsListBySubscriptionResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; /** Optional parameters. */ -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; -} +export interface WorkspaceApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByTime operation. */ -export type ReportsListByTimeResponse = ReportCollection; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiRevisionListByServiceNextResponse = + ApiRevisionCollection; /** Optional parameters. */ -export interface ReportsListByRequestOptionalParams +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; @@ -10999,306 +14997,313 @@ export interface SubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type SubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; /** Optional parameters. */ -export interface SubscriptionGetEntityTagOptionalParams +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; +export type WorkspaceApiSchemaGetEntityTagResponse = + WorkspaceApiSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface SubscriptionGetOptionalParams +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SubscriptionGetResponse = SubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & + SchemaContract; /** Optional parameters. */ -export interface SubscriptionCreateOrUpdateOptionalParams +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & - SubscriptionContract; +export type WorkspaceApiSchemaCreateOrUpdateResponse = + WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; /** Optional parameters. */ -export interface SubscriptionUpdateOptionalParams +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; + /** If true removes all references to the schema before deleting it. */ + force?: boolean; } -/** Contains response data for the update operation. */ -export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & - SubscriptionContract; - /** Optional parameters. */ -export interface SubscriptionDeleteOptionalParams +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + /** Optional parameters. */ -export interface SubscriptionRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type WorkspaceProductListByServiceResponse = ProductCollection; + +/** Optional parameters. */ +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductGetEntityTagResponse = + WorkspaceProductGetEntityTagHeaders; + /** Optional parameters. */ -export interface SubscriptionRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & + ProductContract; + /** Optional parameters. */ -export interface SubscriptionListSecretsOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listSecrets operation. */ -export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & - SubscriptionKeysContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductCreateOrUpdateResponse = + WorkspaceProductCreateOrUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface SubscriptionListNextOptionalParams +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the update operation. */ +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface TagResourceListByServiceOptionalParams +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; } -/** Contains response data for the listByService operation. */ -export type TagResourceListByServiceResponse = TagResourceCollection; - /** Optional parameters. */ -export interface TagResourceListByServiceNextOptionalParams +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagResourceListByServiceNextResponse = TagResourceCollection; +export type WorkspaceProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface TenantAccessListByServiceOptionalParams +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Not used */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the listByService operation. */ -export type TenantAccessListByServiceResponse = AccessInformationCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductApiLinkListByProductResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessGetEntityTagOptionalParams +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type WorkspaceProductApiLinkGetResponse = + WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessGetOptionalParams +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantAccessGetResponse = TenantAccessGetHeaders & - AccessInformationContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductApiLinkCreateOrUpdateResponse = + ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessCreateOptionalParams +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type TenantAccessCreateResponse = TenantAccessCreateHeaders & - AccessInformationContract; - /** Optional parameters. */ -export interface TenantAccessUpdateOptionalParams +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & - AccessInformationContract; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductApiLinkListByProductNextResponse = + ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegeneratePrimaryKeyOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductGroupLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductGroupLinkListByProductResponse = + ProductGroupLinkCollection; /** Optional parameters. */ -export interface TenantAccessRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceProductGroupLinkGetResponse = + WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + /** Optional parameters. */ -export interface TenantAccessListSecretsOptionalParams +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & - AccessInformationSecretsContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = + ProductGroupLinkContract; /** Optional parameters. */ -export interface TenantAccessListByServiceNextOptionalParams +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantAccessListByServiceNextResponse = AccessInformationCollection; - /** Optional parameters. */ -export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductGroupLinkListByProductNextResponse = + ProductGroupLinkCollection; + /** Optional parameters. */ -export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + /** Optional parameters. */ -export interface TenantConfigurationDeployOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspaceProductPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the deploy operation. */ -export type TenantConfigurationDeployResponse = OperationResultContract; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductPolicyGetEntityTagResponse = + WorkspaceProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TenantConfigurationSaveOptionalParams +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the save operation. */ -export type TenantConfigurationSaveResponse = OperationResultContract; +/** Contains response data for the get operation. */ +export type WorkspaceProductPolicyGetResponse = + WorkspaceProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationValidateOptionalParams +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the validate operation. */ -export type TenantConfigurationValidateResponse = OperationResultContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductPolicyCreateOrUpdateResponse = + WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationGetSyncStateOptionalParams +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSyncState operation. */ -export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; - /** Optional parameters. */ -export interface UserListByServiceOptionalParams +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Detailed Group in response. */ - expandGroups?: boolean; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; } /** Contains response data for the listByService operation. */ -export type UserListByServiceResponse = UserCollection; +export type WorkspaceTagListByServiceResponse = TagCollection; /** Optional parameters. */ -export interface UserGetEntityTagOptionalParams +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type UserGetEntityTagResponse = UserGetEntityTagHeaders; +/** Contains response data for the getEntityState operation. */ +export type WorkspaceTagGetEntityStateResponse = + WorkspaceTagGetEntityStateHeaders; /** Optional parameters. */ -export interface UserGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceTagGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserGetResponse = UserGetHeaders & UserContract; +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; /** Optional parameters. */ -export interface UserCreateOrUpdateOptionalParams +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Send an Email notification to the User. */ - notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & - UserContract; - -/** Optional parameters. */ -export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type UserUpdateResponse = UserUpdateHeaders & UserContract; - -/** Optional parameters. */ -export interface UserDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether to delete user's subscription or not. */ - deleteSubscriptions?: boolean; - /** Send an Account Closed Email notification to the User. */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +export type WorkspaceTagCreateOrUpdateResponse = + WorkspaceTagCreateOrUpdateHeaders & TagContract; /** Optional parameters. */ -export interface UserGenerateSsoUrlOptionalParams +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUrl operation. */ -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +/** Contains response data for the update operation. */ +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserGetSharedAccessTokenOptionalParams +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSharedAccessToken operation. */ -export type UserGetSharedAccessTokenResponse = UserTokenResult; - /** Optional parameters. */ -export interface UserListByServiceNextOptionalParams +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type UserListByServiceNextResponse = UserCollection; +export type WorkspaceTagListByServiceNextResponse = TagCollection; /** Optional parameters. */ -export interface UserGroupListOptionalParams +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11306,20 +15311,39 @@ export interface UserGroupListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserGroupListResponse = GroupCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface UserGroupListNextOptionalParams +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserGroupListNextResponse = GroupCollection; +/** Contains response data for the get operation. */ +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & + TagApiLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListOptionalParams +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11327,49 +15351,42 @@ export interface UserSubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserSubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagOperationLinkListByProductResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface UserSubscriptionGetOptionalParams +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceTagOperationLinkGetResponse = + WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListNextOptionalParams +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserSubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = + TagOperationLinkContract; /** Optional parameters. */ -export interface UserIdentitiesListOptionalParams +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UserIdentitiesListResponse = UserIdentityCollection; - /** Optional parameters. */ -export interface UserIdentitiesListNextOptionalParams +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserIdentitiesListNextResponse = UserIdentityCollection; - -/** Optional parameters. */ -export interface UserConfirmationPasswordSendOptionalParams - extends coreClient.OperationOptions { - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagOperationLinkListByProductNextResponse = + TagOperationLinkCollection; /** Optional parameters. */ -export interface DocumentationListByServiceOptionalParams +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11377,53 +15394,58 @@ export interface DocumentationListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DocumentationListByServiceResponse = DocumentationCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagProductLinkListByProductResponse = + TagProductLinkCollection; /** Optional parameters. */ -export interface DocumentationGetEntityTagOptionalParams +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; +/** Contains response data for the get operation. */ +export type WorkspaceTagProductLinkGetResponse = + WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationGetOptionalParams +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DocumentationGetResponse = DocumentationGetHeaders & - DocumentationContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagProductLinkCreateOrUpdateResponse = + TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface WorkspaceTagProductLinkDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & - DocumentationContract; +/** Optional parameters. */ +export interface WorkspaceTagProductLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagProductLinkListByProductNextResponse = + TagProductLinkCollection; /** Optional parameters. */ -export interface DocumentationUpdateOptionalParams +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DocumentationUpdateResponse = DocumentationUpdateHeaders & - DocumentationContract; +/** Contains response data for the get operation. */ +export type WorkspaceApiExportGetResponse = ApiExportResult; /** Optional parameters. */ -export interface DocumentationDeleteOptionalParams +export interface OperationStatusGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type OperationStatusGetResponse = OperationStatusResult; + /** Optional parameters. */ -export interface DocumentationListByServiceNextOptionalParams +export interface OperationsResultsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DocumentationListByServiceNextResponse = DocumentationCollection; +/** Contains response data for the get operation. */ +export type OperationsResultsGetResponse = OperationsResultsGetHeaders; /** Optional parameters. */ export interface ApiManagementClientOptionalParams diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 8234e98b768a..e1c549eaff14 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -8,18901 +8,23260 @@ import * as coreClient from "@azure/core-client"; -export const ApiCollection: coreClient.CompositeMapper = { - serializedName: "ApiCollection", +export const AllPoliciesCollection: coreClient.CompositeMapper = { + serializedName: "AllPoliciesCollection", type: { name: "Composite", - className: "ApiCollection", + className: "AllPoliciesCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "ApiContract", + xmlElementName: "AllPoliciesContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "AllPoliciesContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractDetails", +export const Resource: coreClient.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "ApiVersionSetContractDetails", + className: "Resource", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", + readOnly: true, xmlName: "name", type: { - name: "String" - } - }, - description: { - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - versionQueryName: { - serializedName: "versionQueryName", - xmlName: "versionQueryName", + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + xmlName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorDetail", + }, }, - versionHeaderName: { - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiEntityBaseContract: coreClient.CompositeMapper = { - serializedName: "ApiEntityBaseContract", +export const ErrorDetail: coreClient.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "ApiEntityBaseContract", + className: "ErrorDetail", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + code: { + serializedName: "code", + readOnly: true, + xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, - authenticationSettings: { - serializedName: "authenticationSettings", - xmlName: "authenticationSettings", + message: { + serializedName: "message", + readOnly: true, + xmlName: "message", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "String", + }, }, - subscriptionKeyParameterNames: { - serializedName: "subscriptionKeyParameterNames", - xmlName: "subscriptionKeyParameterNames", + target: { + serializedName: "target", + readOnly: true, + xmlName: "target", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "String", + }, }, - apiType: { - serializedName: "type", - xmlName: "type", + details: { + serializedName: "details", + readOnly: true, + xmlName: "details", + xmlElementName: "ErrorDetail", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, }, - serializedName: "apiRevision", - xmlName: "apiRevision", - type: { - name: "String" - } }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "apiVersion", - xmlName: "apiVersion", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + xmlName: "additionalInfo", + xmlElementName: "ErrorAdditionalInfo", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, }, - isCurrent: { - serializedName: "isCurrent", - xmlName: "isCurrent", + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "Boolean" - } + name: "String", + }, }, - isOnline: { - serializedName: "isOnline", + info: { + serializedName: "info", readOnly: true, - xmlName: "isOnline", + xmlName: "info", type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "Dictionary", + value: { type: { name: "any" } }, }, - serializedName: "apiRevisionDescription", - xmlName: "apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "apiVersionDescription", - xmlName: "apiVersionDescription", + }, + }, +}; + +export const ApiManagementGatewayBaseProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayBaseProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayBaseProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, - apiVersionSetId: { - serializedName: "apiVersionSetId", - xmlName: "apiVersionSetId", + targetProvisioningState: { + serializedName: "targetProvisioningState", + readOnly: true, + xmlName: "targetProvisioningState", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "subscriptionRequired", - xmlName: "subscriptionRequired", + createdAtUtc: { + serializedName: "createdAtUtc", + readOnly: true, + xmlName: "createdAtUtc", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - termsOfServiceUrl: { - serializedName: "termsOfServiceUrl", - xmlName: "termsOfServiceUrl", + frontend: { + serializedName: "frontend", + xmlName: "frontend", type: { - name: "String" - } + name: "Composite", + className: "FrontendConfiguration", + }, }, - contact: { - serializedName: "contact", - xmlName: "contact", + backend: { + serializedName: "backend", + xmlName: "backend", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "BackendConfiguration", + }, }, - license: { - serializedName: "license", - xmlName: "license", + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", type: { name: "Composite", - className: "ApiLicenseInformation" - } - } - } - } + className: "GatewayConfigurationApi", + }, + }, + virtualNetworkType: { + serializedName: "virtualNetworkType", + xmlName: "virtualNetworkType", + type: { + name: "String", + }, + }, + }, + }, }; -export const AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "AuthenticationSettingsContract", +export const FrontendConfiguration: coreClient.CompositeMapper = { + serializedName: "FrontendConfiguration", type: { name: "Composite", - className: "AuthenticationSettingsContract", + className: "FrontendConfiguration", modelProperties: { - oAuth2: { - serializedName: "oAuth2", - xmlName: "oAuth2", - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - }, - openid: { - serializedName: "openid", - xmlName: "openid", - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - }, - oAuth2AuthenticationSettings: { - serializedName: "oAuth2AuthenticationSettings", - xmlName: "oAuth2AuthenticationSettings", - xmlElementName: "OAuth2AuthenticationSettingsContract", + defaultHostname: { + serializedName: "defaultHostname", + readOnly: true, + xmlName: "defaultHostname", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OAuth2AuthenticationSettingsContract" - } - } - } + name: "String", + }, }, - openidAuthenticationSettings: { - serializedName: "openidAuthenticationSettings", - xmlName: "openidAuthenticationSettings", - xmlElementName: "OpenIdAuthenticationSettingsContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - } - } - } - } - } + }, + }, }; -export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OAuth2AuthenticationSettingsContract", +export const BackendConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendConfiguration", type: { name: "Composite", - className: "OAuth2AuthenticationSettingsContract", + className: "BackendConfiguration", modelProperties: { - authorizationServerId: { - serializedName: "authorizationServerId", - xmlName: "authorizationServerId", + subnet: { + serializedName: "subnet", + xmlName: "subnet", type: { - name: "String" - } + name: "Composite", + className: "BackendSubnetConfiguration", + }, }, - scope: { - serializedName: "scope", - xmlName: "scope", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = { - serializedName: "OpenIdAuthenticationSettingsContract", +export const BackendSubnetConfiguration: coreClient.CompositeMapper = { + serializedName: "BackendSubnetConfiguration", type: { name: "Composite", - className: "OpenIdAuthenticationSettingsContract", + className: "BackendSubnetConfiguration", modelProperties: { - openidProviderId: { - serializedName: "openidProviderId", - xmlName: "openidProviderId", + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionKeyParameterNamesContract", +export const GatewayConfigurationApi: coreClient.CompositeMapper = { + serializedName: "GatewayConfigurationApi", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract", + className: "GatewayConfigurationApi", modelProperties: { - header: { - serializedName: "header", - xmlName: "header", + hostname: { + serializedName: "hostname", + readOnly: true, + xmlName: "hostname", type: { - name: "String" - } + name: "String", + }, }, - query: { - serializedName: "query", - xmlName: "query", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContactInformation: coreClient.CompositeMapper = { - serializedName: "ApiContactInformation", +export const ApiManagementGatewaySkuProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewaySkuProperties", type: { name: "Composite", - className: "ApiContactInformation", + className: "ApiManagementGatewaySkuProperties", modelProperties: { name: { serializedName: "name", + required: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + capacity: { + serializedName: "capacity", + xmlName: "capacity", type: { - name: "String" - } + name: "Number", + }, }, - email: { - serializedName: "email", - xmlName: "email", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiLicenseInformation: coreClient.CompositeMapper = { - serializedName: "ApiLicenseInformation", +export const SystemData: coreClient.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "ApiLicenseInformation", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - xmlName: "name", + createdBy: { + serializedName: "createdBy", + xmlName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, - url: { - serializedName: "url", - xmlName: "url", + createdByType: { + serializedName: "createdByType", + xmlName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + xmlName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + xmlName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + xmlName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + xmlName: "lastModifiedAt", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const Resource: coreClient.CompositeMapper = { - serializedName: "Resource", +export const ApimResource: coreClient.CompositeMapper = { + serializedName: "ApimResource", type: { name: "Composite", - className: "Resource", + className: "ApimResource", modelProperties: { id: { serializedName: "id", readOnly: true, xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + tags: { + serializedName: "tags", + xmlName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ApiManagementGatewaySkuPropertiesForPatch: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewaySkuPropertiesForPatch", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + xmlName: "capacity", + type: { + name: "Number", + }, + }, + }, + }, + }; -export const ErrorResponse: coreClient.CompositeMapper = { - serializedName: "ErrorResponse", +export const ApiManagementGatewayListResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayListResult", type: { name: "Composite", - className: "ErrorResponse", + className: "ApiManagementGatewayListResult", modelProperties: { - code: { - serializedName: "error.code", - xmlName: "error.code", - type: { - name: "String" - } - }, - message: { - serializedName: "error.message", - xmlName: "error.message", - type: { - name: "String" - } - }, - details: { - serializedName: "error.details", - xmlName: "error.details", - xmlElementName: "ErrorFieldContract", + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementGatewayResource", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + className: "ApiManagementGatewayResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ErrorResponseBody: coreClient.CompositeMapper = { - serializedName: "ErrorResponseBody", +export const GatewayResourceSkuResults: coreClient.CompositeMapper = { + serializedName: "GatewayResourceSkuResults", type: { name: "Composite", - className: "ErrorResponseBody", + className: "GatewayResourceSkuResults", modelProperties: { - code: { - serializedName: "code", - xmlName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - xmlName: "message", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - xmlName: "details", - xmlElementName: "ErrorFieldContract", + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "GatewayResourceSkuResult", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorFieldContract" - } - } - } - } - } - } + className: "GatewayResourceSkuResult", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ErrorFieldContract: coreClient.CompositeMapper = { - serializedName: "ErrorFieldContract", +export const GatewayResourceSkuResult: coreClient.CompositeMapper = { + serializedName: "GatewayResourceSkuResult", type: { name: "Composite", - className: "ErrorFieldContract", + className: "GatewayResourceSkuResult", modelProperties: { - code: { - serializedName: "code", - xmlName: "code", + resourceType: { + serializedName: "resourceType", + readOnly: true, + xmlName: "resourceType", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" - } + name: "Composite", + className: "GatewaySku", + }, }, - target: { - serializedName: "target", - xmlName: "target", + capacity: { + serializedName: "capacity", + xmlName: "capacity", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "GatewaySkuCapacity", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateParameter", +export const GatewaySku: coreClient.CompositeMapper = { + serializedName: "GatewaySku", type: { name: "Composite", - className: "ApiCreateOrUpdateParameter", + className: "GatewaySku", modelProperties: { - description: { - serializedName: "properties.description", - xmlName: "properties.description", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + }, + }, +}; + +export const GatewaySkuCapacity: coreClient.CompositeMapper = { + serializedName: "GatewaySkuCapacity", + type: { + name: "Composite", + className: "GatewaySkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", + readOnly: true, + xmlName: "minimum", type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } + name: "Number", + }, }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + maximum: { + serializedName: "maximum", + readOnly: true, + xmlName: "maximum", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + name: "Number", + }, }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + default: { + serializedName: "default", + readOnly: true, + xmlName: "default", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Number", }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", - type: { - name: "String" - } }, - apiVersion: { - constraints: { - MaxLength: 100 + scaleType: { + serializedName: "scaleType", + readOnly: true, + xmlName: "scaleType", + type: { + name: "String", }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + }, + }, + }, +}; + +export const ApiCollection: coreClient.CompositeMapper = { + serializedName: "ApiCollection", + type: { + name: "Composite", + className: "ApiCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ApiContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiContract", + }, + }, + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Boolean" - } + name: "Number", + }, }, - isOnline: { - serializedName: "properties.isOnline", + nextLink: { + serializedName: "nextLink", readOnly: true, - xmlName: "properties.isOnline", + xmlName: "nextLink", type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", - 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", + }, + }, +}; + +export const ApiVersionSetContractDetails: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractDetails", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } - }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "String" - } }, - format: { - serializedName: "properties.format", - xmlName: "properties.format", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - wsdlSelector: { - serializedName: "properties.wsdlSelector", - xmlName: "properties.wsdlSelector", + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } + name: "String", + }, }, - soapApiType: { - serializedName: "properties.apiType", - xmlName: "properties.apiType", + versionQueryName: { + serializedName: "versionQueryName", + xmlName: "versionQueryName", type: { - name: "String" - } + name: "String", + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "properties.translateRequiredQueryParameters", - xmlName: "properties.translateRequiredQueryParameters", - type: { - name: "String" - } - } - } - } -}; - -export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", - type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector", - modelProperties: { - wsdlServiceName: { - serializedName: "wsdlServiceName", - xmlName: "wsdlServiceName", + versionHeaderName: { + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, - wsdlEndpointName: { - serializedName: "wsdlEndpointName", - xmlName: "wsdlEndpointName", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiUpdateContract: coreClient.CompositeMapper = { - serializedName: "ApiUpdateContract", +export const ApiEntityBaseContract: coreClient.CompositeMapper = { + serializedName: "ApiEntityBaseContract", type: { name: "Composite", - className: "ApiUpdateContract", + className: "ApiEntityBaseContract", modelProperties: { description: { - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + serializedName: "authenticationSettings", + xmlName: "authenticationSettings", type: { name: "Composite", - className: "AuthenticationSettingsContract" - } + className: "AuthenticationSettingsContract", + }, }, subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + serializedName: "subscriptionKeyParameterNames", + xmlName: "subscriptionKeyParameterNames", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } + className: "SubscriptionKeyParameterNamesContract", + }, }, apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + serializedName: "type", + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, apiRevision: { constraints: { MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + serializedName: "apiRevision", + xmlName: "apiRevision", type: { - name: "String" - } + name: "String", + }, }, apiVersion: { constraints: { - MaxLength: 100 + MaxLength: 100, }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + serializedName: "apiVersion", + xmlName: "apiVersion", type: { - name: "String" - } + name: "String", + }, }, isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + serializedName: "isCurrent", + xmlName: "isCurrent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isOnline: { - serializedName: "properties.isOnline", + serializedName: "isOnline", readOnly: true, - xmlName: "properties.isOnline", + xmlName: "isOnline", type: { - name: "Boolean" - } + name: "Boolean", + }, }, apiRevisionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + serializedName: "apiRevisionDescription", + xmlName: "apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionDescription: { constraints: { - MaxLength: 256 + MaxLength: 256, }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "apiVersionDescription", + xmlName: "apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + serializedName: "apiVersionSetId", + xmlName: "apiVersionSetId", type: { - name: "String" - } + name: "String", + }, }, subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + serializedName: "subscriptionRequired", + xmlName: "subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + serializedName: "termsOfServiceUrl", + xmlName: "termsOfServiceUrl", type: { - name: "String" - } + name: "String", + }, }, contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + serializedName: "contact", + xmlName: "contact", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "ApiContactInformation", + }, }, license: { - serializedName: "properties.license", - xmlName: "properties.license", + serializedName: "license", + xmlName: "license", type: { name: "Composite", - className: "ApiLicenseInformation" - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + className: "ApiLicenseInformation", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + }, + }, +}; + +export const AuthenticationSettingsContract: coreClient.CompositeMapper = { + serializedName: "AuthenticationSettingsContract", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + modelProperties: { + oAuth2: { + serializedName: "oAuth2", + xmlName: "oAuth2", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", }, - serializedName: "properties.path", - xmlName: "properties.path", + }, + openid: { + serializedName: "openid", + xmlName: "openid", type: { - name: "String" - } + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + }, }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApiRevisionCollection: coreClient.CompositeMapper = { - serializedName: "ApiRevisionCollection", - type: { - name: "Composite", - className: "ApiRevisionCollection", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "ApiRevisionContract", + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + }, + }, + }, + }, + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiRevisionContract" - } - } - } + className: "OpenIdAuthenticationSettingsContract", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + }, + }, +}; + +export const OAuth2AuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + modelProperties: { + authorizationServerId: { + serializedName: "authorizationServerId", + xmlName: "authorizationServerId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "scope", + xmlName: "scope", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const OpenIdAuthenticationSettingsContract: coreClient.CompositeMapper = + { + serializedName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + modelProperties: { + openidProviderId: { + serializedName: "openidProviderId", + xmlName: "openidProviderId", + type: { + name: "String", + }, + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const SubscriptionKeyParameterNamesContract: coreClient.CompositeMapper = + { + serializedName: "SubscriptionKeyParameterNamesContract", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + modelProperties: { + header: { + serializedName: "header", + xmlName: "header", + type: { + name: "String", + }, + }, + query: { + serializedName: "query", + xmlName: "query", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiRevisionContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionContract", +export const ApiContactInformation: coreClient.CompositeMapper = { + serializedName: "ApiContactInformation", type: { name: "Composite", - className: "ApiRevisionContract", + className: "ApiContactInformation", modelProperties: { - apiId: { - serializedName: "apiId", - readOnly: true, - xmlName: "apiId", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "apiRevision", - readOnly: true, - xmlName: "apiRevision", - type: { - name: "String" - } - }, - createdDateTime: { - serializedName: "createdDateTime", - readOnly: true, - xmlName: "createdDateTime", - type: { - name: "DateTime" - } }, - updatedDateTime: { - serializedName: "updatedDateTime", - readOnly: true, - xmlName: "updatedDateTime", + url: { + serializedName: "url", + xmlName: "url", type: { - name: "DateTime" - } - }, - description: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "description", - readOnly: true, - xmlName: "description", - type: { - name: "String" - } - }, - privateUrl: { - serializedName: "privateUrl", - readOnly: true, - xmlName: "privateUrl", - type: { - name: "String" - } }, - isOnline: { - serializedName: "isOnline", - readOnly: true, - xmlName: "isOnline", + email: { + serializedName: "email", + xmlName: "email", type: { - name: "Boolean" - } + name: "String", + }, }, - isCurrent: { - serializedName: "isCurrent", - readOnly: true, - xmlName: "isCurrent", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const ApiReleaseCollection: coreClient.CompositeMapper = { - serializedName: "ApiReleaseCollection", +export const ApiLicenseInformation: coreClient.CompositeMapper = { + serializedName: "ApiLicenseInformation", type: { name: "Composite", - className: "ApiReleaseCollection", + className: "ApiLicenseInformation", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "ApiReleaseContract", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiReleaseContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + url: { + serializedName: "url", + xmlName: "url", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const OperationCollection: coreClient.CompositeMapper = { - serializedName: "OperationCollection", +export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateParameter", type: { name: "Composite", - className: "OperationCollection", + className: "ApiCreateOrUpdateParameter", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "OperationContract", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "Number" - } + name: "Composite", + className: "AuthenticationSettingsContract", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "String" - } - } - } - } -}; - -export const OperationEntityBaseContract: coreClient.CompositeMapper = { - serializedName: "OperationEntityBaseContract", - type: { - name: "Composite", - className: "OperationEntityBaseContract", - modelProperties: { - templateParameters: { - serializedName: "templateParameters", - xmlName: "templateParameters", - xmlElementName: "ParameterContract", + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, + }, + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } + name: "String", + }, }, - description: { + apiRevision: { constraints: { - MaxLength: 1000 + MaxLength: 100, + MinLength: 1, }, - serializedName: "description", - xmlName: "description", + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { - name: "String" - } + name: "String", + }, }, - request: { - serializedName: "request", - xmlName: "request", + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { - name: "Composite", - className: "RequestContract" - } + name: "String", + }, }, - responses: { - serializedName: "responses", - xmlName: "responses", - xmlElementName: "ResponseContract", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } - } + name: "Boolean", + }, }, - policies: { - serializedName: "policies", - xmlName: "policies", - type: { - name: "String" - } - } - } - } -}; - -export const ParameterContract: coreClient.CompositeMapper = { - serializedName: "ParameterContract", - type: { - name: "Composite", - className: "ParameterContract", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" - } + name: "Boolean", + }, }, - description: { - serializedName: "description", - xmlName: "description", + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", - required: true, - xmlName: "type", + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, - defaultValue: { - serializedName: "defaultValue", - xmlName: "defaultValue", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { - name: "String" - } + name: "String", + }, }, - required: { - serializedName: "required", - xmlName: "required", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - values: { - serializedName: "values", - xmlName: "values", - xmlElementName: "ParameterContractValuesItem", + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - schemaId: { - serializedName: "schemaId", - xmlName: "schemaId", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "String" - } + name: "Composite", + className: "ApiContactInformation", + }, }, - typeName: { - serializedName: "typeName", - xmlName: "typeName", + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "String" - } + name: "Composite", + className: "ApiLicenseInformation", + }, }, - examples: { - serializedName: "examples", - xmlName: "examples", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } -}; - -export const ParameterExampleContract: coreClient.CompositeMapper = { - serializedName: "ParameterExampleContract", - type: { - name: "Composite", - className: "ParameterExampleContract", - modelProperties: { - summary: { - serializedName: "summary", - xmlName: "summary", + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "value", - xmlName: "value", + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { - name: "any" - } + name: "String", + }, }, - externalValue: { - serializedName: "externalValue", - xmlName: "externalValue", - type: { - name: "String" - } - } - } - } -}; - -export const RequestContract: coreClient.CompositeMapper = { - serializedName: "RequestContract", - type: { - name: "Composite", - className: "RequestContract", - modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, - queryParameters: { - serializedName: "queryParameters", - xmlName: "queryParameters", - xmlElementName: "ParameterContract", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ParameterContract" - } - } - } + name: "String", + }, + }, + }, }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "ParameterContract", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } + name: "Composite", + className: "ApiVersionSetContractDetails", + }, }, - representations: { - serializedName: "representations", - xmlName: "representations", - xmlElementName: "RepresentationContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RepresentationContract" - } - } - } - } - } - } -}; - -export const RepresentationContract: coreClient.CompositeMapper = { - serializedName: "RepresentationContract", - type: { - name: "Composite", - className: "RepresentationContract", - modelProperties: { - contentType: { - serializedName: "contentType", - required: true, - xmlName: "contentType", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - schemaId: { - serializedName: "schemaId", - xmlName: "schemaId", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - typeName: { - serializedName: "typeName", - xmlName: "typeName", + format: { + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "String" - } + name: "String", + }, }, - formParameters: { - serializedName: "formParameters", - xmlName: "formParameters", - xmlElementName: "ParameterContract", + wsdlSelector: { + serializedName: "properties.wsdlSelector", + xmlName: "properties.wsdlSelector", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + }, }, - examples: { - serializedName: "examples", - xmlName: "examples", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "ParameterExampleContract" } - } - } - } - } - } -}; - -export const ResponseContract: coreClient.CompositeMapper = { - serializedName: "ResponseContract", - type: { - name: "Composite", - className: "ResponseContract", - modelProperties: { - statusCode: { - serializedName: "statusCode", - required: true, - xmlName: "statusCode", + soapApiType: { + serializedName: "properties.apiType", + xmlName: "properties.apiType", type: { - name: "Number" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", type: { - name: "String" - } + name: "String", + }, }, - representations: { - serializedName: "representations", - xmlName: "representations", - xmlElementName: "RepresentationContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RepresentationContract" - } - } - } + }, + }, +}; + +export const ApiCreateOrUpdatePropertiesWsdlSelector: coreClient.CompositeMapper = + { + serializedName: "ApiCreateOrUpdatePropertiesWsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + modelProperties: { + wsdlServiceName: { + serializedName: "wsdlServiceName", + xmlName: "wsdlServiceName", + type: { + name: "String", + }, + }, + wsdlEndpointName: { + serializedName: "wsdlEndpointName", + xmlName: "wsdlEndpointName", + type: { + name: "String", + }, + }, }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "ParameterContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } - } - } - } -}; + }, + }; -export const OperationUpdateContract: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContract", +export const ApiUpdateContract: coreClient.CompositeMapper = { + serializedName: "ApiUpdateContract", type: { name: "Composite", - className: "OperationUpdateContract", + className: "ApiUpdateContract", 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" - } + name: "String", + }, }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { name: "Composite", - className: "RequestContract" - } + className: "AuthenticationSettingsContract", + }, }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } - } + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", + type: { + name: "String", + }, + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean", + }, + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", + type: { + name: "Boolean", + }, + }, + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", + type: { + name: "String", + }, + }, + apiVersionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", + type: { + name: "String", + }, + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", + type: { + name: "String", + }, + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean", + }, + }, + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", + type: { + name: "String", + }, + }, + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", + type: { + name: "Composite", + className: "ApiContactInformation", + }, + }, + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "String" - } + name: "Composite", + className: "ApiLicenseInformation", + }, }, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { - name: "String" - } + name: "String", + }, }, - urlTemplate: { + path: { constraints: { - MaxLength: 1000, - MinLength: 1 + MaxLength: 400, }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; -export const PolicyCollection: coreClient.CompositeMapper = { - serializedName: "PolicyCollection", +export const ApiRevisionCollection: coreClient.CompositeMapper = { + serializedName: "ApiRevisionCollection", type: { name: "Composite", - className: "PolicyCollection", + className: "ApiRevisionCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "PolicyContract", + xmlElementName: "ApiRevisionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PolicyContract" - } - } - } + className: "ApiRevisionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagCollection: coreClient.CompositeMapper = { - serializedName: "TagCollection", +export const ApiRevisionContract: coreClient.CompositeMapper = { + serializedName: "ApiRevisionContract", type: { name: "Composite", - className: "TagCollection", + className: "ApiRevisionContract", + modelProperties: { + apiId: { + serializedName: "apiId", + readOnly: true, + xmlName: "apiId", + type: { + name: "String", + }, + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "apiRevision", + readOnly: true, + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + xmlName: "createdDateTime", + type: { + name: "DateTime", + }, + }, + updatedDateTime: { + serializedName: "updatedDateTime", + readOnly: true, + xmlName: "updatedDateTime", + type: { + name: "DateTime", + }, + }, + description: { + constraints: { + MaxLength: 256, + }, + serializedName: "description", + readOnly: true, + xmlName: "description", + type: { + name: "String", + }, + }, + privateUrl: { + serializedName: "privateUrl", + readOnly: true, + xmlName: "privateUrl", + type: { + name: "String", + }, + }, + isOnline: { + serializedName: "isOnline", + readOnly: true, + xmlName: "isOnline", + type: { + name: "Boolean", + }, + }, + isCurrent: { + serializedName: "isCurrent", + readOnly: true, + xmlName: "isCurrent", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const ApiReleaseCollection: coreClient.CompositeMapper = { + serializedName: "ApiReleaseCollection", + type: { + name: "Composite", + className: "ApiReleaseCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "TagContract", + xmlElementName: "ApiReleaseContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TagContract" - } - } - } + className: "ApiReleaseContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResolverCollection: coreClient.CompositeMapper = { - serializedName: "ResolverCollection", +export const OperationCollection: coreClient.CompositeMapper = { + serializedName: "OperationCollection", type: { name: "Composite", - className: "ResolverCollection", + className: "OperationCollection", modelProperties: { value: { serializedName: "value", readOnly: true, xmlName: "value", - xmlElementName: "ResolverContract", + xmlElementName: "OperationContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResolverContract" - } - } - } + className: "OperationContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResolverUpdateContract: coreClient.CompositeMapper = { - serializedName: "ResolverUpdateContract", +export const OperationEntityBaseContract: coreClient.CompositeMapper = { + serializedName: "OperationEntityBaseContract", type: { name: "Composite", - className: "ResolverUpdateContract", + className: "OperationEntityBaseContract", modelProperties: { - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + templateParameters: { + serializedName: "templateParameters", + xmlName: "templateParameters", + xmlElementName: "ParameterContract", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + xmlName: "description", type: { - name: "String" - } - } - } - } -}; - -export const ProductCollection: coreClient.CompositeMapper = { - serializedName: "ProductCollection", - type: { - name: "Composite", - className: "ProductCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "ProductContract", + name: "String", + }, + }, + request: { + serializedName: "request", + xmlName: "request", + type: { + name: "Composite", + className: "RequestContract", + }, + }, + responses: { + serializedName: "responses", + xmlName: "responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ProductContract" - } - } - } + className: "ResponseContract", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + policies: { + serializedName: "policies", + xmlName: "policies", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ProductEntityBaseParameters: coreClient.CompositeMapper = { - serializedName: "ProductEntityBaseParameters", +export const ParameterContract: coreClient.CompositeMapper = { + serializedName: "ParameterContract", type: { name: "Composite", - className: "ProductEntityBaseParameters", + className: "ParameterContract", modelProperties: { - description: { - constraints: { - MaxLength: 1000 + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", }, + }, + description: { serializedName: "description", xmlName: "description", type: { - name: "String" - } - }, - terms: { - serializedName: "terms", - xmlName: "terms", - type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "subscriptionRequired", - xmlName: "subscriptionRequired", + type: { + serializedName: "type", + required: true, + xmlName: "type", type: { - name: "Boolean" - } + name: "String", + }, }, - approvalRequired: { - serializedName: "approvalRequired", - xmlName: "approvalRequired", + defaultValue: { + serializedName: "defaultValue", + xmlName: "defaultValue", type: { - name: "Boolean" - } + name: "String", + }, }, - subscriptionsLimit: { - serializedName: "subscriptionsLimit", - xmlName: "subscriptionsLimit", + required: { + serializedName: "required", + xmlName: "required", type: { - name: "Number" - } + name: "Boolean", + }, }, - state: { - serializedName: "state", - xmlName: "state", - type: { - name: "Enum", - allowedValues: ["notPublished", "published"] - } - } - } - } -}; - -export const SchemaCollection: coreClient.CompositeMapper = { - serializedName: "SchemaCollection", - type: { - name: "Composite", - className: "SchemaCollection", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "SchemaContract", + values: { + serializedName: "values", + xmlName: "values", + xmlElementName: "ParameterContractValuesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SchemaContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + schemaId: { + serializedName: "schemaId", + xmlName: "schemaId", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + typeName: { + serializedName: "typeName", + xmlName: "typeName", + type: { + name: "String", + }, + }, + examples: { + serializedName: "examples", + xmlName: "examples", type: { - name: "String" - } - } - } - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; -export const DiagnosticCollection: coreClient.CompositeMapper = { - serializedName: "DiagnosticCollection", +export const ParameterExampleContract: coreClient.CompositeMapper = { + serializedName: "ParameterExampleContract", type: { name: "Composite", - className: "DiagnosticCollection", + className: "ParameterExampleContract", modelProperties: { + summary: { + serializedName: "summary", + xmlName: "summary", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, value: { serializedName: "value", xmlName: "value", - xmlElementName: "DiagnosticContract", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnosticContract" - } - } - } + name: "any", + }, }, - count: { - serializedName: "count", - xmlName: "count", + externalValue: { + serializedName: "externalValue", + xmlName: "externalValue", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SamplingSettings: coreClient.CompositeMapper = { - serializedName: "SamplingSettings", +export const RequestContract: coreClient.CompositeMapper = { + serializedName: "RequestContract", type: { name: "Composite", - className: "SamplingSettings", + className: "RequestContract", modelProperties: { - samplingType: { - serializedName: "samplingType", - xmlName: "samplingType", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "String" - } - }, - percentage: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 + name: "String", }, - serializedName: "percentage", - xmlName: "percentage", - type: { - name: "Number" - } - } - } - } -}; - -export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { - serializedName: "PipelineDiagnosticSettings", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings", - modelProperties: { - request: { - serializedName: "request", - xmlName: "request", - type: { - name: "Composite", - className: "HttpMessageDiagnostic" - } }, - response: { - serializedName: "response", - xmlName: "response", + queryParameters: { + serializedName: "queryParameters", + xmlName: "queryParameters", + xmlElementName: "ParameterContract", type: { - name: "Composite", - className: "HttpMessageDiagnostic" - } - } - } - } -}; - -export const HttpMessageDiagnostic: coreClient.CompositeMapper = { - serializedName: "HttpMessageDiagnostic", - type: { - name: "Composite", - className: "HttpMessageDiagnostic", - modelProperties: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, + }, + }, headers: { serializedName: "headers", xmlName: "headers", - xmlElementName: "HttpMessageDiagnosticHeadersItem", + xmlElementName: "ParameterContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "ParameterContract", + }, + }, + }, }, - body: { - serializedName: "body", - xmlName: "body", + representations: { + serializedName: "representations", + xmlName: "representations", + xmlElementName: "RepresentationContract", type: { - name: "Composite", - className: "BodyDiagnosticSettings" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RepresentationContract", + }, + }, + }, }, - dataMasking: { - serializedName: "dataMasking", - xmlName: "dataMasking", - type: { - name: "Composite", - className: "DataMasking" - } - } - } - } + }, + }, }; -export const BodyDiagnosticSettings: coreClient.CompositeMapper = { - serializedName: "BodyDiagnosticSettings", - type: { +export const RepresentationContract: coreClient.CompositeMapper = { + serializedName: "RepresentationContract", + type: { name: "Composite", - className: "BodyDiagnosticSettings", + className: "RepresentationContract", modelProperties: { - bytes: { - constraints: { - InclusiveMaximum: 8192 + contentType: { + serializedName: "contentType", + required: true, + xmlName: "contentType", + type: { + name: "String", }, - serializedName: "bytes", - xmlName: "bytes", + }, + schemaId: { + serializedName: "schemaId", + xmlName: "schemaId", + type: { + name: "String", + }, + }, + typeName: { + serializedName: "typeName", + xmlName: "typeName", + type: { + name: "String", + }, + }, + formParameters: { + serializedName: "formParameters", + xmlName: "formParameters", + xmlElementName: "ParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, + }, + }, + examples: { + serializedName: "examples", + xmlName: "examples", type: { - name: "Number" - } - } - } - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "ParameterExampleContract" }, + }, + }, + }, + }, + }, }; -export const DataMasking: coreClient.CompositeMapper = { - serializedName: "DataMasking", +export const ResponseContract: coreClient.CompositeMapper = { + serializedName: "ResponseContract", type: { name: "Composite", - className: "DataMasking", + className: "ResponseContract", modelProperties: { - queryParams: { - serializedName: "queryParams", - xmlName: "queryParams", - xmlElementName: "DataMaskingEntity", + statusCode: { + serializedName: "statusCode", + required: true, + xmlName: "statusCode", + type: { + name: "Number", + }, + }, + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + representations: { + serializedName: "representations", + xmlName: "representations", + xmlElementName: "RepresentationContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } + className: "RepresentationContract", + }, + }, + }, }, headers: { serializedName: "headers", xmlName: "headers", - xmlElementName: "DataMaskingEntity", + xmlElementName: "ParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingEntity" - } - } - } - } - } - } -}; - -export const DataMaskingEntity: coreClient.CompositeMapper = { - serializedName: "DataMaskingEntity", - type: { - name: "Composite", - className: "DataMaskingEntity", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "String" - } + className: "ParameterContract", + }, + }, + }, }, - mode: { - serializedName: "mode", - xmlName: "mode", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const IssueCollection: coreClient.CompositeMapper = { - serializedName: "IssueCollection", +export const OperationUpdateContract: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContract", type: { name: "Composite", - className: "IssueCollection", + className: "OperationUpdateContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "IssueContract", + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IssueContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "ParameterContract", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IssueContractBaseProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractBaseProperties", - type: { - name: "Composite", - className: "IssueContractBaseProperties", - modelProperties: { - createdDate: { - serializedName: "createdDate", - xmlName: "createdDate", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "DateTime" - } + name: "String", + }, }, - state: { - serializedName: "state", - xmlName: "state", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" - } + name: "Composite", + className: "RequestContract", + }, }, - apiId: { - serializedName: "apiId", - xmlName: "apiId", - type: { - name: "String" - } - } - } - } -}; - -export const IssueUpdateContract: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContract", - type: { - name: "Composite", - className: "IssueUpdateContract", - modelProperties: { - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract", + }, + }, + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { - name: "String" - } + name: "String", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const IssueCommentCollection: coreClient.CompositeMapper = { - serializedName: "IssueCommentCollection", +export const PolicyCollection: coreClient.CompositeMapper = { + serializedName: "PolicyCollection", type: { name: "Composite", - className: "IssueCommentCollection", + className: "PolicyCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "IssueCommentContract", + xmlElementName: "PolicyContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IssueCommentContract" - } - } - } + className: "PolicyContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueAttachmentCollection: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentCollection", +export const TagCollection: coreClient.CompositeMapper = { + serializedName: "TagCollection", type: { name: "Composite", - className: "IssueAttachmentCollection", + className: "TagCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "IssueAttachmentContract", + xmlElementName: "TagContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IssueAttachmentContract" - } - } - } + className: "TagContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagDescriptionCollection: coreClient.CompositeMapper = { - serializedName: "TagDescriptionCollection", +export const ResolverCollection: coreClient.CompositeMapper = { + serializedName: "ResolverCollection", type: { name: "Composite", - className: "TagDescriptionCollection", + className: "ResolverCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "TagDescriptionContract", + xmlElementName: "ResolverContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TagDescriptionContract" - } - } - } + className: "ResolverContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionBaseProperties", +export const ResolverUpdateContract: coreClient.CompositeMapper = { + serializedName: "ResolverUpdateContract", type: { name: "Composite", - className: "TagDescriptionBaseProperties", + className: "ResolverUpdateContract", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - externalDocsUrl: { + path: { constraints: { - MaxLength: 2000 + MaxLength: 300, + MinLength: 1, }, - serializedName: "externalDocsUrl", - xmlName: "externalDocsUrl", + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, - externalDocsDescription: { - serializedName: "externalDocsDescription", - xmlName: "externalDocsDescription", - type: { - name: "String" - } - } - } - } -}; - -export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { - serializedName: "TagDescriptionCreateParameters", - type: { - name: "Composite", - className: "TagDescriptionCreateParameters", - modelProperties: { description: { + constraints: { + MaxLength: 1000, + }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - externalDocsUrl: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", - type: { - name: "String" - } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TagResourceCollection: coreClient.CompositeMapper = { - serializedName: "TagResourceCollection", +export const ProductCollection: coreClient.CompositeMapper = { + serializedName: "ProductCollection", type: { name: "Composite", - className: "TagResourceCollection", + className: "ProductCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "TagResourceContract", + xmlElementName: "ProductContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TagResourceContract" - } - } - } + className: "ProductContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const TagResourceContract: coreClient.CompositeMapper = { - serializedName: "TagResourceContract", - type: { - name: "Composite", - className: "TagResourceContract", - modelProperties: { - tag: { - serializedName: "tag", - xmlName: "tag", - type: { - name: "Composite", - className: "TagResourceContractProperties" - } - }, - api: { - serializedName: "api", - xmlName: "api", - type: { - name: "Composite", - className: "ApiTagResourceContractProperties" - } - }, - operation: { - serializedName: "operation", - xmlName: "operation", - type: { - name: "Composite", - className: "OperationTagResourceContractProperties" - } + name: "String", + }, }, - product: { - serializedName: "product", - xmlName: "product", - type: { - name: "Composite", - className: "ProductTagResourceContractProperties" - } - } - } - } + }, + }, }; -export const TagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "TagResourceContractProperties", +export const ProductEntityBaseParameters: coreClient.CompositeMapper = { + serializedName: "ProductEntityBaseParameters", type: { name: "Composite", - className: "TagResourceContractProperties", + className: "ProductEntityBaseParameters", modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { + description: { constraints: { - MaxLength: 160, - MinLength: 1 + MaxLength: 1000, }, - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const OperationTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationTagResourceContractProperties", - type: { - name: "Composite", - className: "OperationTagResourceContractProperties", - modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - apiName: { - serializedName: "apiName", - readOnly: true, - xmlName: "apiName", + terms: { + serializedName: "terms", + xmlName: "terms", type: { - name: "String" - } + name: "String", + }, }, - apiRevision: { - serializedName: "apiRevision", - readOnly: true, - xmlName: "apiRevision", + subscriptionRequired: { + serializedName: "subscriptionRequired", + xmlName: "subscriptionRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - apiVersion: { - serializedName: "apiVersion", - readOnly: true, - xmlName: "apiVersion", + approvalRequired: { + serializedName: "approvalRequired", + xmlName: "approvalRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - description: { - serializedName: "description", - readOnly: true, - xmlName: "description", + subscriptionsLimit: { + serializedName: "subscriptionsLimit", + xmlName: "subscriptionsLimit", type: { - name: "String" - } + name: "Number", + }, }, - method: { - serializedName: "method", - readOnly: true, - xmlName: "method", + state: { + serializedName: "state", + xmlName: "state", type: { - name: "String" - } + name: "Enum", + allowedValues: ["notPublished", "published"], + }, }, - urlTemplate: { - serializedName: "urlTemplate", - readOnly: true, - xmlName: "urlTemplate", - type: { - name: "String" - } - } - } - } + }, + }, }; -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", +export const SchemaCollection: coreClient.CompositeMapper = { + serializedName: "SchemaCollection", type: { name: "Composite", - className: "WikiCollection", + className: "SchemaCollection", modelProperties: { value: { serializedName: "value", readOnly: true, xmlName: "value", - xmlElementName: "WikiContract", + xmlElementName: "SchemaContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WikiContract" - } - } - } + className: "SchemaContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ApiExportResult: coreClient.CompositeMapper = { - serializedName: "ApiExportResult", - type: { - name: "Composite", - className: "ApiExportResult", - modelProperties: { - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } - }, - exportResultFormat: { - serializedName: "format", - xmlName: "format", - type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "Composite", - className: "ApiExportResultValue" - } - } - } - } -}; - -export const ApiExportResultValue: coreClient.CompositeMapper = { - serializedName: "ApiExportResultValue", - type: { - name: "Composite", - className: "ApiExportResultValue", - modelProperties: { - link: { - serializedName: "link", - xmlName: "link", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiVersionSetCollection: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetCollection", +export const DiagnosticCollection: coreClient.CompositeMapper = { + serializedName: "DiagnosticCollection", type: { name: "Composite", - className: "ApiVersionSetCollection", + className: "DiagnosticCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "ApiVersionSetContract", + xmlElementName: "DiagnosticContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiVersionSetContract" - } - } - } + className: "DiagnosticContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetEntityBase", +export const SamplingSettings: coreClient.CompositeMapper = { + serializedName: "SamplingSettings", type: { name: "Composite", - className: "ApiVersionSetEntityBase", + className: "SamplingSettings", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", + samplingType: { + serializedName: "samplingType", + xmlName: "samplingType", type: { - name: "String" - } - }, - versionQueryName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "versionQueryName", - xmlName: "versionQueryName", - type: { - name: "String" - } }, - versionHeaderName: { + percentage: { constraints: { - MaxLength: 100, - MinLength: 1 + InclusiveMaximum: 100, + InclusiveMinimum: 0, }, - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", + serializedName: "percentage", + xmlName: "percentage", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParameters", +export const PipelineDiagnosticSettings: coreClient.CompositeMapper = { + serializedName: "PipelineDiagnosticSettings", type: { name: "Composite", - className: "ApiVersionSetUpdateParameters", + className: "PipelineDiagnosticSettings", modelProperties: { - description: { - serializedName: "properties.description", - xmlName: "properties.description", + request: { + serializedName: "request", + xmlName: "request", type: { - name: "String" - } - }, - versionQueryName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Composite", + className: "HttpMessageDiagnostic", }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", - type: { - name: "String" - } }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + response: { + serializedName: "response", + xmlName: "response", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Composite", + className: "HttpMessageDiagnostic", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerCollection", +export const HttpMessageDiagnostic: coreClient.CompositeMapper = { + serializedName: "HttpMessageDiagnostic", type: { name: "Composite", - className: "AuthorizationServerCollection", + className: "HttpMessageDiagnostic", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "AuthorizationServerContract", + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "HttpMessageDiagnosticHeadersItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AuthorizationServerContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + body: { + serializedName: "body", + xmlName: "body", type: { - name: "Number" - } + name: "Composite", + className: "BodyDiagnosticSettings", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + dataMasking: { + serializedName: "dataMasking", + xmlName: "dataMasking", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "DataMasking", + }, + }, + }, + }, }; -export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractBaseProperties", +export const BodyDiagnosticSettings: coreClient.CompositeMapper = { + serializedName: "BodyDiagnosticSettings", type: { name: "Composite", - className: "AuthorizationServerContractBaseProperties", + className: "BodyDiagnosticSettings", 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", + bytes: { + constraints: { + InclusiveMaximum: 8192, + }, + serializedName: "bytes", + xmlName: "bytes", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Number", + }, }, - tokenBodyParameters: { - serializedName: "tokenBodyParameters", - xmlName: "tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + }, + }, +}; + +export const DataMasking: coreClient.CompositeMapper = { + serializedName: "DataMasking", + type: { + name: "Composite", + className: "DataMasking", + modelProperties: { + queryParams: { + serializedName: "queryParams", + xmlName: "queryParams", + xmlElementName: "DataMaskingEntity", 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" - } + className: "DataMaskingEntity", + }, + }, + }, }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "DataMaskingEntity", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } + name: "Composite", + className: "DataMaskingEntity", + }, + }, + }, }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TokenBodyParameterContract: coreClient.CompositeMapper = { - serializedName: "TokenBodyParameterContract", +export const DataMaskingEntity: coreClient.CompositeMapper = { + serializedName: "DataMaskingEntity", type: { name: "Composite", - className: "TokenBodyParameterContract", + className: "DataMaskingEntity", modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, value: { serializedName: "value", - required: true, xmlName: "value", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerSecretsContract", - type: { - name: "Composite", - className: "AuthorizationServerSecretsContract", - modelProperties: { - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", + mode: { + serializedName: "mode", + xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationProviderCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderCollection", +export const IssueCollection: coreClient.CompositeMapper = { + serializedName: "IssueCollection", type: { name: "Composite", - className: "AuthorizationProviderCollection", + className: "IssueCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "AuthorizationProviderContract", + xmlElementName: "IssueContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationProviderContract" - } - } - } + className: "IssueContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2Settings", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings", - modelProperties: { - redirectUrl: { - serializedName: "redirectUrl", - xmlName: "redirectUrl", - type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes" - } - } - } - } + }, + }, }; -export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderOAuth2GrantTypes", +export const IssueContractBaseProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractBaseProperties", type: { name: "Composite", - className: "AuthorizationProviderOAuth2GrantTypes", + className: "IssueContractBaseProperties", modelProperties: { - authorizationCode: { - serializedName: "authorizationCode", - xmlName: "authorizationCode", + createdDate: { + serializedName: "createdDate", + xmlName: "createdDate", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "DateTime", + }, }, - clientCredentials: { - serializedName: "clientCredentials", - xmlName: "clientCredentials", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + state: { + serializedName: "state", + xmlName: "state", + type: { + name: "String", + }, + }, + apiId: { + serializedName: "apiId", + xmlName: "apiId", + type: { + name: "String", + }, + }, + }, + }, }; -export const AuthorizationCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationCollection", +export const IssueUpdateContract: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContract", type: { name: "Composite", - className: "AuthorizationCollection", + className: "IssueUpdateContract", + 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", + type: { + name: "String", + }, + }, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const IssueCommentCollection: coreClient.CompositeMapper = { + serializedName: "IssueCommentCollection", + type: { + name: "Composite", + className: "IssueCommentCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "AuthorizationContract", + xmlElementName: "IssueCommentContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationContract" - } - } - } + className: "IssueCommentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, 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" - } + 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", +export const IssueAttachmentCollection: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentCollection", type: { name: "Composite", - className: "AuthorizationAccessPolicyCollection", + className: "IssueAttachmentCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "AuthorizationAccessPolicyContract", + xmlElementName: "IssueAttachmentContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AuthorizationAccessPolicyContract" - } - } - } + className: "IssueAttachmentContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendCollection: coreClient.CompositeMapper = { - serializedName: "BackendCollection", +export const TagDescriptionCollection: coreClient.CompositeMapper = { + serializedName: "TagDescriptionCollection", type: { name: "Composite", - className: "BackendCollection", + className: "TagDescriptionCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "BackendContract", + xmlElementName: "TagDescriptionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendContract" - } - } - } + className: "TagDescriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendBaseParameters: coreClient.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const TagDescriptionBaseProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionBaseProperties", type: { name: "Composite", - className: "BackendBaseParameters", + className: "TagDescriptionBaseProperties", modelProperties: { - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "title", - xmlName: "title", - type: { - name: "String" - } - }, description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, serializedName: "description", xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - resourceId: { + externalDocsUrl: { constraints: { MaxLength: 2000, - MinLength: 1 }, - serializedName: "resourceId", - xmlName: "resourceId", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - xmlName: "properties", - type: { - name: "Composite", - className: "BackendProperties" - } - }, - credentials: { - serializedName: "credentials", - xmlName: "credentials", + serializedName: "externalDocsUrl", + xmlName: "externalDocsUrl", type: { - name: "Composite", - className: "BackendCredentialsContract" - } + name: "String", + }, }, - proxy: { - serializedName: "proxy", - xmlName: "proxy", + externalDocsDescription: { + serializedName: "externalDocsDescription", + xmlName: "externalDocsDescription", type: { - name: "Composite", - className: "BackendProxyContract" - } + name: "String", + }, }, - tls: { - serializedName: "tls", - xmlName: "tls", - type: { - name: "Composite", - className: "BackendTlsProperties" - } - } - } - } -}; - -export const BackendProperties: coreClient.CompositeMapper = { - serializedName: "BackendProperties", - type: { - name: "Composite", - className: "BackendProperties", - modelProperties: { - serviceFabricCluster: { - serializedName: "serviceFabricCluster", - xmlName: "serviceFabricCluster", - type: { - name: "Composite", - className: "BackendServiceFabricClusterProperties" - } - } - } - } + }, + }, }; -export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = { - serializedName: "BackendServiceFabricClusterProperties", +export const TagDescriptionCreateParameters: coreClient.CompositeMapper = { + serializedName: "TagDescriptionCreateParameters", type: { name: "Composite", - className: "BackendServiceFabricClusterProperties", + className: "TagDescriptionCreateParameters", modelProperties: { - clientCertificateId: { - serializedName: "clientCertificateId", - xmlName: "clientCertificateId", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - clientCertificatethumbprint: { - serializedName: "clientCertificatethumbprint", - xmlName: "clientCertificatethumbprint", + externalDocsUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", type: { - name: "String" - } + name: "String", + }, }, - maxPartitionResolutionRetries: { - serializedName: "maxPartitionResolutionRetries", - xmlName: "maxPartitionResolutionRetries", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "Number" - } + name: "String", + }, }, - managementEndpoints: { - serializedName: "managementEndpoints", - required: true, - xmlName: "managementEndpoints", - xmlElementName: - "BackendServiceFabricClusterPropertiesManagementEndpointsItem", + }, + }, +}; + +export const TagResourceCollection: coreClient.CompositeMapper = { + serializedName: "TagResourceCollection", + type: { + name: "Composite", + className: "TagResourceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagResourceContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - }, - serverCertificateThumbprints: { - serializedName: "serverCertificateThumbprints", - xmlName: "serverCertificateThumbprints", - xmlElementName: - "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", + name: "Composite", + className: "TagResourceContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Number", + }, }, - serverX509Names: { - serializedName: "serverX509Names", - xmlName: "serverX509Names", - xmlElementName: "X509CertificateName", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "X509CertificateName" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const X509CertificateName: coreClient.CompositeMapper = { - serializedName: "X509CertificateName", - type: { - name: "Composite", - className: "X509CertificateName", - modelProperties: { - name: { - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - issuerCertificateThumbprint: { - serializedName: "issuerCertificateThumbprint", - xmlName: "issuerCertificateThumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const BackendCredentialsContract: coreClient.CompositeMapper = { - serializedName: "BackendCredentialsContract", +export const TagResourceContract: coreClient.CompositeMapper = { + serializedName: "TagResourceContract", type: { name: "Composite", - className: "BackendCredentialsContract", + className: "TagResourceContract", modelProperties: { - certificateIds: { - constraints: { - MaxItems: 32 - }, - serializedName: "certificateIds", - xmlName: "certificateIds", - xmlElementName: "BackendCredentialsContractCertificateIdsItem", + tag: { + serializedName: "tag", + xmlName: "tag", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - certificate: { - constraints: { - MaxItems: 32 + name: "Composite", + className: "TagResourceContractProperties", }, - serializedName: "certificate", - xmlName: "certificate", - xmlElementName: "BackendCredentialsContractCertificateItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - query: { - serializedName: "query", - xmlName: "query", + api: { + serializedName: "api", + xmlName: "api", type: { - name: "Dictionary", - value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + name: "Composite", + className: "ApiTagResourceContractProperties", + }, }, - header: { - serializedName: "header", - xmlName: "header", + operation: { + serializedName: "operation", + xmlName: "operation", type: { - name: "Dictionary", - value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + name: "Composite", + className: "OperationTagResourceContractProperties", + }, }, - authorization: { - serializedName: "authorization", - xmlName: "authorization", + product: { + serializedName: "product", + xmlName: "product", type: { name: "Composite", - className: "BackendAuthorizationHeaderCredentials" - } - } - } - } + className: "ProductTagResourceContractProperties", + }, + }, + }, + }, }; -export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = { - serializedName: "BackendAuthorizationHeaderCredentials", +export const TagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "TagResourceContractProperties", type: { name: "Composite", - className: "BackendAuthorizationHeaderCredentials", + className: "TagResourceContractProperties", modelProperties: { - scheme: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "scheme", - required: true, - xmlName: "scheme", + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - parameter: { + name: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 160, + MinLength: 1, }, - serializedName: "parameter", - required: true, - xmlName: "parameter", + serializedName: "name", + xmlName: "name", type: { - name: "String" - } - } - } - } -}; - -export const BackendProxyContract: coreClient.CompositeMapper = { - serializedName: "BackendProxyContract", - type: { - name: "Composite", - className: "BackendProxyContract", - modelProperties: { - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "url", - required: true, - xmlName: "url", - type: { - name: "String" - } }, - username: { - serializedName: "username", - xmlName: "username", - type: { - name: "String" - } + }, + }, +}; + +export const OperationTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "OperationTagResourceContractProperties", + type: { + name: "Composite", + className: "OperationTagResourceContractProperties", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", + }, + }, + apiName: { + serializedName: "apiName", + readOnly: true, + xmlName: "apiName", + type: { + name: "String", + }, + }, + apiRevision: { + serializedName: "apiRevision", + readOnly: true, + xmlName: "apiRevision", + type: { + name: "String", + }, + }, + apiVersion: { + serializedName: "apiVersion", + readOnly: true, + xmlName: "apiVersion", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + readOnly: true, + xmlName: "description", + type: { + name: "String", + }, + }, + method: { + serializedName: "method", + readOnly: true, + xmlName: "method", + type: { + name: "String", + }, + }, + urlTemplate: { + serializedName: "urlTemplate", + readOnly: true, + xmlName: "urlTemplate", + type: { + name: "String", + }, + }, }, - password: { - serializedName: "password", - xmlName: "password", - type: { - name: "String" - } - } - } - } -}; + }, + }; -export const BackendTlsProperties: coreClient.CompositeMapper = { - serializedName: "BackendTlsProperties", +export const WikiDocumentationContract: coreClient.CompositeMapper = { + serializedName: "WikiDocumentationContract", type: { name: "Composite", - className: "BackendTlsProperties", + className: "WikiDocumentationContract", modelProperties: { - validateCertificateChain: { - defaultValue: true, - serializedName: "validateCertificateChain", - xmlName: "validateCertificateChain", + documentationId: { + serializedName: "documentationId", + xmlName: "documentationId", type: { - name: "Boolean" - } + name: "String", + }, }, - validateCertificateName: { - defaultValue: true, - serializedName: "validateCertificateName", - xmlName: "validateCertificateName", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const BackendUpdateParameters: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameters", +export const WikiUpdateContract: coreClient.CompositeMapper = { + serializedName: "WikiUpdateContract", type: { name: "Composite", - className: "BackendUpdateParameters", + className: "WikiUpdateContract", 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 - }, - 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", - type: { - name: "Composite", - className: "BackendProxyContract" - } - }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract", + }, + }, }, - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const CacheCollection: coreClient.CompositeMapper = { - serializedName: "CacheCollection", +export const WikiCollection: coreClient.CompositeMapper = { + serializedName: "WikiCollection", type: { name: "Composite", - className: "CacheCollection", + className: "WikiCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "CacheContract", + xmlElementName: "WikiContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CacheContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "WikiContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheUpdateParameters: coreClient.CompositeMapper = { - serializedName: "CacheUpdateParameters", +export const ApiExportResult: coreClient.CompositeMapper = { + serializedName: "ApiExportResult", type: { name: "Composite", - className: "CacheUpdateParameters", + className: "ApiExportResult", modelProperties: { - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + id: { + serializedName: "id", + xmlName: "id", type: { - name: "String" - } - }, - connectionString: { - constraints: { - MaxLength: 300 + name: "String", }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + }, + exportResultFormat: { + serializedName: "format", + xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, - useFromLocation: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + value: { + serializedName: "value", + xmlName: "value", type: { - name: "String" - } - }, - resourceId: { - constraints: { - MaxLength: 2000 + name: "Composite", + className: "ApiExportResultValue", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + }, + }, + }, +}; + +export const ApiExportResultValue: coreClient.CompositeMapper = { + serializedName: "ApiExportResultValue", + type: { + name: "Composite", + className: "ApiExportResultValue", + modelProperties: { + link: { + serializedName: "link", + xmlName: "link", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateCollection: coreClient.CompositeMapper = { - serializedName: "CertificateCollection", +export const ApiVersionSetCollection: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetCollection", type: { name: "Composite", - className: "CertificateCollection", + className: "ApiVersionSetCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "CertificateContract", + xmlElementName: "ApiVersionSetContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CertificateContract" - } - } - } + className: "ApiVersionSetContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultLastAccessStatusContractProperties", +export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetEntityBase", type: { name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties", + className: "ApiVersionSetEntityBase", modelProperties: { - code: { - serializedName: "code", - xmlName: "code", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - message: { - serializedName: "message", - xmlName: "message", + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "versionQueryName", + xmlName: "versionQueryName", type: { - name: "String" - } + name: "String", + }, }, - timeStampUtc: { - serializedName: "timeStampUtc", - xmlName: "timeStampUtc", + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", type: { - name: "DateTime" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractCreateProperties", +export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParameters", type: { name: "Composite", - className: "KeyVaultContractCreateProperties", + className: "ApiVersionSetUpdateParameters", modelProperties: { - secretIdentifier: { - serializedName: "secretIdentifier", - xmlName: "secretIdentifier", + 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" - } + name: "String", + }, }, - identityClientId: { - serializedName: "identityClientId", - xmlName: "identityClientId", + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { - serializedName: "CertificateCreateOrUpdateParameters", +export const AuthorizationProviderCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderCollection", type: { name: "Composite", - className: "CertificateCreateOrUpdateParameters", + className: "AuthorizationProviderCollection", modelProperties: { - data: { - serializedName: "properties.data", - xmlName: "properties.data", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationProviderContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationProviderContract", + }, + }, + }, }, - password: { - serializedName: "properties.password", - xmlName: "properties.password", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + }, + }, }; -export const ConnectivityCheckRequest: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequest", +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", type: { name: "Composite", - className: "ConnectivityCheckRequest", + className: "AuthorizationProviderOAuth2Settings", modelProperties: { - source: { - serializedName: "source", - xmlName: "source", + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", type: { - name: "Composite", - className: "ConnectivityCheckRequestSource" - } + name: "String", + }, }, - destination: { - serializedName: "destination", - xmlName: "destination", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", type: { name: "Composite", - className: "ConnectivityCheckRequestDestination" - } - }, - preferredIPVersion: { - serializedName: "preferredIPVersion", - xmlName: "preferredIPVersion", - type: { - name: "String" - } + className: "AuthorizationProviderOAuth2GrantTypes", + }, }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", - type: { - name: "String" - } + }, + }, +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, }, - protocolConfiguration: { - serializedName: "protocolConfiguration", - xmlName: "protocolConfiguration", - type: { - name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration" - } - } - } - } -}; + }, + }; -export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestSource", +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", type: { name: "Composite", - className: "ConnectivityCheckRequestSource", + className: "AuthorizationCollection", modelProperties: { - region: { - serializedName: "region", - required: true, - xmlName: "region", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationContract", + }, + }, + }, }, - instance: { - serializedName: "instance", - xmlName: "instance", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestDestination", +export const AuthorizationError: coreClient.CompositeMapper = { + serializedName: "AuthorizationError", type: { name: "Composite", - className: "ConnectivityCheckRequestDestination", + className: "AuthorizationError", modelProperties: { - address: { - serializedName: "address", - required: true, - xmlName: "address", + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, - port: { - serializedName: "port", - required: true, - xmlName: "port", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckRequestProtocolConfiguration", +export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginRequestContract", type: { name: "Composite", - className: "ConnectivityCheckRequestProtocolConfiguration", + className: "AuthorizationLoginRequestContract", modelProperties: { - httpConfiguration: { - serializedName: "HTTPConfiguration", - xmlName: "HTTPConfiguration", + postLoginRedirectUrl: { + serializedName: "postLoginRedirectUrl", + xmlName: "postLoginRedirectUrl", type: { - name: "Composite", - className: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = { - serializedName: - "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", +export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginResponseContract", type: { name: "Composite", - className: "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + className: "AuthorizationLoginResponseContract", modelProperties: { - method: { - serializedName: "method", - xmlName: "method", - type: { - name: "String" - } - }, - validStatusCodes: { - serializedName: "validStatusCodes", - xmlName: "validStatusCodes", - xmlElementName: "ArrayItemschema", + loginLink: { + serializedName: "loginLink", + xmlName: "loginLink", type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } + name: "String", + }, }, - headers: { - serializedName: "headers", - xmlName: "headers", - xmlElementName: "HttpHeader", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HttpHeader" - } - } - } - } - } - } -}; + }, + }, +}; + +export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = + { + serializedName: "AuthorizationConfirmConsentCodeRequestContract", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeRequestContract", + modelProperties: { + consentCode: { + serializedName: "consentCode", + xmlName: "consentCode", + type: { + name: "String", + }, + }, + }, + }, + }; -export const HttpHeader: coreClient.CompositeMapper = { - serializedName: "HttpHeader", +export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyCollection", type: { name: "Composite", - className: "HttpHeader", + className: "AuthorizationAccessPolicyCollection", modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, value: { serializedName: "value", - required: true, xmlName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectivityCheckResponse: coreClient.CompositeMapper = { - serializedName: "ConnectivityCheckResponse", - type: { - name: "Composite", - className: "ConnectivityCheckResponse", - modelProperties: { - hops: { - serializedName: "hops", - readOnly: true, - xmlName: "hops", - xmlElementName: "ConnectivityHop", + xmlElementName: "AuthorizationAccessPolicyContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectivityHop" - } - } - } - }, - connectionStatus: { - serializedName: "connectionStatus", - readOnly: true, - xmlName: "connectionStatus", - type: { - name: "String" - } - }, - avgLatencyInMs: { - serializedName: "avgLatencyInMs", - readOnly: true, - xmlName: "avgLatencyInMs", - type: { - name: "Number" - } - }, - minLatencyInMs: { - serializedName: "minLatencyInMs", - readOnly: true, - xmlName: "minLatencyInMs", - type: { - name: "Number" - } + className: "AuthorizationAccessPolicyContract", + }, + }, + }, }, - maxLatencyInMs: { - serializedName: "maxLatencyInMs", - readOnly: true, - xmlName: "maxLatencyInMs", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, - probesSent: { - serializedName: "probesSent", - readOnly: true, - xmlName: "probesSent", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Number" - } + name: "String", + }, }, - probesFailed: { - serializedName: "probesFailed", - readOnly: true, - xmlName: "probesFailed", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const ConnectivityHop: coreClient.CompositeMapper = { - serializedName: "ConnectivityHop", +export const AuthorizationServerCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerCollection", type: { name: "Composite", - className: "ConnectivityHop", + className: "AuthorizationServerCollection", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationServerContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationServerContract", + }, + }, + }, }, - address: { - serializedName: "address", - readOnly: true, - xmlName: "address", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - resourceId: { - serializedName: "resourceId", - readOnly: true, - xmlName: "resourceId", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - nextHopIds: { - serializedName: "nextHopIds", - readOnly: true, - xmlName: "nextHopIds", - xmlElementName: "ConnectivityHopNextHopIdsItem", - type: { - name: "Sequence", - element: { - 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", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String", + }, + }, }, - issues: { - serializedName: "issues", - readOnly: true, - xmlName: "issues", - xmlElementName: "ConnectivityIssue", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityIssue" - } - } - } - } - } - } -}; + }, + }; -export const ConnectivityIssue: coreClient.CompositeMapper = { - serializedName: "ConnectivityIssue", +export const TokenBodyParameterContract: coreClient.CompositeMapper = { + serializedName: "TokenBodyParameterContract", type: { name: "Composite", - className: "ConnectivityIssue", + className: "TokenBodyParameterContract", modelProperties: { - origin: { - serializedName: "origin", - readOnly: true, - xmlName: "origin", - type: { - name: "String" - } - }, - severity: { - serializedName: "severity", - readOnly: true, - xmlName: "severity", + name: { + serializedName: "name", + required: true, + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + value: { + serializedName: "value", + required: true, + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - context: { - serializedName: "context", - readOnly: true, - xmlName: "context", - xmlElementName: "IssueContext", - type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } - } - } + }, + }, }; -export const ContentTypeCollection: coreClient.CompositeMapper = { - serializedName: "ContentTypeCollection", +export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerSecretsContract", type: { name: "Composite", - className: "ContentTypeCollection", + className: "AuthorizationServerSecretsContract", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "ContentTypeContract", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ContentTypeContract" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String", + }, + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemCollection: coreClient.CompositeMapper = { - serializedName: "ContentItemCollection", +export const BackendCollection: coreClient.CompositeMapper = { + serializedName: "BackendCollection", type: { name: "Composite", - className: "ContentItemCollection", + className: "BackendCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "ContentItemContract", + xmlElementName: "BackendContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ContentItemContract" - } - } - } + className: "BackendContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeletedServicesCollection: coreClient.CompositeMapper = { - serializedName: "DeletedServicesCollection", +export const BackendBaseParameters: coreClient.CompositeMapper = { + serializedName: "BackendBaseParameters", type: { name: "Composite", - className: "DeletedServicesCollection", + className: "BackendBaseParameters", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "DeletedServiceContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeletedServiceContract" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const OperationListResult: coreClient.CompositeMapper = { - serializedName: "OperationListResult", - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "Operation", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: coreClient.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - xmlName: "name", + title: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "title", + xmlName: "title", type: { - name: "String" - } + name: "String", + }, }, - display: { - serializedName: "display", - xmlName: "display", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "description", + xmlName: "description", type: { - name: "Composite", - className: "OperationDisplay" - } + name: "String", + }, }, - origin: { - serializedName: "origin", - xmlName: "origin", + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "resourceId", + xmlName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", xmlName: "properties", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - serializedName: "OperationDisplay", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - xmlName: "provider", + name: "Composite", + className: "BackendProperties", + }, + }, + credentials: { + serializedName: "credentials", + xmlName: "credentials", type: { - name: "String" - } + name: "Composite", + className: "BackendCredentialsContract", + }, }, - operation: { - serializedName: "operation", - xmlName: "operation", + proxy: { + serializedName: "proxy", + xmlName: "proxy", type: { - name: "String" - } + name: "Composite", + className: "BackendProxyContract", + }, }, - resource: { - serializedName: "resource", - xmlName: "resource", + tls: { + serializedName: "tls", + xmlName: "tls", type: { - name: "String" - } + name: "Composite", + className: "BackendTlsProperties", + }, }, - description: { - serializedName: "description", - xmlName: "description", + circuitBreaker: { + serializedName: "circuitBreaker", + xmlName: "circuitBreaker", type: { - name: "String" - } - } - } - } -}; - -export const ResourceSkuResults: coreClient.CompositeMapper = { - serializedName: "ResourceSkuResults", - type: { - name: "Composite", - className: "ResourceSkuResults", - modelProperties: { - value: { - serializedName: "value", - required: true, - xmlName: "value", - xmlElementName: "ResourceSkuResult", + name: "Composite", + className: "BackendCircuitBreaker", + }, + }, + pool: { + serializedName: "pool", + xmlName: "pool", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuResult" - } - } - } + name: "Composite", + className: "BackendBaseParametersPool", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + type: { + serializedName: "type", + xmlName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResourceSkuResult: coreClient.CompositeMapper = { - serializedName: "ResourceSkuResult", +export const BackendProperties: coreClient.CompositeMapper = { + serializedName: "BackendProperties", type: { name: "Composite", - className: "ResourceSkuResult", + className: "BackendProperties", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - xmlName: "resourceType", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - xmlName: "sku", + serviceFabricCluster: { + serializedName: "serviceFabricCluster", + xmlName: "serviceFabricCluster", type: { name: "Composite", - className: "ResourceSku" - } + className: "BackendServiceFabricClusterProperties", + }, }, - capacity: { - serializedName: "capacity", - xmlName: "capacity", - type: { - name: "Composite", - className: "ResourceSkuCapacity" - } - } - } - } -}; + }, + }, +}; + +export const BackendServiceFabricClusterProperties: coreClient.CompositeMapper = + { + serializedName: "BackendServiceFabricClusterProperties", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties", + modelProperties: { + clientCertificateId: { + serializedName: "clientCertificateId", + xmlName: "clientCertificateId", + type: { + name: "String", + }, + }, + clientCertificatethumbprint: { + serializedName: "clientCertificatethumbprint", + xmlName: "clientCertificatethumbprint", + type: { + name: "String", + }, + }, + maxPartitionResolutionRetries: { + serializedName: "maxPartitionResolutionRetries", + xmlName: "maxPartitionResolutionRetries", + type: { + name: "Number", + }, + }, + managementEndpoints: { + serializedName: "managementEndpoints", + required: true, + xmlName: "managementEndpoints", + xmlElementName: + "BackendServiceFabricClusterPropertiesManagementEndpointsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverCertificateThumbprints: { + serializedName: "serverCertificateThumbprints", + xmlName: "serverCertificateThumbprints", + xmlElementName: + "BackendServiceFabricClusterPropertiesServerCertificateThumbprintsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + serverX509Names: { + serializedName: "serverX509Names", + xmlName: "serverX509Names", + xmlElementName: "X509CertificateName", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "X509CertificateName", + }, + }, + }, + }, + }, + }, + }; -export const ResourceSku: coreClient.CompositeMapper = { - serializedName: "ResourceSku", +export const X509CertificateName: coreClient.CompositeMapper = { + serializedName: "X509CertificateName", type: { name: "Composite", - className: "ResourceSku", + className: "X509CertificateName", modelProperties: { name: { serializedName: "name", xmlName: "name", type: { - name: "String" - } - } - } - } -}; - -export const ResourceSkuCapacity: coreClient.CompositeMapper = { - serializedName: "ResourceSkuCapacity", - type: { - name: "Composite", - className: "ResourceSkuCapacity", - modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, - xmlName: "minimum", - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - xmlName: "maximum", - type: { - name: "Number" - } + name: "String", + }, }, - default: { - serializedName: "default", - readOnly: true, - xmlName: "default", + issuerCertificateThumbprint: { + serializedName: "issuerCertificateThumbprint", + xmlName: "issuerCertificateThumbprint", type: { - name: "Number" - } + name: "String", + }, }, - scaleType: { - serializedName: "scaleType", - readOnly: true, - xmlName: "scaleType", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceBackupRestoreParameters", +export const BackendCredentialsContract: coreClient.CompositeMapper = { + serializedName: "BackendCredentialsContract", type: { name: "Composite", - className: "ApiManagementServiceBackupRestoreParameters", + className: "BackendCredentialsContract", modelProperties: { - storageAccount: { - serializedName: "storageAccount", - required: true, - xmlName: "storageAccount", + certificateIds: { + constraints: { + MaxItems: 32, + }, + serializedName: "certificateIds", + xmlName: "certificateIds", + xmlElementName: "BackendCredentialsContractCertificateIdsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - containerName: { - serializedName: "containerName", - required: true, - xmlName: "containerName", + certificate: { + constraints: { + MaxItems: 32, + }, + serializedName: "certificate", + xmlName: "certificate", + xmlElementName: "BackendCredentialsContractCertificateItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - backupName: { - serializedName: "backupName", - required: true, - xmlName: "backupName", + query: { + serializedName: "query", + xmlName: "query", type: { - name: "String" - } + name: "Dictionary", + value: { + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, - accessType: { - defaultValue: "AccessKey", - serializedName: "accessType", - xmlName: "accessType", + header: { + serializedName: "header", + xmlName: "header", type: { - name: "String" - } + name: "Dictionary", + value: { + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, - accessKey: { - serializedName: "accessKey", - xmlName: "accessKey", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + authorization: { + serializedName: "authorization", + xmlName: "authorization", type: { - name: "String" - } - } - } - } -}; + name: "Composite", + className: "BackendAuthorizationHeaderCredentials", + }, + }, + }, + }, +}; + +export const BackendAuthorizationHeaderCredentials: coreClient.CompositeMapper = + { + serializedName: "BackendAuthorizationHeaderCredentials", + type: { + name: "Composite", + className: "BackendAuthorizationHeaderCredentials", + modelProperties: { + scheme: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "scheme", + required: true, + xmlName: "scheme", + type: { + name: "String", + }, + }, + parameter: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "parameter", + required: true, + xmlName: "parameter", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceBaseProperties", +export const BackendProxyContract: coreClient.CompositeMapper = { + serializedName: "BackendProxyContract", type: { name: "Composite", - className: "ApiManagementServiceBaseProperties", + className: "BackendProxyContract", modelProperties: { - notificationSenderEmail: { + url: { constraints: { - MaxLength: 100 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "notificationSenderEmail", - xmlName: "notificationSenderEmail", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - xmlName: "provisioningState", - type: { - name: "String" - } - }, - targetProvisioningState: { - serializedName: "targetProvisioningState", - readOnly: true, - xmlName: "targetProvisioningState", - type: { - name: "String" - } - }, - createdAtUtc: { - serializedName: "createdAtUtc", - readOnly: true, - xmlName: "createdAtUtc", - type: { - name: "DateTime" - } - }, - gatewayUrl: { - serializedName: "gatewayUrl", - readOnly: true, - xmlName: "gatewayUrl", - type: { - name: "String" - } - }, - gatewayRegionalUrl: { - serializedName: "gatewayRegionalUrl", - readOnly: true, - xmlName: "gatewayRegionalUrl", + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "portalUrl", - readOnly: true, - xmlName: "portalUrl", + username: { + serializedName: "username", + xmlName: "username", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "managementApiUrl", - readOnly: true, - xmlName: "managementApiUrl", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "scmUrl", - readOnly: true, - xmlName: "scmUrl", + }, + }, +}; + +export const BackendTlsProperties: coreClient.CompositeMapper = { + serializedName: "BackendTlsProperties", + type: { + name: "Composite", + className: "BackendTlsProperties", + modelProperties: { + validateCertificateChain: { + defaultValue: true, + serializedName: "validateCertificateChain", + xmlName: "validateCertificateChain", type: { - name: "String" - } + name: "Boolean", + }, }, - developerPortalUrl: { - serializedName: "developerPortalUrl", - readOnly: true, - xmlName: "developerPortalUrl", + validateCertificateName: { + defaultValue: true, + serializedName: "validateCertificateName", + xmlName: "validateCertificateName", type: { - name: "String" - } + name: "Boolean", + }, }, - hostnameConfigurations: { - serializedName: "hostnameConfigurations", - xmlName: "hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + }, + }, +}; + +export const BackendCircuitBreaker: coreClient.CompositeMapper = { + serializedName: "BackendCircuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker", + modelProperties: { + rules: { + constraints: { + MaxItems: 15, + }, + serializedName: "rules", + xmlName: "rules", + xmlElementName: "CircuitBreakerRule", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HostnameConfiguration" - } - } - } + className: "CircuitBreakerRule", + }, + }, + }, }, - publicIPAddresses: { - serializedName: "publicIPAddresses", - readOnly: true, - xmlName: "publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + }, + }, +}; + +export const CircuitBreakerRule: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerRule", + type: { + name: "Composite", + className: "CircuitBreakerRule", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "privateIPAddresses", - readOnly: true, - xmlName: "privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + failureCondition: { + serializedName: "failureCondition", + xmlName: "failureCondition", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "CircuitBreakerFailureCondition", + }, }, - publicIpAddressId: { - serializedName: "publicIpAddressId", - xmlName: "publicIpAddressId", + tripDuration: { + serializedName: "tripDuration", + xmlName: "tripDuration", type: { - name: "String" - } + name: "TimeSpan", + }, }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", - xmlName: "publicNetworkAccess", + acceptRetryAfter: { + serializedName: "acceptRetryAfter", + xmlName: "acceptRetryAfter", type: { - name: "String" - } + name: "Boolean", + }, }, - virtualNetworkConfiguration: { - serializedName: "virtualNetworkConfiguration", - xmlName: "virtualNetworkConfiguration", + }, + }, +}; + +export const CircuitBreakerFailureCondition: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerFailureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition", + modelProperties: { + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "Number", + }, }, - additionalLocations: { - serializedName: "additionalLocations", - xmlName: "additionalLocations", - xmlElementName: "AdditionalLocation", + percentage: { + serializedName: "percentage", + xmlName: "percentage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "Number", + }, }, - customProperties: { - serializedName: "customProperties", - xmlName: "customProperties", + interval: { + serializedName: "interval", + xmlName: "interval", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "TimeSpan", + }, }, - certificates: { - serializedName: "certificates", - xmlName: "certificates", - xmlElementName: "CertificateConfiguration", + statusCodeRanges: { + constraints: { + MaxItems: 10, + }, + serializedName: "statusCodeRanges", + xmlName: "statusCodeRanges", + xmlElementName: "FailureStatusCodeRange", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CertificateConfiguration" - } - } - } - }, - enableClientCertificate: { - defaultValue: false, - serializedName: "enableClientCertificate", - xmlName: "enableClientCertificate", - type: { - name: "Boolean" - } - }, - natGatewayState: { - serializedName: "natGatewayState", - xmlName: "natGatewayState", - type: { - name: "String" - } + className: "FailureStatusCodeRange", + }, + }, + }, }, - outboundPublicIPAddresses: { - serializedName: "outboundPublicIPAddresses", - readOnly: true, - xmlName: "outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + errorReasons: { + constraints: { + MaxItems: 10, + }, + serializedName: "errorReasons", + xmlName: "errorReasons", + xmlElementName: "CircuitBreakerFailureConditionErrorReasonsItem", type: { name: "Sequence", element: { + constraints: { + MaxLength: 200, + }, type: { - name: "String" - } - } - } - }, - disableGateway: { - defaultValue: false, - serializedName: "disableGateway", - xmlName: "disableGateway", - type: { - name: "Boolean" - } - }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "virtualNetworkType", - xmlName: "virtualNetworkType", - type: { - name: "String" - } + name: "String", + }, + }, + }, }, - apiVersionConstraint: { - serializedName: "apiVersionConstraint", - xmlName: "apiVersionConstraint", + }, + }, +}; + +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: "Composite", - className: "ApiVersionConstraint" - } + name: "Number", + }, }, - restore: { - defaultValue: false, - serializedName: "restore", - xmlName: "restore", + max: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200, + }, + serializedName: "max", + xmlName: "max", type: { - name: "Boolean" - } + name: "Number", + }, }, - privateEndpointConnections: { - serializedName: "privateEndpointConnections", - xmlName: "privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + }, + }, +}; + +export const BackendPool: coreClient.CompositeMapper = { + serializedName: "BackendPool", + type: { + name: "Composite", + className: "BackendPool", + modelProperties: { + services: { + constraints: { + MinItems: 1, + }, + serializedName: "services", + xmlName: "services", + xmlElementName: "BackendPoolItem", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + className: "BackendPoolItem", + }, + }, + }, }, - platformVersion: { - serializedName: "platformVersion", - readOnly: true, - xmlName: "platformVersion", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const HostnameConfiguration: coreClient.CompositeMapper = { - serializedName: "HostnameConfiguration", +export const BackendPoolItem: coreClient.CompositeMapper = { + serializedName: "BackendPoolItem", type: { name: "Composite", - className: "HostnameConfiguration", + className: "BackendPoolItem", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", required: true, - xmlName: "type", + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - hostName: { - serializedName: "hostName", - required: true, - xmlName: "hostName", + weight: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "weight", + xmlName: "weight", type: { - name: "String" - } + name: "Number", + }, }, - keyVaultId: { - serializedName: "keyVaultId", - xmlName: "keyVaultId", + priority: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "priority", + xmlName: "priority", type: { - name: "String" - } + name: "Number", + }, }, - identityClientId: { - serializedName: "identityClientId", - xmlName: "identityClientId", + }, + }, +}; + +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" - } + name: "String", + }, }, - encodedCertificate: { - serializedName: "encodedCertificate", - xmlName: "encodedCertificate", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - certificatePassword: { - serializedName: "certificatePassword", - xmlName: "certificatePassword", + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { - name: "String" - } + name: "Composite", + className: "BackendProperties", + }, }, - defaultSslBinding: { - defaultValue: false, - serializedName: "defaultSslBinding", - xmlName: "defaultSslBinding", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendCredentialsContract", + }, }, - negotiateClientCertificate: { - defaultValue: false, - serializedName: "negotiateClientCertificate", - xmlName: "negotiateClientCertificate", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "Boolean" - } + name: "Composite", + className: "BackendProxyContract", + }, }, - certificate: { - serializedName: "certificate", - xmlName: "certificate", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", + type: { + name: "Composite", + className: "BackendTlsProperties", + }, + }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", type: { name: "Composite", - className: "CertificateInformation" - } + className: "BackendCircuitBreaker", + }, }, - certificateSource: { - serializedName: "certificateSource", - xmlName: "certificateSource", + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", type: { - name: "String" - } + name: "Composite", + className: "BackendBaseParametersPool", + }, }, - certificateStatus: { - serializedName: "certificateStatus", - xmlName: "certificateStatus", + type: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", + type: { + name: "String", + }, + }, + }, + }, }; -export const CertificateInformation: coreClient.CompositeMapper = { - serializedName: "CertificateInformation", +export const CacheCollection: coreClient.CompositeMapper = { + serializedName: "CacheCollection", type: { name: "Composite", - className: "CertificateInformation", + className: "CacheCollection", modelProperties: { - expiry: { - serializedName: "expiry", - required: true, - xmlName: "expiry", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "CacheContract", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CacheContract", + }, + }, + }, }, - thumbprint: { - serializedName: "thumbprint", - required: true, - xmlName: "thumbprint", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - subject: { - serializedName: "subject", - required: true, - xmlName: "subject", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { - serializedName: "VirtualNetworkConfiguration", +export const CacheUpdateParameters: coreClient.CompositeMapper = { + serializedName: "CacheUpdateParameters", type: { name: "Composite", - className: "VirtualNetworkConfiguration", + className: "CacheUpdateParameters", modelProperties: { - vnetid: { - serializedName: "vnetid", - readOnly: true, - xmlName: "vnetid", + description: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - subnetname: { - serializedName: "subnetname", - readOnly: true, - xmlName: "subnetname", + connectionString: { + constraints: { + MaxLength: 300, + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", + type: { + name: "String", + }, + }, + useFromLocation: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, - subnetResourceId: { + resourceId: { constraints: { - Pattern: new RegExp( - "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$" - ) + MaxLength: 2000, }, - serializedName: "subnetResourceId", - xmlName: "subnetResourceId", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AdditionalLocation: coreClient.CompositeMapper = { - serializedName: "AdditionalLocation", +export const CertificateCollection: coreClient.CompositeMapper = { + serializedName: "CertificateCollection", type: { name: "Composite", - className: "AdditionalLocation", + className: "CertificateCollection", modelProperties: { - location: { - serializedName: "location", - required: true, - xmlName: "location", - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "AdditionalLocationZonesItem", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "CertificateContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "CertificateContract", + }, + }, + }, }, - publicIPAddresses: { - serializedName: "publicIPAddresses", - readOnly: true, - xmlName: "publicIPAddresses", - xmlElementName: "AdditionalLocationPublicIPAddressesItem", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Number", + }, }, - privateIPAddresses: { - serializedName: "privateIPAddresses", - readOnly: true, - xmlName: "privateIPAddresses", - xmlElementName: "AdditionalLocationPrivateIPAddressesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - publicIpAddressId: { - serializedName: "publicIpAddressId", - xmlName: "publicIpAddressId", - type: { - name: "String" - } - }, - virtualNetworkConfiguration: { - serializedName: "virtualNetworkConfiguration", - xmlName: "virtualNetworkConfiguration", - type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } - }, - gatewayRegionalUrl: { - serializedName: "gatewayRegionalUrl", - readOnly: true, - xmlName: "gatewayRegionalUrl", - type: { - name: "String" - } - }, - natGatewayState: { - serializedName: "natGatewayState", - xmlName: "natGatewayState", - type: { - name: "String" - } - }, - outboundPublicIPAddresses: { - serializedName: "outboundPublicIPAddresses", - readOnly: true, - xmlName: "outboundPublicIPAddresses", - xmlElementName: "AdditionalLocationOutboundPublicIPAddressesItem", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - disableGateway: { - defaultValue: false, - serializedName: "disableGateway", - xmlName: "disableGateway", - type: { - name: "Boolean" - } + }, + }, +}; + +export const KeyVaultLastAccessStatusContractProperties: coreClient.CompositeMapper = + { + serializedName: "KeyVaultLastAccessStatusContractProperties", + type: { + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String", + }, + }, + timeStampUtc: { + serializedName: "timeStampUtc", + xmlName: "timeStampUtc", + type: { + name: "DateTime", + }, + }, }, - platformVersion: { - serializedName: "platformVersion", - readOnly: true, - xmlName: "platformVersion", - type: { - name: "String" - } - } - } - } -}; + }, + }; -export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceSkuProperties", +export const KeyVaultContractCreateProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractCreateProperties", type: { name: "Composite", - className: "ApiManagementServiceSkuProperties", + className: "KeyVaultContractCreateProperties", modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", + secretIdentifier: { + serializedName: "secretIdentifier", + xmlName: "secretIdentifier", type: { - name: "String" - } + name: "String", + }, }, - capacity: { - serializedName: "capacity", - required: true, - xmlName: "capacity", + identityClientId: { + serializedName: "identityClientId", + xmlName: "identityClientId", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateConfiguration: coreClient.CompositeMapper = { - serializedName: "CertificateConfiguration", +export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { + serializedName: "CertificateCreateOrUpdateParameters", type: { name: "Composite", - className: "CertificateConfiguration", + className: "CertificateCreateOrUpdateParameters", modelProperties: { - encodedCertificate: { - serializedName: "encodedCertificate", - xmlName: "encodedCertificate", - type: { - name: "String" - } - }, - certificatePassword: { - serializedName: "certificatePassword", - xmlName: "certificatePassword", + data: { + serializedName: "properties.data", + xmlName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, - storeName: { - serializedName: "storeName", - required: true, - xmlName: "storeName", + password: { + serializedName: "properties.password", + xmlName: "properties.password", type: { - name: "String" - } + name: "String", + }, }, - certificate: { - serializedName: "certificate", - xmlName: "certificate", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "CertificateInformation" - } - } - } - } -}; - -export const ApiVersionConstraint: coreClient.CompositeMapper = { - serializedName: "ApiVersionConstraint", - type: { - name: "Composite", - className: "ApiVersionConstraint", - modelProperties: { - minApiVersion: { - serializedName: "minApiVersion", - xmlName: "minApiVersion", - type: { - name: "String" - } - } - } - } + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; -export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = { - serializedName: "RemotePrivateEndpointConnectionWrapper", +export const ConnectivityCheckRequest: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequest", type: { name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper", + className: "ConnectivityCheckRequest", modelProperties: { - id: { - serializedName: "id", - xmlName: "id", + source: { + serializedName: "source", + xmlName: "source", type: { - name: "String" - } + name: "Composite", + className: "ConnectivityCheckRequestSource", + }, }, - name: { - serializedName: "name", - xmlName: "name", + destination: { + serializedName: "destination", + xmlName: "destination", type: { - name: "String" - } + name: "Composite", + className: "ConnectivityCheckRequestDestination", + }, }, - type: { - serializedName: "type", - xmlName: "type", + preferredIPVersion: { + serializedName: "preferredIPVersion", + xmlName: "preferredIPVersion", type: { - name: "String" - } + name: "String", + }, }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { - name: "Composite", - className: "ArmIdWrapper" - } + name: "String", + }, }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + protocolConfiguration: { + serializedName: "protocolConfiguration", + xmlName: "protocolConfiguration", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", - type: { - name: "String" - } + className: "ConnectivityCheckRequestProtocolConfiguration", + }, }, - groupIds: { - serializedName: "properties.groupIds", - readOnly: true, - xmlName: "properties.groupIds", - xmlElementName: - "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const ArmIdWrapper: coreClient.CompositeMapper = { - serializedName: "ArmIdWrapper", +export const ConnectivityCheckRequestSource: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequestSource", type: { name: "Composite", - className: "ArmIdWrapper", + className: "ConnectivityCheckRequestSource", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", + region: { + serializedName: "region", + required: true, + xmlName: "region", + type: { + name: "String", + }, + }, + instance: { + serializedName: "instance", + xmlName: "instance", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const ConnectivityCheckRequestDestination: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckRequestDestination", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "ConnectivityCheckRequestDestination", modelProperties: { - status: { - serializedName: "status", - xmlName: "status", + address: { + serializedName: "address", + required: true, + xmlName: "address", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + port: { + serializedName: "port", + required: true, + xmlName: "port", type: { - name: "String" - } + name: "Number", + }, }, - actionsRequired: { - serializedName: "actionsRequired", - xmlName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ConnectivityCheckRequestProtocolConfiguration: coreClient.CompositeMapper = + { + serializedName: "ConnectivityCheckRequestProtocolConfiguration", + type: { + name: "Composite", + className: "ConnectivityCheckRequestProtocolConfiguration", + modelProperties: { + httpConfiguration: { + serializedName: "HTTPConfiguration", + xmlName: "HTTPConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + }, + }, + }, + }, + }; + +export const ConnectivityCheckRequestProtocolConfigurationHttpConfiguration: coreClient.CompositeMapper = + { + serializedName: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + type: { + name: "Composite", + className: + "ConnectivityCheckRequestProtocolConfigurationHttpConfiguration", + modelProperties: { + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + validStatusCodes: { + serializedName: "validStatusCodes", + xmlName: "validStatusCodes", + xmlElementName: "ArrayItemschema", + type: { + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, + }, + }, + headers: { + serializedName: "headers", + xmlName: "headers", + xmlElementName: "HttpHeader", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HttpHeader", + }, + }, + }, + }, + }, + }, + }; -export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceIdentity", +export const HttpHeader: coreClient.CompositeMapper = { + serializedName: "HttpHeader", type: { name: "Composite", - className: "ApiManagementServiceIdentity", + className: "HttpHeader", modelProperties: { - type: { - serializedName: "type", + name: { + serializedName: "name", required: true, - xmlName: "type", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - principalId: { - serializedName: "principalId", - readOnly: true, - xmlName: "principalId", + value: { + serializedName: "value", + required: true, + xmlName: "value", type: { - name: "Uuid" - } + name: "String", + }, }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - xmlName: "tenantId", - type: { - name: "Uuid" - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - xmlName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } + }, + }, }; -export const UserIdentityProperties: coreClient.CompositeMapper = { - serializedName: "UserIdentityProperties", +export const ConnectivityCheckResponse: coreClient.CompositeMapper = { + serializedName: "ConnectivityCheckResponse", type: { name: "Composite", - className: "UserIdentityProperties", + className: "ConnectivityCheckResponse", modelProperties: { - principalId: { - serializedName: "principalId", - xmlName: "principalId", + hops: { + serializedName: "hops", + readOnly: true, + xmlName: "hops", + xmlElementName: "ConnectivityHop", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityHop", + }, + }, + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + connectionStatus: { + serializedName: "connectionStatus", + readOnly: true, + xmlName: "connectionStatus", + type: { + name: "String", + }, + }, + avgLatencyInMs: { + serializedName: "avgLatencyInMs", + readOnly: true, + xmlName: "avgLatencyInMs", + type: { + name: "Number", + }, + }, + minLatencyInMs: { + serializedName: "minLatencyInMs", + readOnly: true, + xmlName: "minLatencyInMs", + type: { + name: "Number", + }, + }, + maxLatencyInMs: { + serializedName: "maxLatencyInMs", + readOnly: true, + xmlName: "maxLatencyInMs", + type: { + name: "Number", + }, + }, + probesSent: { + serializedName: "probesSent", + readOnly: true, + xmlName: "probesSent", + type: { + name: "Number", + }, + }, + probesFailed: { + serializedName: "probesFailed", + readOnly: true, + xmlName: "probesFailed", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const SystemData: coreClient.CompositeMapper = { - serializedName: "SystemData", +export const ConnectivityHop: coreClient.CompositeMapper = { + serializedName: "ConnectivityHop", type: { name: "Composite", - className: "SystemData", + className: "ConnectivityHop", modelProperties: { - createdBy: { - serializedName: "createdBy", - xmlName: "createdBy", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - createdByType: { - serializedName: "createdByType", - xmlName: "createdByType", + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - createdAt: { - serializedName: "createdAt", - xmlName: "createdAt", + address: { + serializedName: "address", + readOnly: true, + xmlName: "address", type: { - name: "DateTime" - } + name: "String", + }, }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - xmlName: "lastModifiedBy", + resourceId: { + serializedName: "resourceId", + readOnly: true, + xmlName: "resourceId", type: { - name: "String" - } + name: "String", + }, }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - xmlName: "lastModifiedByType", + nextHopIds: { + serializedName: "nextHopIds", + readOnly: true, + xmlName: "nextHopIds", + xmlElementName: "ConnectivityHopNextHopIdsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - xmlName: "lastModifiedAt", + issues: { + serializedName: "issues", + readOnly: true, + xmlName: "issues", + xmlElementName: "ConnectivityIssue", type: { - name: "DateTime" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityIssue", + }, + }, + }, + }, + }, + }, }; -export const ApimResource: coreClient.CompositeMapper = { - serializedName: "ApimResource", +export const ConnectivityIssue: coreClient.CompositeMapper = { + serializedName: "ConnectivityIssue", type: { name: "Composite", - className: "ApimResource", + className: "ConnectivityIssue", modelProperties: { - id: { - serializedName: "id", + origin: { + serializedName: "origin", readOnly: true, - xmlName: "id", + xmlName: "origin", type: { - name: "String" - } + name: "String", + }, }, - name: { - serializedName: "name", + severity: { + serializedName: "severity", readOnly: true, - xmlName: "name", + xmlName: "severity", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - tags: { - serializedName: "tags", - xmlName: "tags", + context: { + serializedName: "context", + readOnly: true, + xmlName: "context", + xmlElementName: "IssueContext", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }, + }, }; -export const ApiManagementServiceListResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceListResult", +export const ContentTypeCollection: coreClient.CompositeMapper = { + serializedName: "ContentTypeCollection", type: { name: "Composite", - className: "ApiManagementServiceListResult", + className: "ContentTypeCollection", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, xmlName: "value", - xmlElementName: "ApiManagementServiceResource", + xmlElementName: "ContentTypeContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiManagementServiceResource" - } - } - } + className: "ContentTypeContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetSsoTokenResult", - type: { - name: "Composite", - className: "ApiManagementServiceGetSsoTokenResult", - modelProperties: { - redirectUri: { - serializedName: "redirectUri", - xmlName: "redirectUri", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", - type: { - name: "Composite", - className: "ApiManagementServiceCheckNameAvailabilityParameters", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceNameAvailabilityResult", +export const ContentItemCollection: coreClient.CompositeMapper = { + serializedName: "ContentItemCollection", type: { name: "Composite", - className: "ApiManagementServiceNameAvailabilityResult", + className: "ContentItemCollection", modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + value: { + serializedName: "value", readOnly: true, - xmlName: "nameAvailable", + xmlName: "value", + xmlElementName: "ContentItemContract", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContentItemContract", + }, + }, + }, }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, - xmlName: "message", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - reason: { - serializedName: "reason", - xmlName: "reason", - type: { - name: "Enum", - allowedValues: ["Valid", "Invalid", "AlreadyExists"] - } - } - } - } -}; - -export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", - type: { - name: "Composite", - className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", - modelProperties: { - domainOwnershipIdentifier: { - serializedName: "domainOwnershipIdentifier", - readOnly: true, - xmlName: "domainOwnershipIdentifier", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", - type: { - name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationParameters", - modelProperties: { - location: { - serializedName: "location", - xmlName: "location", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const EmailTemplateCollection: coreClient.CompositeMapper = { - serializedName: "EmailTemplateCollection", +export const DeletedServicesCollection: coreClient.CompositeMapper = { + serializedName: "DeletedServicesCollection", type: { name: "Composite", - className: "EmailTemplateCollection", + className: "DeletedServicesCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "EmailTemplateContract", + xmlElementName: "DeletedServiceContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EmailTemplateContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "DeletedServiceContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = { - serializedName: "EmailTemplateParametersContractProperties", +export const OperationListResult: coreClient.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "EmailTemplateParametersContractProperties", + className: "OperationListResult", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "Operation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation", + }, + }, }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Operation: coreClient.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { serializedName: "name", xmlName: "name", type: { - name: "String" - } - }, - title: { - constraints: { - MaxLength: 4096, - MinLength: 1 + name: "String", }, - serializedName: "title", - xmlName: "title", + }, + display: { + serializedName: "display", + xmlName: "display", type: { - name: "String" - } + name: "Composite", + className: "OperationDisplay", + }, }, - description: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + origin: { + serializedName: "origin", + xmlName: "origin", + type: { + name: "String", }, - serializedName: "description", - xmlName: "description", + }, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" - } - } - } - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; -export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { - serializedName: "EmailTemplateUpdateParameters", +export const OperationDisplay: coreClient.CompositeMapper = { + serializedName: "OperationDisplay", type: { name: "Composite", - className: "EmailTemplateUpdateParameters", + className: "OperationDisplay", modelProperties: { - subject: { - constraints: { - MaxLength: 1000, - MinLength: 1 + provider: { + serializedName: "provider", + xmlName: "provider", + type: { + name: "String", }, - serializedName: "properties.subject", - xmlName: "properties.subject", + }, + operation: { + serializedName: "operation", + xmlName: "operation", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + resource: { + serializedName: "resource", + xmlName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + xmlName: "description", type: { - name: "String" - } - }, - body: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "properties.body", - xmlName: "properties.body", - type: { - name: "String" - } }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties" - } - } - } - } - } - } + }, + }, }; -export const GatewayCollection: coreClient.CompositeMapper = { - serializedName: "GatewayCollection", +export const ResourceSkuResults: coreClient.CompositeMapper = { + serializedName: "ResourceSkuResults", type: { name: "Composite", - className: "GatewayCollection", + className: "ResourceSkuResults", modelProperties: { value: { serializedName: "value", - readOnly: true, + required: true, xmlName: "value", - xmlElementName: "GatewayContract", + xmlElementName: "ResourceSkuResult", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GatewayContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "ResourceSkuResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ResourceLocationDataContract: coreClient.CompositeMapper = { - serializedName: "ResourceLocationDataContract", +export const ResourceSkuResult: coreClient.CompositeMapper = { + serializedName: "ResourceSkuResult", type: { name: "Composite", - className: "ResourceLocationDataContract", + className: "ResourceSkuResult", modelProperties: { - name: { - constraints: { - MaxLength: 256 - }, - serializedName: "name", - required: true, - xmlName: "name", + resourceType: { + serializedName: "resourceType", + readOnly: true, + xmlName: "resourceType", type: { - name: "String" - } - }, - city: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "city", - xmlName: "city", - type: { - name: "String" - } }, - district: { - constraints: { - MaxLength: 256 - }, - serializedName: "district", - xmlName: "district", + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" - } - }, - countryOrRegion: { - constraints: { - MaxLength: 256 + name: "Composite", + className: "ResourceSku", }, - serializedName: "countryOrRegion", - xmlName: "countryOrRegion", + }, + capacity: { + serializedName: "capacity", + xmlName: "capacity", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "ResourceSkuCapacity", + }, + }, + }, + }, }; -export const GatewayKeysContract: coreClient.CompositeMapper = { - serializedName: "GatewayKeysContract", +export const ResourceSku: coreClient.CompositeMapper = { + serializedName: "ResourceSku", type: { name: "Composite", - className: "GatewayKeysContract", + className: "ResourceSku", modelProperties: { - primary: { - serializedName: "primary", - xmlName: "primary", + name: { + serializedName: "name", + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - secondary: { - serializedName: "secondary", - xmlName: "secondary", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = { - serializedName: "GatewayKeyRegenerationRequestContract", +export const ResourceSkuCapacity: coreClient.CompositeMapper = { + serializedName: "ResourceSkuCapacity", type: { name: "Composite", - className: "GatewayKeyRegenerationRequestContract", + className: "ResourceSkuCapacity", modelProperties: { - keyType: { - serializedName: "keyType", - required: true, - xmlName: "keyType", + minimum: { + serializedName: "minimum", + readOnly: true, + xmlName: "minimum", type: { - name: "Enum", - allowedValues: ["primary", "secondary"] - } - } - } - } -}; - -export const GatewayTokenRequestContract: coreClient.CompositeMapper = { - serializedName: "GatewayTokenRequestContract", - type: { - name: "Composite", - className: "GatewayTokenRequestContract", - modelProperties: { - keyType: { - serializedName: "keyType", - required: true, - xmlName: "keyType", + name: "Number", + }, + }, + maximum: { + serializedName: "maximum", + readOnly: true, + xmlName: "maximum", type: { - name: "Enum", - allowedValues: ["primary", "secondary"] - } + name: "Number", + }, }, - expiry: { - serializedName: "expiry", - required: true, - xmlName: "expiry", + default: { + serializedName: "default", + readOnly: true, + xmlName: "default", type: { - name: "DateTime" - } - } - } - } -}; - -export const GatewayTokenContract: coreClient.CompositeMapper = { - serializedName: "GatewayTokenContract", - type: { - name: "Composite", - className: "GatewayTokenContract", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", + name: "Number", + }, + }, + scaleType: { + serializedName: "scaleType", + readOnly: true, + xmlName: "scaleType", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceBackupRestoreParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceBackupRestoreParameters", + type: { + name: "Composite", + className: "ApiManagementServiceBackupRestoreParameters", + modelProperties: { + storageAccount: { + serializedName: "storageAccount", + required: true, + xmlName: "storageAccount", + type: { + name: "String", + }, + }, + containerName: { + serializedName: "containerName", + required: true, + xmlName: "containerName", + type: { + name: "String", + }, + }, + backupName: { + serializedName: "backupName", + required: true, + xmlName: "backupName", + type: { + name: "String", + }, + }, + accessType: { + defaultValue: "AccessKey", + serializedName: "accessType", + xmlName: "accessType", + type: { + name: "String", + }, + }, + accessKey: { + serializedName: "accessKey", + xmlName: "accessKey", + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationCollection", +export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceBaseProperties", type: { name: "Composite", - className: "GatewayHostnameConfigurationCollection", + className: "ApiManagementServiceBaseProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GatewayHostnameConfigurationContract", + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "notificationSenderEmail", + xmlName: "notificationSenderEmail", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayHostnameConfigurationContract" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + provisioningState: { + serializedName: "provisioningState", readOnly: true, - xmlName: "nextLink", + xmlName: "provisioningState", type: { - name: "String" - } - } - } - } -}; - -export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityCollection", - type: { - name: "Composite", - className: "GatewayCertificateAuthorityCollection", - modelProperties: { - value: { - serializedName: "value", + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "targetProvisioningState", readOnly: true, - xmlName: "value", - xmlElementName: "GatewayCertificateAuthorityContract", + xmlName: "targetProvisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", + createdAtUtc: { + serializedName: "createdAtUtc", readOnly: true, - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const GroupCollection: coreClient.CompositeMapper = { - serializedName: "GroupCollection", - type: { - name: "Composite", - className: "GroupCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "GroupContract", + xmlName: "createdAtUtc", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContract" - } - } - } + name: "DateTime", + }, }, - count: { - serializedName: "count", - xmlName: "count", + gatewayUrl: { + serializedName: "gatewayUrl", + readOnly: true, + xmlName: "gatewayUrl", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + gatewayRegionalUrl: { + serializedName: "gatewayRegionalUrl", + readOnly: true, + xmlName: "gatewayRegionalUrl", type: { - name: "String" - } - } - } - } -}; - -export const GroupContractProperties: coreClient.CompositeMapper = { - serializedName: "GroupContractProperties", - type: { - name: "Composite", - className: "GroupContractProperties", - modelProperties: { - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "displayName", - required: true, - xmlName: "displayName", - type: { - name: "String" - } }, - description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "description", - xmlName: "description", + portalUrl: { + serializedName: "portalUrl", + readOnly: true, + xmlName: "portalUrl", type: { - name: "String" - } + name: "String", + }, }, - builtIn: { - serializedName: "builtIn", + managementApiUrl: { + serializedName: "managementApiUrl", readOnly: true, - xmlName: "builtIn", + xmlName: "managementApiUrl", type: { - name: "Boolean" - } + name: "String", + }, }, - type: { - serializedName: "type", - xmlName: "type", + scmUrl: { + serializedName: "scmUrl", + readOnly: true, + xmlName: "scmUrl", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "String", + }, }, - externalId: { - serializedName: "externalId", - xmlName: "externalId", + developerPortalUrl: { + serializedName: "developerPortalUrl", + readOnly: true, + xmlName: "developerPortalUrl", type: { - name: "String" - } - } - } - } -}; - -export const GroupCreateParameters: coreClient.CompositeMapper = { - serializedName: "GroupCreateParameters", - type: { - name: "Composite", - className: "GroupCreateParameters", - modelProperties: { - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + hostnameConfigurations: { + serializedName: "hostnameConfigurations", + xmlName: "hostnameConfigurations", + xmlElementName: "HostnameConfiguration", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, }, - type: { - serializedName: "properties.type", - xmlName: "properties.type", + publicIPAddresses: { + serializedName: "publicIPAddresses", + readOnly: true, + xmlName: "publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + privateIPAddresses: { + serializedName: "privateIPAddresses", + readOnly: true, + xmlName: "privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { - name: "String" - } - } - } - } -}; - -export const GroupUpdateParameters: coreClient.CompositeMapper = { - serializedName: "GroupUpdateParameters", - type: { - name: "Composite", - className: "GroupUpdateParameters", - modelProperties: { - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + publicIpAddressId: { + serializedName: "publicIpAddressId", + xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + xmlName: "publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, - type: { - serializedName: "properties.type", - xmlName: "properties.type", + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "Composite", + className: "ConfigurationApi", + }, }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + virtualNetworkConfiguration: { + serializedName: "virtualNetworkConfiguration", + xmlName: "virtualNetworkConfiguration", type: { - name: "String" - } - } - } - } -}; - -export const UserCollection: coreClient.CompositeMapper = { - serializedName: "UserCollection", - type: { - name: "Composite", - className: "UserCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "UserContract", + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "additionalLocations", + xmlName: "additionalLocations", + xmlElementName: "AdditionalLocation", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserContract" - } - } - } + className: "AdditionalLocation", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + customProperties: { + serializedName: "customProperties", + xmlName: "customProperties", type: { - name: "Number" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + certificates: { + serializedName: "certificates", + xmlName: "certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" - } - } - } - } -}; - -export const UserEntityBaseParameters: coreClient.CompositeMapper = { - serializedName: "UserEntityBaseParameters", - type: { - name: "Composite", - className: "UserEntityBaseParameters", - modelProperties: { - state: { - defaultValue: "active", - serializedName: "state", - xmlName: "state", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "enableClientCertificate", + xmlName: "enableClientCertificate", type: { - name: "String" - } + name: "Boolean", + }, }, - note: { - serializedName: "note", - xmlName: "note", + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", type: { - name: "String" - } + name: "String", + }, }, - identities: { - serializedName: "identities", - xmlName: "identities", - xmlElementName: "UserIdentityContract", + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - } - } - } -}; - -export const UserIdentityContract: coreClient.CompositeMapper = { - serializedName: "UserIdentityContract", - type: { - name: "Composite", - className: "UserIdentityContract", - modelProperties: { - provider: { - serializedName: "provider", - xmlName: "provider", + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "disableGateway", + xmlName: "disableGateway", type: { - name: "String" - } + name: "Boolean", + }, }, - id: { - serializedName: "id", - xmlName: "id", + virtualNetworkType: { + serializedName: "virtualNetworkType", + xmlName: "virtualNetworkType", type: { - name: "String" - } - } - } - } -}; - -export const IdentityProviderList: coreClient.CompositeMapper = { - serializedName: "IdentityProviderList", - type: { - name: "Composite", - className: "IdentityProviderList", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "IdentityProviderContract", + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "apiVersionConstraint", + xmlName: "apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "restore", + xmlName: "restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + xmlName: "privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IdentityProviderContract" - } - } - } + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + platformVersion: { + serializedName: "platformVersion", + readOnly: true, + xmlName: "platformVersion", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "legacyPortalStatus", + xmlName: "legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "developerPortalStatus", + xmlName: "developerPortalStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { - serializedName: "IdentityProviderBaseParameters", +export const HostnameConfiguration: coreClient.CompositeMapper = { + serializedName: "HostnameConfiguration", type: { name: "Composite", - className: "IdentityProviderBaseParameters", + className: "HostnameConfiguration", modelProperties: { type: { serializedName: "type", + required: true, xmlName: "type", type: { - name: "String" - } + name: "String", + }, }, - signinTenant: { - serializedName: "signinTenant", - xmlName: "signinTenant", + hostName: { + serializedName: "hostName", + required: true, + xmlName: "hostName", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "allowedTenants", - xmlName: "allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "authority", - xmlName: "authority", + keyVaultId: { + serializedName: "keyVaultId", + xmlName: "keyVaultId", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "signupPolicyName", - xmlName: "signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 + identityClientId: { + serializedName: "identityClientId", + xmlName: "identityClientId", + type: { + name: "String", }, - serializedName: "signinPolicyName", - xmlName: "signinPolicyName", + }, + encodedCertificate: { + serializedName: "encodedCertificate", + xmlName: "encodedCertificate", type: { - name: "String" - } + name: "String", + }, }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + certificatePassword: { + serializedName: "certificatePassword", + xmlName: "certificatePassword", + type: { + name: "String", }, - serializedName: "profileEditingPolicyName", - xmlName: "profileEditingPolicyName", + }, + defaultSslBinding: { + defaultValue: false, + serializedName: "defaultSslBinding", + xmlName: "defaultSslBinding", type: { - name: "String" - } + name: "Boolean", + }, }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 + negotiateClientCertificate: { + defaultValue: false, + serializedName: "negotiateClientCertificate", + xmlName: "negotiateClientCertificate", + type: { + name: "Boolean", }, - serializedName: "passwordResetPolicyName", - xmlName: "passwordResetPolicyName", + }, + certificate: { + serializedName: "certificate", + xmlName: "certificate", type: { - name: "String" - } + name: "Composite", + className: "CertificateInformation", + }, }, - clientLibrary: { - constraints: { - MaxLength: 16 + certificateSource: { + serializedName: "certificateSource", + xmlName: "certificateSource", + type: { + name: "String", }, - serializedName: "clientLibrary", - xmlName: "clientLibrary", + }, + certificateStatus: { + serializedName: "certificateStatus", + xmlName: "certificateStatus", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateParameters", +export const CertificateInformation: coreClient.CompositeMapper = { + serializedName: "CertificateInformation", type: { name: "Composite", - className: "IdentityProviderUpdateParameters", + className: "CertificateInformation", modelProperties: { - type: { - serializedName: "properties.type", - xmlName: "properties.type", + expiry: { + serializedName: "expiry", + required: true, + xmlName: "expiry", type: { - name: "String" - } + name: "DateTime", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + thumbprint: { + serializedName: "thumbprint", + required: true, + xmlName: "thumbprint", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + subject: { + serializedName: "subject", + required: true, + xmlName: "subject", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + }, + }, +}; + +export const ConfigurationApi: coreClient.CompositeMapper = { + serializedName: "ConfigurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + modelProperties: { + legacyApi: { + defaultValue: "Enabled", + serializedName: "legacyApi", + xmlName: "legacyApi", type: { - name: "String" - } + name: "String", + }, }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + }, + }, +}; + +export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { + serializedName: "VirtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + modelProperties: { + vnetid: { + serializedName: "vnetid", + readOnly: true, + xmlName: "vnetid", type: { - name: "String" - } - }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", - type: { - name: "String" - } }, - clientLibrary: { - constraints: { - MaxLength: 16 - }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", + subnetname: { + serializedName: "subnetname", + readOnly: true, + xmlName: "subnetname", type: { - name: "String" - } - }, - clientId: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", - type: { - name: "String" - } }, - clientSecret: { + subnetResourceId: { constraints: { - MinLength: 1 + Pattern: new RegExp( + "^\\/subscriptions\\/[^/]*\\/resourceGroups\\/[^/]*\\/providers\\/Microsoft.(ClassicNetwork|Network)\\/virtualNetworks\\/[^/]*\\/subnets\\/[^/]*$", + ), }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + serializedName: "subnetResourceId", + xmlName: "subnetResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ClientSecretContract: coreClient.CompositeMapper = { - serializedName: "ClientSecretContract", +export const AdditionalLocation: coreClient.CompositeMapper = { + serializedName: "AdditionalLocation", type: { name: "Composite", - className: "ClientSecretContract", + className: "AdditionalLocation", modelProperties: { - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + location: { + serializedName: "location", + required: true, + xmlName: "location", type: { - name: "String" - } - } - } - } -}; - -export const LoggerCollection: coreClient.CompositeMapper = { - serializedName: "LoggerCollection", - type: { - name: "Composite", - className: "LoggerCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "LoggerContract", + name: "String", + }, + }, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "AdditionalLocationZonesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LoggerContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + publicIPAddresses: { + serializedName: "publicIPAddresses", + readOnly: true, + xmlName: "publicIPAddresses", + xmlElementName: "AdditionalLocationPublicIPAddressesItem", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + privateIPAddresses: { + serializedName: "privateIPAddresses", + readOnly: true, + xmlName: "privateIPAddresses", + xmlElementName: "AdditionalLocationPrivateIPAddressesItem", type: { - name: "String" - } - } - } - } -}; - -export const LoggerUpdateContract: coreClient.CompositeMapper = { - serializedName: "LoggerUpdateContract", - type: { - name: "Composite", - className: "LoggerUpdateContract", - modelProperties: { - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "publicIpAddressId", + xmlName: "publicIpAddressId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + virtualNetworkConfiguration: { + serializedName: "virtualNetworkConfiguration", + xmlName: "virtualNetworkConfiguration", type: { - name: "String" - } + name: "Composite", + className: "VirtualNetworkConfiguration", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + gatewayRegionalUrl: { + serializedName: "gatewayRegionalUrl", + readOnly: true, + xmlName: "gatewayRegionalUrl", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", type: { - name: "Boolean" - } - } - } - } -}; - -export const NamedValueCollection: coreClient.CompositeMapper = { - serializedName: "NamedValueCollection", - type: { - name: "Composite", - className: "NamedValueCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "NamedValueContract", + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: "AdditionalLocationOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "NamedValueContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + disableGateway: { + defaultValue: false, + serializedName: "disableGateway", + xmlName: "disableGateway", type: { - name: "Number" - } + name: "Boolean", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + platformVersion: { + serializedName: "platformVersion", + readOnly: true, + xmlName: "platformVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { - serializedName: "NamedValueEntityBaseParameters", +export const ApiManagementServiceSkuProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceSkuProperties", type: { name: "Composite", - className: "NamedValueEntityBaseParameters", + className: "ApiManagementServiceSkuProperties", modelProperties: { - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "tags", - xmlName: "tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + name: { + serializedName: "name", + required: true, + xmlName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - secret: { - serializedName: "secret", - xmlName: "secret", + capacity: { + serializedName: "capacity", + required: true, + xmlName: "capacity", type: { - name: "Boolean" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const NamedValueUpdateParameters: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameters", +export const CertificateConfiguration: coreClient.CompositeMapper = { + serializedName: "CertificateConfiguration", type: { name: "Composite", - className: "NamedValueUpdateParameters", + className: "CertificateConfiguration", modelProperties: { - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + encodedCertificate: { + serializedName: "encodedCertificate", + xmlName: "encodedCertificate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + certificatePassword: { + serializedName: "certificatePassword", + xmlName: "certificatePassword", type: { - name: "Boolean" - } - }, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + storeName: { + serializedName: "storeName", + required: true, + xmlName: "storeName", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 - }, - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "String" - } - }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + certificate: { + serializedName: "certificate", + xmlName: "certificate", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + className: "CertificateInformation", + }, + }, + }, + }, }; -export const NamedValueSecretContract: coreClient.CompositeMapper = { - serializedName: "NamedValueSecretContract", +export const ApiVersionConstraint: coreClient.CompositeMapper = { + serializedName: "ApiVersionConstraint", type: { name: "Composite", - className: "NamedValueSecretContract", + className: "ApiVersionConstraint", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", + minApiVersion: { + serializedName: "minApiVersion", + xmlName: "minApiVersion", type: { - name: "String" - } - } - } - } -}; - -export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { - serializedName: "NetworkStatusContractByLocation", - type: { - name: "Composite", - className: "NetworkStatusContractByLocation", - modelProperties: { - location: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "location", - xmlName: "location", - type: { - name: "String" - } }, - networkStatus: { - serializedName: "networkStatus", - xmlName: "networkStatus", + }, + }, +}; + +export const RemotePrivateEndpointConnectionWrapper: coreClient.CompositeMapper = + { + serializedName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, type: { - name: "Composite", - className: "NetworkStatusContract" - } - } - } - } -}; + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "ArmIdWrapper", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, + xmlName: "properties.groupIds", + xmlElementName: + "PrivateEndpointConnectionWrapperPropertiesGroupIdsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; -export const NetworkStatusContract: coreClient.CompositeMapper = { - serializedName: "NetworkStatusContract", +export const ArmIdWrapper: coreClient.CompositeMapper = { + serializedName: "ArmIdWrapper", type: { name: "Composite", - className: "NetworkStatusContract", + className: "ArmIdWrapper", modelProperties: { - dnsServers: { - serializedName: "dnsServers", - required: true, - xmlName: "dnsServers", - xmlElementName: "NetworkStatusContractDnsServersItem", + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - connectivityStatus: { - serializedName: "connectivityStatus", - required: true, - xmlName: "connectivityStatus", - xmlElementName: "ConnectivityStatusContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityStatusContract" - } - } - } - } - } - } + }, + }, }; -export const ConnectivityStatusContract: coreClient.CompositeMapper = { - serializedName: "ConnectivityStatusContract", +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", type: { name: "Composite", - className: "ConnectivityStatusContract", + className: "PrivateLinkServiceConnectionState", modelProperties: { - name: { - constraints: { - MinLength: 1 - }, - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, status: { serializedName: "status", - required: true, xmlName: "status", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "error", - xmlName: "error", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "String" - } + name: "String", + }, }, - lastUpdated: { - serializedName: "lastUpdated", - required: true, - xmlName: "lastUpdated", + actionsRequired: { + serializedName: "actionsRequired", + xmlName: "actionsRequired", type: { - name: "DateTime" - } + name: "String", + }, }, - lastStatusChange: { - serializedName: "lastStatusChange", + }, + }, +}; + +export const ApiManagementServiceIdentity: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceIdentity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + modelProperties: { + type: { + serializedName: "type", required: true, - xmlName: "lastStatusChange", + xmlName: "type", + type: { + name: "String", + }, + }, + principalId: { + serializedName: "principalId", + readOnly: true, + xmlName: "principalId", type: { - name: "DateTime" - } + name: "Uuid", + }, }, - resourceType: { - serializedName: "resourceType", - required: true, - xmlName: "resourceType", + tenantId: { + serializedName: "tenantId", + readOnly: true, + xmlName: "tenantId", type: { - name: "String" - } + name: "Uuid", + }, }, - isOptional: { - serializedName: "isOptional", - required: true, - xmlName: "isOptional", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + xmlName: "userAssignedIdentities", type: { - name: "Boolean" - } - } - } - } + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserIdentityProperties" }, + }, + }, + }, + }, + }, }; -export const NotificationCollection: coreClient.CompositeMapper = { - serializedName: "NotificationCollection", +export const UserIdentityProperties: coreClient.CompositeMapper = { + serializedName: "UserIdentityProperties", type: { name: "Composite", - className: "NotificationCollection", + className: "UserIdentityProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "NotificationContract", + principalId: { + serializedName: "principalId", + xmlName: "principalId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotificationContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const RecipientsContractProperties: coreClient.CompositeMapper = { - serializedName: "RecipientsContractProperties", +export const MigrateToStv2Contract: coreClient.CompositeMapper = { + serializedName: "MigrateToStv2Contract", type: { name: "Composite", - className: "RecipientsContractProperties", + className: "MigrateToStv2Contract", modelProperties: { - emails: { - serializedName: "emails", - xmlName: "emails", - xmlElementName: "RecipientsContractPropertiesEmailsItem", + mode: { + serializedName: "mode", + xmlName: "mode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - users: { - serializedName: "users", - xmlName: "users", - xmlElementName: "RecipientsContractPropertiesUsersItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const RecipientUserCollection: coreClient.CompositeMapper = { - serializedName: "RecipientUserCollection", +export const ApiManagementServiceListResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceListResult", type: { name: "Composite", - className: "RecipientUserCollection", + className: "ApiManagementServiceListResult", modelProperties: { value: { serializedName: "value", + required: true, xmlName: "value", - xmlElementName: "RecipientUserContract", + xmlElementName: "ApiManagementServiceResource", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecipientUserContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "ApiManagementServiceResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceGetSsoTokenResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetSsoTokenResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetSsoTokenResult", + modelProperties: { + redirectUri: { + serializedName: "redirectUri", + xmlName: "redirectUri", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceCheckNameAvailabilityParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "ApiManagementServiceCheckNameAvailabilityParameters", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceNameAvailabilityResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceNameAvailabilityResult", + type: { + name: "Composite", + className: "ApiManagementServiceNameAvailabilityResult", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + readOnly: true, + xmlName: "nameAvailable", + type: { + name: "Boolean", + }, + }, + message: { + serializedName: "message", + readOnly: true, + xmlName: "message", + type: { + name: "String", + }, + }, + reason: { + serializedName: "reason", + xmlName: "reason", + type: { + name: "Enum", + allowedValues: ["Valid", "Invalid", "AlreadyExists"], + }, + }, + }, + }, + }; + +export const ApiManagementServiceGetDomainOwnershipIdentifierResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetDomainOwnershipIdentifierResult", + modelProperties: { + domainOwnershipIdentifier: { + serializedName: "domainOwnershipIdentifier", + readOnly: true, + xmlName: "domainOwnershipIdentifier", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationParameters", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const RecipientEmailCollection: coreClient.CompositeMapper = { - serializedName: "RecipientEmailCollection", +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", type: { name: "Composite", - className: "RecipientEmailCollection", + className: "DocumentationCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "RecipientEmailContract", + xmlElementName: "DocumentationContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecipientEmailContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } + className: "DocumentationContract", + }, + }, + }, }, nextLink: { serializedName: "nextLink", + readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProviderCollection", +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", type: { name: "Composite", - className: "OpenIdConnectProviderCollection", + 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: { + name: "Composite", + className: "EmailTemplateCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "OpenidConnectProviderContract", + xmlElementName: "EmailTemplateContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OpenidConnectProviderContract" - } - } - } + className: "EmailTemplateContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const EmailTemplateParametersContractProperties: coreClient.CompositeMapper = + { + serializedName: "EmailTemplateParametersContractProperties", + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties", + modelProperties: { + name: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + title: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String", + }, + }, + description: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + }, + }, + }; -export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderUpdateContract", +export const EmailTemplateUpdateParameters: coreClient.CompositeMapper = { + serializedName: "EmailTemplateUpdateParameters", type: { name: "Composite", - className: "OpenidConnectProviderUpdateContract", + className: "EmailTemplateUpdateParameters", modelProperties: { - displayName: { + subject: { constraints: { - MaxLength: 50 + MaxLength: 1000, + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, + }, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + 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" - } + name: "String", + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + body: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { - name: "Boolean" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties", + }, + }, + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { - serializedName: "OutboundEnvironmentEndpointList", +export const GatewayCollection: coreClient.CompositeMapper = { + serializedName: "GatewayCollection", type: { name: "Composite", - className: "OutboundEnvironmentEndpointList", + className: "GatewayCollection", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, xmlName: "value", - xmlElementName: "OutboundEnvironmentEndpoint", + xmlElementName: "GatewayContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + className: "GatewayContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { - serializedName: "OutboundEnvironmentEndpoint", +export const ResourceLocationDataContract: coreClient.CompositeMapper = { + serializedName: "ResourceLocationDataContract", type: { name: "Composite", - className: "OutboundEnvironmentEndpoint", + className: "ResourceLocationDataContract", modelProperties: { - category: { - serializedName: "category", - xmlName: "category", + name: { + constraints: { + MaxLength: 256, + }, + serializedName: "name", + required: true, + xmlName: "name", type: { - name: "String" - } + name: "String", + }, }, - endpoints: { - serializedName: "endpoints", - xmlName: "endpoints", - xmlElementName: "EndpointDependency", + city: { + constraints: { + MaxLength: 256, + }, + serializedName: "city", + xmlName: "city", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + name: "String", + }, + }, + district: { + constraints: { + MaxLength: 256, + }, + serializedName: "district", + xmlName: "district", + type: { + name: "String", + }, + }, + countryOrRegion: { + constraints: { + MaxLength: 256, + }, + serializedName: "countryOrRegion", + xmlName: "countryOrRegion", + type: { + name: "String", + }, + }, + }, + }, }; -export const EndpointDependency: coreClient.CompositeMapper = { - serializedName: "EndpointDependency", +export const GatewayKeysContract: coreClient.CompositeMapper = { + serializedName: "GatewayKeysContract", type: { name: "Composite", - className: "EndpointDependency", + className: "GatewayKeysContract", modelProperties: { - domainName: { - serializedName: "domainName", - xmlName: "domainName", + primary: { + serializedName: "primary", + xmlName: "primary", type: { - name: "String" - } + name: "String", + }, }, - endpointDetails: { - serializedName: "endpointDetails", - xmlName: "endpointDetails", - xmlElementName: "EndpointDetail", + secondary: { + serializedName: "secondary", + xmlName: "secondary", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayKeyRegenerationRequestContract: coreClient.CompositeMapper = + { + serializedName: "GatewayKeyRegenerationRequestContract", + type: { + name: "Composite", + className: "GatewayKeyRegenerationRequestContract", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, + xmlName: "keyType", + type: { + name: "Enum", + allowedValues: ["primary", "secondary"], + }, + }, + }, + }, + }; -export const EndpointDetail: coreClient.CompositeMapper = { - serializedName: "EndpointDetail", +export const GatewayTokenRequestContract: coreClient.CompositeMapper = { + serializedName: "GatewayTokenRequestContract", type: { name: "Composite", - className: "EndpointDetail", + className: "GatewayTokenRequestContract", modelProperties: { - port: { - serializedName: "port", - xmlName: "port", + keyType: { + serializedName: "keyType", + required: true, + xmlName: "keyType", type: { - name: "Number" - } + name: "Enum", + allowedValues: ["primary", "secondary"], + }, }, - region: { - serializedName: "region", - xmlName: "region", + expiry: { + serializedName: "expiry", + required: true, + xmlName: "expiry", type: { - name: "String" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const PolicyDescriptionCollection: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionCollection", +export const GatewayTokenContract: coreClient.CompositeMapper = { + serializedName: "GatewayTokenContract", type: { name: "Composite", - className: "PolicyDescriptionCollection", + className: "GatewayTokenContract", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "PolicyDescriptionContract", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationCollection", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayHostnameConfigurationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthorityCollection", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GatewayCertificateAuthorityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayListDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayListDebugCredentialsContract", + type: { + name: "Composite", + className: "GatewayListDebugCredentialsContract", + modelProperties: { + credentialsExpireAfter: { + serializedName: "credentialsExpireAfter", + xmlName: "credentialsExpireAfter", + type: { + name: "TimeSpan", + }, + }, + purposes: { + serializedName: "purposes", + required: true, + xmlName: "purposes", + xmlElementName: "GatewayListDebugCredentialsContractPurpose", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PolicyDescriptionContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + apiId: { + serializedName: "apiId", + required: true, + xmlName: "apiId", type: { - name: "Number" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyFragmentCollection: coreClient.CompositeMapper = { - serializedName: "PolicyFragmentCollection", +export const GatewayDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayDebugCredentialsContract", type: { name: "Composite", - className: "PolicyFragmentCollection", + className: "GatewayDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "PolicyFragmentContract", + token: { + serializedName: "token", + xmlName: "token", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicyFragmentContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + }, + }, +}; + +export const GatewayListTraceContract: coreClient.CompositeMapper = { + serializedName: "GatewayListTraceContract", + type: { + name: "Composite", + className: "GatewayListTraceContract", + modelProperties: { + traceId: { + serializedName: "traceId", + xmlName: "traceId", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ApiManagementGatewayConfigConnectionListResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayConfigConnectionListResult", + type: { + name: "Composite", + className: "ApiManagementGatewayConfigConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementGatewayConfigConnectionResource", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementGatewayConfigConnectionResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ResourceCollection: coreClient.CompositeMapper = { - serializedName: "ResourceCollection", +export const GroupCollection: coreClient.CompositeMapper = { + serializedName: "GroupCollection", type: { name: "Composite", - className: "ResourceCollection", + className: "GroupCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "ResourceCollectionValueItem", + xmlElementName: "GroupContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceCollectionValueItem" - } - } - } + className: "GroupContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigCollection: coreClient.CompositeMapper = { - serializedName: "PortalConfigCollection", +export const GroupContractProperties: coreClient.CompositeMapper = { + serializedName: "GroupContractProperties", type: { name: "Composite", - className: "PortalConfigCollection", + className: "GroupContractProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "PortalConfigContract", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PortalConfigContract" - } - } - } + name: "String", + }, }, - 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", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "description", + xmlName: "description", type: { - name: "Boolean" - } - } - } - } -}; - -export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { - serializedName: "PortalConfigPropertiesSignup", - type: { - name: "Composite", - className: "PortalConfigPropertiesSignup", - modelProperties: { - termsOfService: { - serializedName: "termsOfService", - xmlName: "termsOfService", + name: "String", + }, + }, + builtIn: { + serializedName: "builtIn", + readOnly: true, + xmlName: "builtIn", type: { - name: "Composite", - className: "PortalConfigTermsOfServiceProperties" - } - } - } - } -}; - -export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigTermsOfServiceProperties", - type: { - name: "Composite", - className: "PortalConfigTermsOfServiceProperties", - modelProperties: { - text: { - serializedName: "text", - xmlName: "text", + name: "Boolean", + }, + }, + type: { + serializedName: "type", + xmlName: "type", type: { - name: "String" - } + name: "Enum", + allowedValues: ["custom", "system", "external"], + }, }, - requireConsent: { - defaultValue: false, - serializedName: "requireConsent", - xmlName: "requireConsent", + externalId: { + serializedName: "externalId", + xmlName: "externalId", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigDelegationProperties", +export const GroupCreateParameters: coreClient.CompositeMapper = { + serializedName: "GroupCreateParameters", type: { name: "Composite", - className: "PortalConfigDelegationProperties", + className: "GroupCreateParameters", modelProperties: { - delegateRegistration: { - defaultValue: false, - serializedName: "delegateRegistration", - xmlName: "delegateRegistration", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" - } + name: "String", + }, }, - delegateSubscription: { - defaultValue: false, - serializedName: "delegateSubscription", - xmlName: "delegateSubscription", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - delegationUrl: { - serializedName: "delegationUrl", - xmlName: "delegationUrl", + type: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "String" - } + name: "Enum", + allowedValues: ["custom", "system", "external"], + }, }, - validationKey: { - serializedName: "validationKey", - xmlName: "validationKey", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalConfigCorsProperties: coreClient.CompositeMapper = { - serializedName: "PortalConfigCorsProperties", +export const GroupUpdateParameters: coreClient.CompositeMapper = { + serializedName: "GroupUpdateParameters", type: { name: "Composite", - className: "PortalConfigCorsProperties", + className: "GroupUpdateParameters", modelProperties: { - allowedOrigins: { - serializedName: "allowedOrigins", - xmlName: "allowedOrigins", - xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", 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", + name: "String", + }, + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - reportUri: { - serializedName: "reportUri", - xmlName: "reportUri", - xmlElementName: "PortalConfigCspPropertiesReportUriItem", + type: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Enum", + allowedValues: ["custom", "system", "external"], + }, }, - allowedSources: { - serializedName: "allowedSources", - xmlName: "allowedSources", - xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionCollection: coreClient.CompositeMapper = { - serializedName: "PortalRevisionCollection", +export const UserCollection: coreClient.CompositeMapper = { + serializedName: "UserCollection", type: { name: "Composite", - className: "PortalRevisionCollection", + className: "UserCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "PortalRevisionContract", + xmlElementName: "UserContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalRevisionContract" - } - } - } + className: "UserContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalSettingsCollection: coreClient.CompositeMapper = { - serializedName: "PortalSettingsCollection", +export const UserEntityBaseParameters: coreClient.CompositeMapper = { + serializedName: "UserEntityBaseParameters", type: { name: "Composite", - className: "PortalSettingsCollection", + className: "UserEntityBaseParameters", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "PortalSettingsContract", + state: { + defaultValue: "active", + serializedName: "state", + xmlName: "state", 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" - } - } - } - } -}; - -export const TermsOfServiceProperties: coreClient.CompositeMapper = { - serializedName: "TermsOfServiceProperties", - type: { - name: "Composite", - className: "TermsOfServiceProperties", - modelProperties: { - text: { - serializedName: "text", - xmlName: "text", - type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "enabled", - xmlName: "enabled", + note: { + serializedName: "note", + xmlName: "note", type: { - name: "Boolean" - } + name: "String", + }, }, - consentRequired: { - serializedName: "consentRequired", - xmlName: "consentRequired", - type: { - name: "Boolean" - } - } - } - } -}; - -export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingValidationKeyContract", - type: { - name: "Composite", - className: "PortalSettingValidationKeyContract", - modelProperties: { - validationKey: { - serializedName: "validationKey", - xmlName: "validationKey", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "PrivateEndpointConnection", + identities: { + serializedName: "identities", + xmlName: "identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } + className: "UserIdentityContract", + }, + }, + }, + }, + }, + }, }; -export const PrivateEndpoint: coreClient.CompositeMapper = { - serializedName: "PrivateEndpoint", +export const UserIdentityContract: coreClient.CompositeMapper = { + serializedName: "UserIdentityContract", type: { name: "Composite", - className: "PrivateEndpoint", + className: "UserIdentityContract", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", + provider: { + serializedName: "provider", + xmlName: "provider", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequest", - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequest", - modelProperties: { + name: "String", + }, + }, id: { serializedName: "id", xmlName: "id", type: { - name: "String" - } + name: "String", + }, }, - properties: { - serializedName: "properties", - xmlName: "properties", - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestProperties" - } - } - } - } -}; - -export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequestProperties", - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestProperties", - modelProperties: { - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - xmlName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + }, + }, }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const IdentityProviderList: coreClient.CompositeMapper = { + serializedName: "IdentityProviderList", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "IdentityProviderList", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "PrivateLinkResource", + xmlElementName: "IdentityProviderContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "IdentityProviderContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const ProductUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ProductUpdateParameters", +export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { + serializedName: "IdentityProviderBaseParameters", type: { name: "Composite", - className: "ProductUpdateParameters", + className: "IdentityProviderBaseParameters", modelProperties: { - description: { + type: { + serializedName: "type", + xmlName: "type", + type: { + name: "String", + }, + }, + signinTenant: { + serializedName: "signinTenant", + xmlName: "signinTenant", + type: { + name: "String", + }, + }, + allowedTenants: { constraints: { - MaxLength: 1000 + MaxItems: 32, }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "allowedTenants", + xmlName: "allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + authority: { + serializedName: "authority", + xmlName: "authority", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "signupPolicyName", + xmlName: "signupPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "signinPolicyName", + xmlName: "signinPolicyName", type: { - name: "Boolean" - } + name: "String", + }, }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "profileEditingPolicyName", + xmlName: "profileEditingPolicyName", type: { - name: "Number" - } + name: "String", + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "passwordResetPolicyName", + xmlName: "passwordResetPolicyName", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] - } + name: "String", + }, }, - displayName: { + clientLibrary: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 16, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "clientLibrary", + xmlName: "clientLibrary", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubscriptionCollection: coreClient.CompositeMapper = { - serializedName: "SubscriptionCollection", +export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateParameters", type: { name: "Composite", - className: "SubscriptionCollection", + className: "IdentityProviderUpdateParameters", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "SubscriptionContract", + type: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", + type: { + name: "String", + }, + }, + allowedTenants: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SubscriptionContract" - } - } - } + name: "String", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "Number" - } + name: "String", + }, }, - 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", + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaCounterContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const QuotaCounterContract: coreClient.CompositeMapper = { - serializedName: "QuotaCounterContract", - type: { - name: "Composite", - className: "QuotaCounterContract", - modelProperties: { - counterKey: { + profileEditingPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, - serializedName: "counterKey", - required: true, - xmlName: "counterKey", + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, - periodKey: { + passwordResetPolicyName: { constraints: { - MinLength: 1 + MinLength: 1, }, - serializedName: "periodKey", - required: true, - xmlName: "periodKey", + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, - periodStartTime: { - serializedName: "periodStartTime", - required: true, - xmlName: "periodStartTime", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "DateTime" - } + name: "String", + }, }, - periodEndTime: { - serializedName: "periodEndTime", - required: true, - xmlName: "periodEndTime", + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "DateTime" - } + name: "String", + }, }, - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "Composite", - className: "QuotaCounterValueContractProperties" - } - } - } - } -}; - -export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { - serializedName: "QuotaCounterValueContractProperties", - type: { - name: "Composite", - className: "QuotaCounterValueContractProperties", - modelProperties: { - callsCount: { - serializedName: "callsCount", - xmlName: "callsCount", + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "Number" - } + name: "String", + }, }, - kbTransferred: { - serializedName: "kbTransferred", - xmlName: "kbTransferred", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { - serializedName: "QuotaCounterValueUpdateContract", +export const ClientSecretContract: coreClient.CompositeMapper = { + serializedName: "ClientSecretContract", type: { name: "Composite", - className: "QuotaCounterValueUpdateContract", + className: "ClientSecretContract", modelProperties: { - callsCount: { - serializedName: "properties.callsCount", - xmlName: "properties.callsCount", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Number" - } + name: "String", + }, }, - kbTransferred: { - serializedName: "properties.kbTransferred", - xmlName: "properties.kbTransferred", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const RegionListResult: coreClient.CompositeMapper = { - serializedName: "RegionListResult", +export const LoggerCollection: coreClient.CompositeMapper = { + serializedName: "LoggerCollection", type: { name: "Composite", - className: "RegionListResult", + className: "LoggerCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "RegionContract", + xmlElementName: "LoggerContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegionContract" - } - } - } + className: "LoggerContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RegionContract: coreClient.CompositeMapper = { - serializedName: "RegionContract", +export const LoggerUpdateContract: coreClient.CompositeMapper = { + serializedName: "LoggerUpdateContract", type: { name: "Composite", - className: "RegionContract", + className: "LoggerUpdateContract", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { - name: "String" - } + name: "String", + }, }, - isMasterRegion: { - serializedName: "isMasterRegion", - xmlName: "isMasterRegion", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Boolean" - } + name: "String", + }, }, - isDeleted: { - serializedName: "isDeleted", - xmlName: "isDeleted", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const ReportCollection: coreClient.CompositeMapper = { - serializedName: "ReportCollection", +export const NamedValueCollection: coreClient.CompositeMapper = { + serializedName: "NamedValueCollection", type: { name: "Composite", - className: "ReportCollection", + className: "NamedValueCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "ReportRecordContract", + xmlElementName: "NamedValueContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ReportRecordContract" - } - } - } + className: "NamedValueContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ReportRecordContract: coreClient.CompositeMapper = { - serializedName: "ReportRecordContract", +export const NamedValueEntityBaseParameters: coreClient.CompositeMapper = { + serializedName: "NamedValueEntityBaseParameters", type: { name: "Composite", - className: "ReportRecordContract", + className: "NamedValueEntityBaseParameters", modelProperties: { - name: { - serializedName: "name", - xmlName: "name", - type: { - name: "String" - } - }, - timestamp: { - serializedName: "timestamp", - xmlName: "timestamp", + tags: { + constraints: { + MaxItems: 32, + }, + serializedName: "tags", + xmlName: "tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - interval: { - serializedName: "interval", - xmlName: "interval", + secret: { + serializedName: "secret", + xmlName: "secret", type: { - name: "String" - } + name: "Boolean", + }, }, - country: { - serializedName: "country", - xmlName: "country", + }, + }, +}; + +export const NamedValueUpdateParameters: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameters", + type: { + name: "Composite", + className: "NamedValueUpdateParameters", + modelProperties: { + tags: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - region: { - serializedName: "region", - xmlName: "region", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "String" - } + name: "Boolean", + }, }, - zip: { - serializedName: "zip", - xmlName: "zip", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - userId: { - serializedName: "userId", - readOnly: true, - xmlName: "userId", + value: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - productId: { - serializedName: "productId", - readOnly: true, - xmlName: "productId", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - apiId: { - serializedName: "apiId", - xmlName: "apiId", + }, + }, +}; + +export const NamedValueSecretContract: coreClient.CompositeMapper = { + serializedName: "NamedValueSecretContract", + type: { + name: "Composite", + className: "NamedValueSecretContract", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - operationId: { - serializedName: "operationId", - xmlName: "operationId", + }, + }, +}; + +export const NetworkStatusContractByLocation: coreClient.CompositeMapper = { + serializedName: "NetworkStatusContractByLocation", + type: { + name: "Composite", + className: "NetworkStatusContractByLocation", + modelProperties: { + location: { + constraints: { + MinLength: 1, + }, + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - apiRegion: { - serializedName: "apiRegion", - xmlName: "apiRegion", + networkStatus: { + serializedName: "networkStatus", + xmlName: "networkStatus", type: { - name: "String" - } + name: "Composite", + className: "NetworkStatusContract", + }, }, - subscriptionId: { - serializedName: "subscriptionId", - xmlName: "subscriptionId", + }, + }, +}; + +export const NetworkStatusContract: coreClient.CompositeMapper = { + serializedName: "NetworkStatusContract", + type: { + name: "Composite", + className: "NetworkStatusContract", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + required: true, + xmlName: "dnsServers", + xmlElementName: "NetworkStatusContractDnsServersItem", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - callCountSuccess: { - serializedName: "callCountSuccess", - xmlName: "callCountSuccess", + connectivityStatus: { + serializedName: "connectivityStatus", + required: true, + xmlName: "connectivityStatus", + xmlElementName: "ConnectivityStatusContract", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityStatusContract", + }, + }, + }, }, - callCountBlocked: { - serializedName: "callCountBlocked", - xmlName: "callCountBlocked", + }, + }, +}; + +export const ConnectivityStatusContract: coreClient.CompositeMapper = { + serializedName: "ConnectivityStatusContract", + type: { + name: "Composite", + className: "ConnectivityStatusContract", + modelProperties: { + name: { + constraints: { + MinLength: 1, + }, + serializedName: "name", + required: true, + xmlName: "name", type: { - name: "Number" - } + name: "String", + }, }, - callCountFailed: { - serializedName: "callCountFailed", - xmlName: "callCountFailed", + status: { + serializedName: "status", + required: true, + xmlName: "status", type: { - name: "Number" - } + name: "String", + }, }, - callCountOther: { - serializedName: "callCountOther", - xmlName: "callCountOther", + error: { + serializedName: "error", + xmlName: "error", type: { - name: "Number" - } + name: "String", + }, }, - callCountTotal: { - serializedName: "callCountTotal", - xmlName: "callCountTotal", + lastUpdated: { + serializedName: "lastUpdated", + required: true, + xmlName: "lastUpdated", type: { - name: "Number" - } + name: "DateTime", + }, }, - bandwidth: { - serializedName: "bandwidth", - xmlName: "bandwidth", + lastStatusChange: { + serializedName: "lastStatusChange", + required: true, + xmlName: "lastStatusChange", type: { - name: "Number" - } + name: "DateTime", + }, }, - cacheHitCount: { - serializedName: "cacheHitCount", - xmlName: "cacheHitCount", + resourceType: { + serializedName: "resourceType", + required: true, + xmlName: "resourceType", type: { - name: "Number" - } + name: "String", + }, }, - cacheMissCount: { - serializedName: "cacheMissCount", - xmlName: "cacheMissCount", + isOptional: { + serializedName: "isOptional", + required: true, + xmlName: "isOptional", type: { - name: "Number" - } + name: "Boolean", + }, }, - apiTimeAvg: { - serializedName: "apiTimeAvg", - xmlName: "apiTimeAvg", + }, + }, +}; + +export const NotificationCollection: coreClient.CompositeMapper = { + serializedName: "NotificationCollection", + type: { + name: "Composite", + className: "NotificationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "NotificationContract", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationContract", + }, + }, + }, }, - apiTimeMin: { - serializedName: "apiTimeMin", - xmlName: "apiTimeMin", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, - apiTimeMax: { - serializedName: "apiTimeMax", - xmlName: "apiTimeMax", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Number" - } + name: "String", + }, }, - serviceTimeAvg: { - serializedName: "serviceTimeAvg", - xmlName: "serviceTimeAvg", + }, + }, +}; + +export const RecipientsContractProperties: coreClient.CompositeMapper = { + serializedName: "RecipientsContractProperties", + type: { + name: "Composite", + className: "RecipientsContractProperties", + modelProperties: { + emails: { + serializedName: "emails", + xmlName: "emails", + xmlElementName: "RecipientsContractPropertiesEmailsItem", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - serviceTimeMin: { - serializedName: "serviceTimeMin", - xmlName: "serviceTimeMin", + users: { + serializedName: "users", + xmlName: "users", + xmlElementName: "RecipientsContractPropertiesUsersItem", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - serviceTimeMax: { - serializedName: "serviceTimeMax", - xmlName: "serviceTimeMax", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const RequestReportCollection: coreClient.CompositeMapper = { - serializedName: "RequestReportCollection", +export const RecipientUserCollection: coreClient.CompositeMapper = { + serializedName: "RecipientUserCollection", type: { name: "Composite", - className: "RequestReportCollection", + className: "RecipientUserCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "RequestReportRecordContract", + xmlElementName: "RecipientUserContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RequestReportRecordContract" - } - } - } + className: "RecipientUserContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const RequestReportRecordContract: coreClient.CompositeMapper = { - serializedName: "RequestReportRecordContract", +export const RecipientEmailCollection: coreClient.CompositeMapper = { + serializedName: "RecipientEmailCollection", type: { name: "Composite", - className: "RequestReportRecordContract", + className: "RecipientEmailCollection", modelProperties: { - apiId: { - serializedName: "apiId", - xmlName: "apiId", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "RecipientEmailContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecipientEmailContract", + }, + }, + }, }, - operationId: { - serializedName: "operationId", - xmlName: "operationId", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - productId: { - serializedName: "productId", - readOnly: true, - xmlName: "productId", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - userId: { - serializedName: "userId", - readOnly: true, - xmlName: "userId", + }, + }, +}; + +export const OpenIdConnectProviderCollection: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProviderCollection", + type: { + name: "Composite", + className: "OpenIdConnectProviderCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "OpenidConnectProviderContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenidConnectProviderContract", + }, + }, + }, }, - method: { - serializedName: "method", - xmlName: "method", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - url: { - serializedName: "url", - xmlName: "url", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - ipAddress: { - serializedName: "ipAddress", - xmlName: "ipAddress", + }, + }, +}; + +export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderUpdateContract", + type: { + name: "Composite", + className: "OpenidConnectProviderUpdateContract", + modelProperties: { + displayName: { + constraints: { + MaxLength: 50, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - backendResponseCode: { - serializedName: "backendResponseCode", - xmlName: "backendResponseCode", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - responseCode: { - serializedName: "responseCode", - xmlName: "responseCode", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { - name: "Number" - } + name: "String", + }, }, - responseSize: { - serializedName: "responseSize", - xmlName: "responseSize", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Number" - } + name: "String", + }, }, - timestamp: { - serializedName: "timestamp", - xmlName: "timestamp", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "DateTime" - } + name: "String", + }, }, - cache: { - serializedName: "cache", - xmlName: "cache", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "String" - } + name: "Boolean", + }, }, - apiTime: { - serializedName: "apiTime", - xmlName: "apiTime", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "Number" - } + name: "Boolean", + }, }, - serviceTime: { - serializedName: "serviceTime", - xmlName: "serviceTime", + }, + }, +}; + +export const OutboundEnvironmentEndpointList: coreClient.CompositeMapper = { + serializedName: "OutboundEnvironmentEndpointList", + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointList", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "OutboundEnvironmentEndpoint", type: { - name: "Number" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, }, - apiRegion: { - serializedName: "apiRegion", - xmlName: "apiRegion", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - subscriptionId: { - serializedName: "subscriptionId", - xmlName: "subscriptionId", + }, + }, +}; + +export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { + serializedName: "OutboundEnvironmentEndpoint", + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + modelProperties: { + category: { + serializedName: "category", + xmlName: "category", type: { - name: "String" - } + name: "String", + }, }, - requestId: { - serializedName: "requestId", - xmlName: "requestId", + endpoints: { + serializedName: "endpoints", + xmlName: "endpoints", + xmlElementName: "EndpointDependency", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EndpointDependency", + }, + }, + }, }, - requestSize: { - serializedName: "requestSize", - xmlName: "requestSize", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const GlobalSchemaCollection: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaCollection", +export const EndpointDependency: coreClient.CompositeMapper = { + serializedName: "EndpointDependency", type: { name: "Composite", - className: "GlobalSchemaCollection", + className: "EndpointDependency", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "GlobalSchemaContract", + domainName: { + serializedName: "domainName", + xmlName: "domainName", + type: { + name: "String", + }, + }, + endpointDetails: { + serializedName: "endpointDetails", + xmlName: "endpointDetails", + xmlElementName: "EndpointDetail", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GlobalSchemaContract" - } - } - } + className: "EndpointDetail", + }, + }, + }, }, - count: { - serializedName: "count", - xmlName: "count", + }, + }, +}; + +export const EndpointDetail: coreClient.CompositeMapper = { + serializedName: "EndpointDetail", + type: { + name: "Composite", + className: "EndpointDetail", + modelProperties: { + port: { + serializedName: "port", + xmlName: "port", type: { - name: "Number" - } + name: "Number", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + region: { + serializedName: "region", + xmlName: "region", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantSettingsCollection: coreClient.CompositeMapper = { - serializedName: "TenantSettingsCollection", +export const PolicyDescriptionCollection: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionCollection", type: { name: "Composite", - className: "TenantSettingsCollection", + className: "PolicyDescriptionCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "TenantSettingsContract", + xmlElementName: "PolicyDescriptionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TenantSettingsContract" - } - } - } + className: "PolicyDescriptionContract", + }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const ApiManagementSkusResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkusResult", +export const PolicyFragmentCollection: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentCollection", type: { name: "Composite", - className: "ApiManagementSkusResult", + className: "PolicyFragmentCollection", modelProperties: { value: { serializedName: "value", - required: true, xmlName: "value", - xmlElementName: "ApiManagementSku", + xmlElementName: "PolicyFragmentContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiManagementSku" - } - } - } + className: "PolicyFragmentContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementSku: coreClient.CompositeMapper = { - serializedName: "ApiManagementSku", +export const ResourceCollection: coreClient.CompositeMapper = { + serializedName: "ResourceCollection", type: { name: "Composite", - className: "ApiManagementSku", + className: "ResourceCollection", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - xmlName: "resourceType", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - readOnly: true, - xmlName: "tier", - type: { - name: "String" - } - }, - size: { - serializedName: "size", - readOnly: true, - xmlName: "size", - type: { - name: "String" - } - }, - family: { - serializedName: "family", - readOnly: true, - xmlName: "family", - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - readOnly: true, - xmlName: "kind", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - xmlName: "capacity", - type: { - name: "Composite", - className: "ApiManagementSkuCapacity" - } - }, - locations: { - serializedName: "locations", - readOnly: true, - xmlName: "locations", - xmlElementName: "ApiManagementSkuLocationsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - locationInfo: { - serializedName: "locationInfo", - readOnly: true, - xmlName: "locationInfo", - xmlElementName: "ApiManagementSkuLocationInfo", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ResourceCollectionValueItem", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiManagementSkuLocationInfo" - } - } - } + className: "ResourceCollectionValueItem", + }, + }, + }, }, - apiVersions: { - serializedName: "apiVersions", - readOnly: true, - xmlName: "apiVersions", - xmlElementName: "ApiManagementSkuApiVersionsItem", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Number", + }, }, - costs: { - serializedName: "costs", - readOnly: true, - xmlName: "costs", - xmlElementName: "ApiManagementSkuCosts", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiManagementSkuCosts" - } - } - } + name: "String", + }, }, - capabilities: { - serializedName: "capabilities", - readOnly: true, - xmlName: "capabilities", - xmlElementName: "ApiManagementSkuCapabilities", + }, + }, +}; + +export const PolicyRestrictionCollection: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionCollection", + type: { + name: "Composite", + className: "PolicyRestrictionCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyRestrictionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } + className: "PolicyRestrictionContract", + }, + }, + }, }, - restrictions: { - serializedName: "restrictions", - readOnly: true, - xmlName: "restrictions", - xmlElementName: "ApiManagementSkuRestrictions", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiManagementSkuRestrictions" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuCapacity", +export const PolicyRestrictionUpdateContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionUpdateContract", type: { name: "Composite", - className: "ApiManagementSkuCapacity", + className: "PolicyRestrictionUpdateContract", modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, - xmlName: "minimum", - type: { - name: "Number" - } - }, - maximum: { - serializedName: "maximum", - readOnly: true, - xmlName: "maximum", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "Number" - } + name: "String", + }, }, - default: { - serializedName: "default", - readOnly: true, - xmlName: "default", + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", type: { - name: "Number" - } + name: "String", + }, }, - scaleType: { - serializedName: "scaleType", - readOnly: true, - xmlName: "scaleType", - type: { - name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + }, + }, }; -export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuLocationInfo", +export const ErrorResponseBody: coreClient.CompositeMapper = { + serializedName: "ErrorResponseBody", type: { name: "Composite", - className: "ApiManagementSkuLocationInfo", + className: "ErrorResponseBody", modelProperties: { - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", + code: { + serializedName: "code", + xmlName: "code", type: { - name: "String" - } + name: "String", + }, }, - zones: { - serializedName: "zones", - readOnly: true, - xmlName: "zones", - xmlElementName: "ApiManagementSkuLocationInfoZonesItem", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - zoneDetails: { - serializedName: "zoneDetails", - readOnly: true, - xmlName: "zoneDetails", - xmlElementName: "ApiManagementSkuZoneDetails", + details: { + serializedName: "details", + xmlName: "details", + xmlElementName: "ErrorFieldContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiManagementSkuZoneDetails" - } - } - } - } - } - } + className: "ErrorFieldContract", + }, + }, + }, + }, + }, + }, }; -export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuZoneDetails", +export const ErrorFieldContract: coreClient.CompositeMapper = { + serializedName: "ErrorFieldContract", type: { name: "Composite", - className: "ApiManagementSkuZoneDetails", + className: "ErrorFieldContract", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - xmlElementName: "ApiManagementSkuZoneDetailsNameItem", + code: { + serializedName: "code", + xmlName: "code", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - capabilities: { - serializedName: "capabilities", - readOnly: true, - xmlName: "capabilities", - xmlElementName: "ApiManagementSkuCapabilities", + message: { + serializedName: "message", + xmlName: "message", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiManagementSkuCapabilities" - } - } - } - } - } - } + name: "String", + }, + }, + target: { + serializedName: "target", + xmlName: "target", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuCapabilities", +export const OperationResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "OperationResultLogItemContract", type: { name: "Composite", - className: "ApiManagementSkuCapabilities", + className: "OperationResultLogItemContract", modelProperties: { - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", + objectType: { + serializedName: "objectType", + xmlName: "objectType", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", + action: { + serializedName: "action", + xmlName: "action", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiManagementSkuCosts: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuCosts", +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", type: { name: "Composite", - className: "ApiManagementSkuCosts", + className: "PortalConfigCollection", modelProperties: { - meterID: { - serializedName: "meterID", - readOnly: true, - xmlName: "meterID", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalConfigContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalConfigContract", + }, + }, + }, }, - quantity: { - serializedName: "quantity", + nextLink: { + serializedName: "nextLink", readOnly: true, - xmlName: "quantity", + xmlName: "nextLink", type: { - name: "Number" - } + name: "String", + }, }, - extendedUnit: { - serializedName: "extendedUnit", - readOnly: true, - xmlName: "extendedUnit", + }, + }, +}; + +export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin", + modelProperties: { + require: { + defaultValue: false, + serializedName: "require", + xmlName: "require", type: { - name: "String" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuRestrictions", +export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignup", type: { name: "Composite", - className: "ApiManagementSkuRestrictions", + className: "PortalConfigPropertiesSignup", modelProperties: { - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", + termsOfService: { + serializedName: "termsOfService", + xmlName: "termsOfService", type: { - name: "Enum", - allowedValues: ["Location", "Zone"] - } + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + }, }, - values: { - serializedName: "values", - readOnly: true, - xmlName: "values", - xmlElementName: "ApiManagementSkuRestrictionsValuesItem", + }, + }, +}; + +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: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - restrictionInfo: { - serializedName: "restrictionInfo", - xmlName: "restrictionInfo", + delegateSubscription: { + defaultValue: false, + serializedName: "delegateSubscription", + xmlName: "delegateSubscription", type: { - name: "Composite", - className: "ApiManagementSkuRestrictionInfo" - } + name: "Boolean", + }, }, - reasonCode: { - serializedName: "reasonCode", - readOnly: true, - xmlName: "reasonCode", + delegationUrl: { + serializedName: "delegationUrl", + xmlName: "delegationUrl", type: { - name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + name: "String", + }, + }, + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkuRestrictionInfo", +export const PortalConfigCorsProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCorsProperties", type: { name: "Composite", - className: "ApiManagementSkuRestrictionInfo", + className: "PortalConfigCorsProperties", modelProperties: { - locations: { - serializedName: "locations", - readOnly: true, - xmlName: "locations", - xmlElementName: "ApiManagementSkuRestrictionInfoLocationsItem", + allowedOrigins: { + serializedName: "allowedOrigins", + xmlName: "allowedOrigins", + xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - zones: { - serializedName: "zones", - readOnly: true, - xmlName: "zones", - xmlElementName: "ApiManagementSkuRestrictionInfoZonesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } + }, + }, }; -export const SubscriptionCreateParameters: coreClient.CompositeMapper = { - serializedName: "SubscriptionCreateParameters", +export const PortalConfigCspProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCspProperties", type: { name: "Composite", - className: "SubscriptionCreateParameters", + className: "PortalConfigCspProperties", modelProperties: { - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", + mode: { + defaultValue: "disabled", + serializedName: "mode", + xmlName: "mode", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + reportUri: { + serializedName: "reportUri", + xmlName: "reportUri", + xmlElementName: "PortalConfigCspPropertiesReportUriItem", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + allowedSources: { + serializedName: "allowedSources", + xmlName: "allowedSources", + xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", type: { - name: "String" - } - }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", - type: { - name: "String" - } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + }, + }, +}; + +export const PortalRevisionCollection: coreClient.CompositeMapper = { + serializedName: "PortalRevisionCollection", + type: { + name: "Composite", + className: "PortalRevisionCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "PortalRevisionContract", type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalRevisionContract", + }, + }, + }, }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { - serializedName: "SubscriptionUpdateParameters", +export const PortalSettingsCollection: coreClient.CompositeMapper = { + serializedName: "PortalSettingsCollection", type: { name: "Composite", - className: "SubscriptionUpdateParameters", + className: "PortalSettingsCollection", modelProperties: { - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalSettingsContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalSettingsContract", + }, + }, + }, }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", - type: { - name: "DateTime" - } + }, + }, +}; + +export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "SubscriptionsDelegationSettingsProperties", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, }, - displayName: { - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } + }, + }; + +export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = + { + serializedName: "RegistrationDelegationSettingsProperties", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + }, + }; + +export const TermsOfServiceProperties: coreClient.CompositeMapper = { + serializedName: "TermsOfServiceProperties", + type: { + name: "Composite", + className: "TermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", type: { - name: "String" - } + name: "String", + }, }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + }, + consentRequired: { + serializedName: "consentRequired", + xmlName: "consentRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + }, + }, +}; + +export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingValidationKeyContract", + type: { + name: "Composite", + className: "PortalSettingValidationKeyContract", + modelProperties: { + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } + name: "String", + }, }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + }, + }, +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PrivateEndpointConnection", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", + }, + }, +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SubscriptionKeysContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionKeysContract", +export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnectionRequest", type: { name: "Composite", - className: "SubscriptionKeysContract", + className: "PrivateEndpointConnectionRequest", modelProperties: { - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", }, - serializedName: "primaryKey", - xmlName: "primaryKey", + }, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" - } + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties", + }, }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + }, + }, +}; + +export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnectionRequestProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties", + modelProperties: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + xmlName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, }, - serializedName: "secondaryKey", - xmlName: "secondaryKey", + }, + }, + }; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PrivateLinkResource", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; -export const TagCreateUpdateParameters: coreClient.CompositeMapper = { - serializedName: "TagCreateUpdateParameters", +export const ProductUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ProductUpdateParameters", type: { name: "Composite", - className: "TagCreateUpdateParameters", + className: "ProductUpdateParameters", modelProperties: { + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", + }, + }, + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", + type: { + name: "String", + }, + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean", + }, + }, + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", + type: { + name: "Boolean", + }, + }, + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", + type: { + name: "Number", + }, + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: ["notPublished", "published"], + }, + }, displayName: { constraints: { - MaxLength: 160, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationCollection: coreClient.CompositeMapper = { - serializedName: "AccessInformationCollection", +export const SubscriptionCollection: coreClient.CompositeMapper = { + serializedName: "SubscriptionCollection", type: { name: "Composite", - className: "AccessInformationCollection", + className: "SubscriptionCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "AccessInformationContract", + xmlElementName: "SubscriptionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AccessInformationContract" - } - } - } + className: "SubscriptionContract", + }, + }, + }, }, count: { serializedName: "count", xmlName: "count", type: { - name: "Number" - } + name: "Number", + }, }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationCreateParameters: coreClient.CompositeMapper = { - serializedName: "AccessInformationCreateParameters", +export const ProductApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkCollection", type: { name: "Composite", - className: "AccessInformationCreateParameters", + className: "ProductApiLinkCollection", modelProperties: { - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductApiLinkContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductApiLinkContract", + }, + }, + }, }, - primaryKey: { - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - secondaryKey: { - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { - serializedName: "AccessInformationUpdateParameters", - type: { - name: "Composite", - className: "AccessInformationUpdateParameters", - modelProperties: { - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const AccessInformationSecretsContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationSecretsContract", +export const ProductGroupLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkCollection", type: { name: "Composite", - className: "AccessInformationSecretsContract", + className: "ProductGroupLinkCollection", modelProperties: { - id: { - serializedName: "id", - xmlName: "id", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductGroupLinkContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductGroupLinkContract", + }, + }, + }, }, - principalId: { - serializedName: "principalId", - xmlName: "principalId", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", - xmlName: "primaryKey", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - secondaryKey: { - serializedName: "secondaryKey", - xmlName: "secondaryKey", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const DeployConfigurationParameters: coreClient.CompositeMapper = { - serializedName: "DeployConfigurationParameters", +export const QuotaCounterCollection: coreClient.CompositeMapper = { + serializedName: "QuotaCounterCollection", type: { name: "Composite", - className: "DeployConfigurationParameters", + className: "QuotaCounterCollection", modelProperties: { - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "QuotaCounterContract", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaCounterContract", + }, + }, + }, }, - force: { - serializedName: "properties.force", - xmlName: "properties.force", + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OperationResultLogItemContract: coreClient.CompositeMapper = { - serializedName: "OperationResultLogItemContract", +export const QuotaCounterContract: coreClient.CompositeMapper = { + serializedName: "QuotaCounterContract", type: { name: "Composite", - className: "OperationResultLogItemContract", + className: "QuotaCounterContract", modelProperties: { - objectType: { - serializedName: "objectType", - xmlName: "objectType", + counterKey: { + constraints: { + MinLength: 1, + }, + serializedName: "counterKey", + required: true, + xmlName: "counterKey", type: { - name: "String" - } + name: "String", + }, }, - action: { - serializedName: "action", - xmlName: "action", + periodKey: { + constraints: { + MinLength: 1, + }, + serializedName: "periodKey", + required: true, + xmlName: "periodKey", type: { - name: "String" - } + name: "String", + }, }, - objectKey: { - serializedName: "objectKey", - xmlName: "objectKey", + periodStartTime: { + serializedName: "periodStartTime", + required: true, + xmlName: "periodStartTime", + type: { + name: "DateTime", + }, + }, + periodEndTime: { + serializedName: "periodEndTime", + required: true, + xmlName: "periodEndTime", + type: { + name: "DateTime", + }, + }, + value: { + serializedName: "value", + xmlName: "value", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "QuotaCounterValueContractProperties", + }, + }, + }, + }, }; -export const SaveConfigurationParameter: coreClient.CompositeMapper = { - serializedName: "SaveConfigurationParameter", +export const QuotaCounterValueContractProperties: coreClient.CompositeMapper = { + serializedName: "QuotaCounterValueContractProperties", type: { name: "Composite", - className: "SaveConfigurationParameter", + className: "QuotaCounterValueContractProperties", modelProperties: { - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + callsCount: { + serializedName: "callsCount", + xmlName: "callsCount", type: { - name: "String" - } + name: "Number", + }, }, - force: { - serializedName: "properties.force", - xmlName: "properties.force", + kbTransferred: { + serializedName: "kbTransferred", + xmlName: "kbTransferred", type: { - name: "Boolean" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const UserCreateParameters: coreClient.CompositeMapper = { - serializedName: "UserCreateParameters", +export const QuotaCounterValueUpdateContract: coreClient.CompositeMapper = { + serializedName: "QuotaCounterValueUpdateContract", type: { name: "Composite", - className: "UserCreateParameters", + className: "QuotaCounterValueUpdateContract", modelProperties: { - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", + callsCount: { + serializedName: "properties.callsCount", + xmlName: "properties.callsCount", type: { - name: "String" - } + name: "Number", + }, }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + kbTransferred: { + serializedName: "properties.kbTransferred", + xmlName: "properties.kbTransferred", type: { - name: "String" - } + name: "Number", + }, }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", + }, + }, +}; + +export const RegionListResult: coreClient.CompositeMapper = { + serializedName: "RegionListResult", + type: { + name: "Composite", + className: "RegionListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "RegionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserIdentityContract" - } - } - } + className: "RegionContract", + }, + }, + }, }, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", }, - serializedName: "properties.email", - xmlName: "properties.email", + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + }, + }, +}; + +export const RegionContract: coreClient.CompositeMapper = { + serializedName: "RegionContract", + type: { + name: "Composite", + className: "RegionContract", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", }, - serializedName: "properties.firstName", - xmlName: "properties.firstName", + }, + isMasterRegion: { + serializedName: "isMasterRegion", + xmlName: "isMasterRegion", type: { - name: "String" - } + name: "Boolean", + }, }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 + isDeleted: { + serializedName: "isDeleted", + xmlName: "isDeleted", + type: { + name: "Boolean", }, - serializedName: "properties.lastName", - xmlName: "properties.lastName", + }, + }, + }, +}; + +export const ReportCollection: coreClient.CompositeMapper = { + serializedName: "ReportCollection", + type: { + name: "Composite", + className: "ReportCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ReportRecordContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportRecordContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", type: { - name: "String" - } + name: "Number", + }, }, - password: { - serializedName: "properties.password", - xmlName: "properties.password", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ReportRecordContract: coreClient.CompositeMapper = { + serializedName: "ReportRecordContract", + type: { + name: "Composite", + className: "ReportRecordContract", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + timestamp: { + serializedName: "timestamp", + xmlName: "timestamp", + type: { + name: "DateTime", + }, + }, + interval: { + serializedName: "interval", + xmlName: "interval", + type: { + name: "String", + }, + }, + country: { + serializedName: "country", + xmlName: "country", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + xmlName: "region", + type: { + name: "String", + }, + }, + zip: { + serializedName: "zip", + xmlName: "zip", + type: { + name: "String", + }, + }, + userId: { + serializedName: "userId", + readOnly: true, + xmlName: "userId", + type: { + name: "String", + }, + }, + productId: { + serializedName: "productId", + readOnly: true, + xmlName: "productId", + type: { + name: "String", + }, + }, + apiId: { + serializedName: "apiId", + xmlName: "apiId", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operationId", + xmlName: "operationId", + type: { + name: "String", + }, + }, + apiRegion: { + serializedName: "apiRegion", + xmlName: "apiRegion", + type: { + name: "String", + }, + }, + subscriptionId: { + serializedName: "subscriptionId", + xmlName: "subscriptionId", + type: { + name: "String", + }, + }, + callCountSuccess: { + serializedName: "callCountSuccess", + xmlName: "callCountSuccess", + type: { + name: "Number", + }, + }, + callCountBlocked: { + serializedName: "callCountBlocked", + xmlName: "callCountBlocked", + type: { + name: "Number", + }, + }, + callCountFailed: { + serializedName: "callCountFailed", + xmlName: "callCountFailed", + type: { + name: "Number", + }, + }, + callCountOther: { + serializedName: "callCountOther", + xmlName: "callCountOther", + type: { + name: "Number", + }, + }, + callCountTotal: { + serializedName: "callCountTotal", + xmlName: "callCountTotal", + type: { + name: "Number", + }, + }, + bandwidth: { + serializedName: "bandwidth", + xmlName: "bandwidth", + type: { + name: "Number", + }, + }, + cacheHitCount: { + serializedName: "cacheHitCount", + xmlName: "cacheHitCount", + type: { + name: "Number", + }, + }, + cacheMissCount: { + serializedName: "cacheMissCount", + xmlName: "cacheMissCount", + type: { + name: "Number", + }, + }, + apiTimeAvg: { + serializedName: "apiTimeAvg", + xmlName: "apiTimeAvg", + type: { + name: "Number", + }, + }, + apiTimeMin: { + serializedName: "apiTimeMin", + xmlName: "apiTimeMin", + type: { + name: "Number", + }, + }, + apiTimeMax: { + serializedName: "apiTimeMax", + xmlName: "apiTimeMax", + type: { + name: "Number", + }, + }, + serviceTimeAvg: { + serializedName: "serviceTimeAvg", + xmlName: "serviceTimeAvg", + type: { + name: "Number", + }, + }, + serviceTimeMin: { + serializedName: "serviceTimeMin", + xmlName: "serviceTimeMin", + type: { + name: "Number", + }, + }, + serviceTimeMax: { + serializedName: "serviceTimeMax", + xmlName: "serviceTimeMax", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const RequestReportCollection: coreClient.CompositeMapper = { + serializedName: "RequestReportCollection", + type: { + name: "Composite", + className: "RequestReportCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "RequestReportRecordContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RequestReportRecordContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const RequestReportRecordContract: coreClient.CompositeMapper = { + serializedName: "RequestReportRecordContract", + type: { + name: "Composite", + className: "RequestReportRecordContract", + modelProperties: { + apiId: { + serializedName: "apiId", + xmlName: "apiId", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operationId", + xmlName: "operationId", + type: { + name: "String", + }, + }, + productId: { + serializedName: "productId", + readOnly: true, + xmlName: "productId", + type: { + name: "String", + }, + }, + userId: { + serializedName: "userId", + readOnly: true, + xmlName: "userId", + type: { + name: "String", + }, + }, + method: { + serializedName: "method", + xmlName: "method", + type: { + name: "String", + }, + }, + url: { + serializedName: "url", + xmlName: "url", + type: { + name: "String", + }, + }, + ipAddress: { + serializedName: "ipAddress", + xmlName: "ipAddress", + type: { + name: "String", + }, + }, + backendResponseCode: { + serializedName: "backendResponseCode", + xmlName: "backendResponseCode", + type: { + name: "String", + }, + }, + responseCode: { + serializedName: "responseCode", + xmlName: "responseCode", + type: { + name: "Number", + }, + }, + responseSize: { + serializedName: "responseSize", + xmlName: "responseSize", + type: { + name: "Number", + }, + }, + timestamp: { + serializedName: "timestamp", + xmlName: "timestamp", + type: { + name: "DateTime", + }, + }, + cache: { + serializedName: "cache", + xmlName: "cache", + type: { + name: "String", + }, + }, + apiTime: { + serializedName: "apiTime", + xmlName: "apiTime", + type: { + name: "Number", + }, + }, + serviceTime: { + serializedName: "serviceTime", + xmlName: "serviceTime", + type: { + name: "Number", + }, + }, + apiRegion: { + serializedName: "apiRegion", + xmlName: "apiRegion", + type: { + name: "String", + }, + }, + subscriptionId: { + serializedName: "subscriptionId", + xmlName: "subscriptionId", + type: { + name: "String", + }, + }, + requestId: { + serializedName: "requestId", + xmlName: "requestId", + type: { + name: "String", + }, + }, + requestSize: { + serializedName: "requestSize", + xmlName: "requestSize", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const GlobalSchemaCollection: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaCollection", + type: { + name: "Composite", + className: "GlobalSchemaCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "GlobalSchemaContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GlobalSchemaContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TenantSettingsCollection: coreClient.CompositeMapper = { + serializedName: "TenantSettingsCollection", + type: { + name: "Composite", + className: "TenantSettingsCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "TenantSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TenantSettingsContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementSkusResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkusResult", + type: { + name: "Composite", + className: "ApiManagementSkusResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementSku", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSku", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementSku: coreClient.CompositeMapper = { + serializedName: "ApiManagementSku", + type: { + name: "Composite", + className: "ApiManagementSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + readOnly: true, + xmlName: "resourceType", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", + }, + }, + tier: { + serializedName: "tier", + readOnly: true, + xmlName: "tier", + type: { + name: "String", + }, + }, + size: { + serializedName: "size", + readOnly: true, + xmlName: "size", + type: { + name: "String", + }, + }, + family: { + serializedName: "family", + readOnly: true, + xmlName: "family", + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + readOnly: true, + xmlName: "kind", + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + xmlName: "capacity", + type: { + name: "Composite", + className: "ApiManagementSkuCapacity", + }, + }, + locations: { + serializedName: "locations", + readOnly: true, + xmlName: "locations", + xmlElementName: "ApiManagementSkuLocationsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + locationInfo: { + serializedName: "locationInfo", + readOnly: true, + xmlName: "locationInfo", + xmlElementName: "ApiManagementSkuLocationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuLocationInfo", + }, + }, + }, + }, + apiVersions: { + serializedName: "apiVersions", + readOnly: true, + xmlName: "apiVersions", + xmlElementName: "ApiManagementSkuApiVersionsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + costs: { + serializedName: "costs", + readOnly: true, + xmlName: "costs", + xmlElementName: "ApiManagementSkuCosts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuCosts", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + xmlName: "capabilities", + xmlElementName: "ApiManagementSkuCapabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuCapabilities", + }, + }, + }, + }, + restrictions: { + serializedName: "restrictions", + readOnly: true, + xmlName: "restrictions", + xmlElementName: "ApiManagementSkuRestrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuRestrictions", + }, + }, + }, + }, + }, + }, +}; + +export const ApiManagementSkuCapacity: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuCapacity", + type: { + name: "Composite", + className: "ApiManagementSkuCapacity", + modelProperties: { + minimum: { + serializedName: "minimum", + readOnly: true, + xmlName: "minimum", + type: { + name: "Number", + }, + }, + maximum: { + serializedName: "maximum", + readOnly: true, + xmlName: "maximum", + type: { + name: "Number", + }, + }, + default: { + serializedName: "default", + readOnly: true, + xmlName: "default", + type: { + name: "Number", + }, + }, + scaleType: { + serializedName: "scaleType", + readOnly: true, + xmlName: "scaleType", + type: { + name: "Enum", + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, +}; + +export const ApiManagementSkuLocationInfo: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuLocationInfo", + type: { + name: "Composite", + className: "ApiManagementSkuLocationInfo", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + readOnly: true, + xmlName: "zones", + xmlElementName: "ApiManagementSkuLocationInfoZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + zoneDetails: { + serializedName: "zoneDetails", + readOnly: true, + xmlName: "zoneDetails", + xmlElementName: "ApiManagementSkuZoneDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuZoneDetails", + }, + }, + }, + }, + }, + }, +}; + +export const ApiManagementSkuZoneDetails: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuZoneDetails", + type: { + name: "Composite", + className: "ApiManagementSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + xmlElementName: "ApiManagementSkuZoneDetailsNameItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + xmlName: "capabilities", + xmlElementName: "ApiManagementSkuCapabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementSkuCapabilities", + }, + }, + }, + }, + }, + }, +}; + +export const ApiManagementSkuCapabilities: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuCapabilities", + type: { + name: "Composite", + className: "ApiManagementSkuCapabilities", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementSkuCosts: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuCosts", + type: { + name: "Composite", + className: "ApiManagementSkuCosts", + modelProperties: { + meterID: { + serializedName: "meterID", + readOnly: true, + xmlName: "meterID", + type: { + name: "String", + }, + }, + quantity: { + serializedName: "quantity", + readOnly: true, + xmlName: "quantity", + type: { + name: "Number", + }, + }, + extendedUnit: { + serializedName: "extendedUnit", + readOnly: true, + xmlName: "extendedUnit", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementSkuRestrictions: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuRestrictions", + type: { + name: "Composite", + className: "ApiManagementSkuRestrictions", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "Enum", + allowedValues: ["Location", "Zone"], + }, + }, + values: { + serializedName: "values", + readOnly: true, + xmlName: "values", + xmlElementName: "ApiManagementSkuRestrictionsValuesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + restrictionInfo: { + serializedName: "restrictionInfo", + xmlName: "restrictionInfo", + type: { + name: "Composite", + className: "ApiManagementSkuRestrictionInfo", + }, + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + xmlName: "reasonCode", + type: { + name: "Enum", + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, +}; + +export const ApiManagementSkuRestrictionInfo: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkuRestrictionInfo", + type: { + name: "Composite", + className: "ApiManagementSkuRestrictionInfo", + modelProperties: { + locations: { + serializedName: "locations", + readOnly: true, + xmlName: "locations", + xmlElementName: "ApiManagementSkuRestrictionInfoLocationsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + zones: { + serializedName: "zones", + readOnly: true, + xmlName: "zones", + xmlElementName: "ApiManagementSkuRestrictionInfoZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const SubscriptionCreateParameters: coreClient.CompositeMapper = { + serializedName: "SubscriptionCreateParameters", + type: { + name: "Composite", + className: "SubscriptionCreateParameters", + 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, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + 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", + }, + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled", + ], + }, + }, + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const SubscriptionUpdateParameters: coreClient.CompositeMapper = { + serializedName: "SubscriptionUpdateParameters", + type: { + name: "Composite", + className: "SubscriptionUpdateParameters", + modelProperties: { + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", + type: { + name: "String", + }, + }, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", + type: { + name: "String", + }, + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime", + }, + }, + displayName: { + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + 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", + }, + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled", + ], + }, + }, + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", + type: { + name: "String", + }, + }, + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const SubscriptionKeysContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionKeysContract", + type: { + name: "Composite", + className: "SubscriptionKeysContract", + modelProperties: { + primaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1, + }, + serializedName: "primaryKey", + xmlName: "primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1, + }, + serializedName: "secondaryKey", + xmlName: "secondaryKey", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagCreateUpdateParameters: coreClient.CompositeMapper = { + serializedName: "TagCreateUpdateParameters", + type: { + name: "Composite", + className: "TagCreateUpdateParameters", + modelProperties: { + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagApiLinkCollection", + type: { + name: "Composite", + className: "TagApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagApiLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagOperationLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkCollection", + type: { + name: "Composite", + className: "TagOperationLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagOperationLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagOperationLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TagProductLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagProductLinkCollection", + type: { + name: "Composite", + className: "TagProductLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagProductLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagProductLinkContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessInformationCollection: coreClient.CompositeMapper = { + serializedName: "AccessInformationCollection", + type: { + name: "Composite", + className: "AccessInformationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "AccessInformationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessInformationContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessInformationCreateParameters: coreClient.CompositeMapper = { + serializedName: "AccessInformationCreateParameters", + type: { + name: "Composite", + className: "AccessInformationCreateParameters", + modelProperties: { + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", + type: { + name: "String", + }, + }, + primaryKey: { + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AccessInformationUpdateParameters: coreClient.CompositeMapper = { + serializedName: "AccessInformationUpdateParameters", + type: { + name: "Composite", + className: "AccessInformationUpdateParameters", + modelProperties: { + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AccessInformationSecretsContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationSecretsContract", + type: { + name: "Composite", + className: "AccessInformationSecretsContract", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + principalId: { + serializedName: "principalId", + xmlName: "principalId", + type: { + name: "String", + }, + }, + primaryKey: { + serializedName: "primaryKey", + xmlName: "primaryKey", + type: { + name: "String", + }, + }, + secondaryKey: { + serializedName: "secondaryKey", + xmlName: "secondaryKey", + type: { + name: "String", + }, + }, + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const DeployConfigurationParameters: coreClient.CompositeMapper = { + serializedName: "DeployConfigurationParameters", + type: { + name: "Composite", + className: "DeployConfigurationParameters", + modelProperties: { + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", + type: { + name: "String", + }, + }, + force: { + serializedName: "properties.force", + xmlName: "properties.force", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const SaveConfigurationParameter: coreClient.CompositeMapper = { + serializedName: "SaveConfigurationParameter", + type: { + name: "Composite", + className: "SaveConfigurationParameter", + modelProperties: { + branch: { + serializedName: "properties.branch", + xmlName: "properties.branch", + type: { + name: "String", + }, + }, + force: { + serializedName: "properties.force", + xmlName: "properties.force", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const UserCreateParameters: coreClient.CompositeMapper = { + serializedName: "UserCreateParameters", + type: { + name: "Composite", + className: "UserCreateParameters", + modelProperties: { + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "String", + }, + }, + note: { + serializedName: "properties.note", + xmlName: "properties.note", + type: { + name: "String", + }, + }, + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, + }, + email: { + constraints: { + MaxLength: 254, + MinLength: 1, + }, + serializedName: "properties.email", + xmlName: "properties.email", + type: { + name: "String", + }, + }, + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.firstName", + xmlName: "properties.firstName", + type: { + name: "String", + }, + }, + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.lastName", + xmlName: "properties.lastName", + type: { + name: "String", + }, + }, + password: { + serializedName: "properties.password", + xmlName: "properties.password", + type: { + name: "String", + }, + }, + appType: { + serializedName: "properties.appType", + xmlName: "properties.appType", + type: { + name: "String", + }, + }, + confirmation: { + serializedName: "properties.confirmation", + xmlName: "properties.confirmation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UserUpdateParameters: coreClient.CompositeMapper = { + serializedName: "UserUpdateParameters", + type: { + name: "Composite", + className: "UserUpdateParameters", + modelProperties: { + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "String", + }, + }, + note: { + serializedName: "properties.note", + xmlName: "properties.note", + type: { + name: "String", + }, + }, + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, + }, + email: { + constraints: { + MaxLength: 254, + MinLength: 1, + }, + serializedName: "properties.email", + xmlName: "properties.email", + type: { + name: "String", + }, + }, + password: { + serializedName: "properties.password", + xmlName: "properties.password", + type: { + name: "String", + }, + }, + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.firstName", + xmlName: "properties.firstName", + type: { + name: "String", + }, + }, + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.lastName", + xmlName: "properties.lastName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GenerateSsoUrlResult: coreClient.CompositeMapper = { + serializedName: "GenerateSsoUrlResult", + type: { + name: "Composite", + className: "GenerateSsoUrlResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UserIdentityCollection: coreClient.CompositeMapper = { + serializedName: "UserIdentityCollection", + type: { + name: "Composite", + className: "UserIdentityCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "UserIdentityContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number", + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UserTokenParameters: coreClient.CompositeMapper = { + serializedName: "UserTokenParameters", + type: { + name: "Composite", + className: "UserTokenParameters", + modelProperties: { + keyType: { + serializedName: "properties.keyType", + xmlName: "properties.keyType", + type: { + name: "Enum", + allowedValues: ["primary", "secondary"], + }, + }, + expiry: { + serializedName: "properties.expiry", + xmlName: "properties.expiry", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const UserTokenResult: coreClient.CompositeMapper = { + serializedName: "UserTokenResult", + type: { + name: "Composite", + className: "UserTokenResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementWorkspaceLinksListResult: coreClient.CompositeMapper = + { + serializedName: "ApiManagementWorkspaceLinksListResult", + type: { + name: "Composite", + className: "ApiManagementWorkspaceLinksListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + xmlName: "value", + xmlElementName: "ApiManagementWorkspaceLinksResource", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementWorkspaceLinksResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceLinksBaseProperties: coreClient.CompositeMapper = { + serializedName: "WorkspaceLinksBaseProperties", + type: { + name: "Composite", + className: "WorkspaceLinksBaseProperties", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + xmlName: "workspaceId", + type: { + name: "String", + }, + }, + gateways: { + serializedName: "gateways", + xmlName: "gateways", + xmlElementName: "WorkspaceLinksGateway", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceLinksGateway", + }, + }, + }, + }, + }, + }, +}; + +export const WorkspaceLinksGateway: coreClient.CompositeMapper = { + serializedName: "WorkspaceLinksGateway", + type: { + name: "Composite", + className: "WorkspaceLinksGateway", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + }, + }, +}; + +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 OperationStatusResult: coreClient.CompositeMapper = { + serializedName: "OperationStatusResult", + type: { + name: "Composite", + className: "OperationStatusResult", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + resourceId: { + serializedName: "resourceId", + readOnly: true, + xmlName: "resourceId", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + required: true, + xmlName: "status", + type: { + name: "String", + }, + }, + percentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "percentComplete", + xmlName: "percentComplete", + type: { + name: "Number", + }, + }, + startTime: { + serializedName: "startTime", + xmlName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + xmlName: "endTime", + type: { + name: "DateTime", + }, + }, + operations: { + serializedName: "operations", + xmlName: "operations", + xmlElementName: "OperationStatusResult", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult", + }, + }, + }, + }, + error: { + serializedName: "error", + xmlName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ErrorResponseAutoGenerated", + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + code: { + serializedName: "error.code", + xmlName: "error.code", + type: { + name: "String", + }, + }, + message: { + serializedName: "error.message", + xmlName: "error.message", + type: { + name: "String", + }, + }, + details: { + serializedName: "error.details", + xmlName: "error.details", + xmlElementName: "ErrorFieldContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract", + }, + }, + }, + }, + }, + }, +}; + +export const ApiRevisionInfoContract: coreClient.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", + type: { + name: "Composite", + className: "ApiRevisionInfoContract", + modelProperties: { + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", + type: { + name: "String", + }, + }, + apiVersionName: { + constraints: { + MaxLength: 100, + }, + serializedName: "apiVersionName", + xmlName: "apiVersionName", + type: { + name: "String", + }, + }, + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "apiRevisionDescription", + xmlName: "apiRevisionDescription", + type: { + name: "String", + }, + }, + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + }, + }, +}; + +export const PolicyWithComplianceCollection: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceCollection", + type: { + name: "Composite", + className: "PolicyWithComplianceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyWithComplianceContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyWithComplianceContract", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const QuotaCounterValueContract: coreClient.CompositeMapper = { + serializedName: "QuotaCounterValueContract", + type: { + name: "Composite", + className: "QuotaCounterValueContract", + modelProperties: { + callsCount: { + serializedName: "value.callsCount", + xmlName: "value.callsCount", + type: { + name: "Number", + }, + }, + kbTransferred: { + serializedName: "value.kbTransferred", + xmlName: "value.kbTransferred", + type: { + name: "Number", + }, + }, + }, + }, +}; + +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 ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +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", + }, + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + xmlName: "properties.requiredMembers", + xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + xmlName: "properties.requiredZoneNames", + xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApiManagementGatewayProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayProperties", + modelProperties: { + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, +}; + +export const ApiManagementGatewayUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateProperties", + modelProperties: { + ...ApiManagementGatewayBaseProperties.type.modelProperties, + }, + }, + }; + +export const ApiManagementGatewayResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementGatewayResource", + type: { + name: "Composite", + className: "ApiManagementGatewayResource", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuProperties", + }, + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", + }, + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementGatewayUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementGatewayUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementGatewaySkuPropertiesForPatch", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "FrontendConfiguration", + }, + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "BackendConfiguration", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "GatewayConfigurationApi", + }, + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", + type: { + name: "Composite", + className: "ApiManagementServiceResource", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + }, + }, + identity: { + serializedName: "identity", + xmlName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + notificationSenderEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", + type: { + name: "String", + }, + }, + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime", + }, + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", + type: { + name: "String", + }, + }, + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", + type: { + name: "String", + }, + }, + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", + type: { + name: "String", + }, + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", + type: { + name: "String", + }, + }, + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", + type: { + name: "String", + }, + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", + type: { + name: "String", + }, + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration", + }, + }, + }, + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", + type: { + name: "String", + }, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", + type: { + name: "String", + }, + }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + }, + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + }, + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation", + }, + }, + }, + }, + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration", + }, + }, + }, + }, + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", + type: { + name: "Boolean", + }, + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", + type: { + name: "String", + }, + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean", + }, + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", + type: { + name: "String", + }, + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + }, + }, + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", + type: { + name: "Boolean", + }, + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper", + }, + }, + }, + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", + type: { + name: "String", + }, + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String", + }, + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String", + }, + }, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractProperties", + type: { + name: "Composite", + className: "ApiContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + xmlName: "sourceApiId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + required: true, + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "apiVersionSet", + xmlName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiContractUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiContractUpdateProperties", + type: { + name: "Composite", + className: "ApiContractUpdateProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", + type: { + name: "Composite", + className: "ApiTagResourceContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + xmlName: "name", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "serviceUrl", + xmlName: "serviceUrl", type: { - name: "String" - } + name: "String", + }, }, - appType: { - serializedName: "properties.appType", - xmlName: "properties.appType", + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "path", + xmlName: "path", type: { - name: "String" - } + name: "String", + }, }, - confirmation: { - serializedName: "properties.confirmation", - xmlName: "properties.confirmation", + protocols: { + serializedName: "protocols", + xmlName: "protocols", + xmlElementName: "Protocol", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; -export const UserUpdateParameters: coreClient.CompositeMapper = { - serializedName: "UserUpdateParameters", +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", type: { name: "Composite", - className: "UserUpdateParameters", + className: "OperationContractProperties", modelProperties: { - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", + ...OperationEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + method: { + serializedName: "method", + required: true, + xmlName: "method", type: { - name: "String" - } + name: "String", + }, }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } + name: "String", + }, }, - email: { + }, + }, +}; + +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", + type: { + name: "Composite", + className: "OperationUpdateContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 254, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "properties.email", - xmlName: "properties.email", + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - password: { - serializedName: "properties.password", - xmlName: "properties.password", + method: { + serializedName: "method", + xmlName: "method", type: { - name: "String" - } + name: "String", + }, }, - firstName: { + urlTemplate: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 1000, + MinLength: 1, }, - serializedName: "properties.firstName", - xmlName: "properties.firstName", + serializedName: "urlTemplate", + xmlName: "urlTemplate", type: { - name: "String" - } + name: "String", + }, }, - lastName: { + }, + }, +}; + +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", + type: { + name: "Composite", + className: "ProductContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "properties.lastName", - xmlName: "properties.lastName", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = + { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String", + }, + }, + name: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String", + }, + }, + }, + }, + }; -export const GenerateSsoUrlResult: coreClient.CompositeMapper = { - serializedName: "GenerateSsoUrlResult", +export const ProductUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ProductUpdateProperties", type: { name: "Composite", - className: "GenerateSsoUrlResult", + className: "ProductUpdateProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserIdentityCollection: coreClient.CompositeMapper = { - serializedName: "UserIdentityCollection", +export const IssueContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractProperties", type: { name: "Composite", - className: "UserIdentityCollection", + className: "IssueContractProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "UserIdentityContract", + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + required: true, + xmlName: "title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } + name: "String", + }, }, - count: { - serializedName: "count", - xmlName: "count", + description: { + serializedName: "description", + required: true, + xmlName: "description", type: { - name: "Number" - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + userId: { + serializedName: "userId", + required: true, + xmlName: "userId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserTokenParameters: coreClient.CompositeMapper = { - serializedName: "UserTokenParameters", +export const IssueUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContractProperties", type: { name: "Composite", - className: "UserTokenParameters", + className: "IssueUpdateContractProperties", modelProperties: { - keyType: { - serializedName: "properties.keyType", - xmlName: "properties.keyType", + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + xmlName: "title", type: { - name: "Enum", - allowedValues: ["primary", "secondary"] - } + name: "String", + }, }, - expiry: { - serializedName: "properties.expiry", - xmlName: "properties.expiry", + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String", + }, + }, + userId: { + serializedName: "userId", + xmlName: "userId", type: { - name: "DateTime" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserTokenResult: coreClient.CompositeMapper = { - serializedName: "UserTokenResult", +export const TagDescriptionContractProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContractProperties", type: { name: "Composite", - className: "UserTokenResult", + className: "TagDescriptionContractProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", + ...TagDescriptionBaseProperties.type.modelProperties, + tagId: { + serializedName: "tagId", + xmlName: "tagId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCollection: coreClient.CompositeMapper = { - serializedName: "DocumentationCollection", +export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractProperties", type: { name: "Composite", - className: "DocumentationCollection", + className: "ApiVersionSetContractProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - xmlName: "value", - xmlElementName: "DocumentationContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DocumentationContract" - } - } - } + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - xmlName: "nextLink", + versioningScheme: { + serializedName: "versioningScheme", + required: true, + xmlName: "versioningScheme", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = + { + serializedName: "ApiVersionSetUpdateParametersProperties", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParametersProperties", + modelProperties: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServerUpdateContractProperties", + type: { + name: "Composite", + className: "AuthorizationServerUpdateContractProperties", + modelProperties: { + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "displayName", + xmlName: "displayName", + type: { + name: "String", + }, + }, + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", + type: { + name: "String", + }, + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", + type: { + name: "String", + }, + }, + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DocumentationUpdateContract: coreClient.CompositeMapper = { - serializedName: "DocumentationUpdateContract", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "DocumentationUpdateContract", + className: "BackendContractProperties", modelProperties: { - title: { - serializedName: "properties.title", - xmlName: "properties.title", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1, + }, + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiRevisionInfoContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", type: { name: "Composite", - className: "ApiRevisionInfoContract", + className: "BackendUpdateParameterProperties", modelProperties: { - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", - type: { - name: "String" - } - }, - apiVersionName: { + ...BackendBaseParameters.type.modelProperties, + url: { constraints: { - MaxLength: 100 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "apiVersionName", - xmlName: "apiVersionName", + serializedName: "url", + xmlName: "url", type: { - name: "String" - } - }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 + name: "String", }, - serializedName: "apiRevisionDescription", - xmlName: "apiRevisionDescription", - type: { - name: "String" - } }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const QuotaCounterValueContract: coreClient.CompositeMapper = { - serializedName: "QuotaCounterValueContract", +export const BackendBaseParametersPool: coreClient.CompositeMapper = { + serializedName: "BackendBaseParametersPool", type: { name: "Composite", - className: "QuotaCounterValueContract", + className: "BackendBaseParametersPool", modelProperties: { - callsCount: { - serializedName: "value.callsCount", - xmlName: "value.callsCount", - type: { - name: "Number" - } - }, - kbTransferred: { - serializedName: "value.kbTransferred", - xmlName: "value.kbTransferred", - type: { - name: "Number" - } - } - } - } + ...BackendPool.type.modelProperties, + }, + }, }; -export const ResolverResultLogItemContract: coreClient.CompositeMapper = { - serializedName: "ResolverResultLogItemContract", +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", type: { name: "Composite", - className: "ResolverResultLogItemContract", + className: "KeyVaultContractProperties", modelProperties: { - objectType: { - serializedName: "objectType", - xmlName: "objectType", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - xmlName: "action", + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "String" - } + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties", + }, }, - objectKey: { - serializedName: "objectKey", - xmlName: "objectKey", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractProperties", +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", type: { name: "Composite", - className: "ApiContractProperties", + className: "ApiManagementServiceProperties", modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", - type: { - name: "String" - } - }, - displayName: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 100, }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 + name: "String", }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", - type: { - name: "String" - } }, - path: { + publisherName: { constraints: { - MaxLength: 400 + MaxLength: 100, }, - serializedName: "path", + serializedName: "publisherName", required: true, - xmlName: "path", + xmlName: "publisherName", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + }, + }, +}; + +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementServiceUpdateProperties", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", + type: { + name: "String", + }, + }, + publisherName: { + constraints: { + MaxLength: 100, + }, + serializedName: "publisherName", + xmlName: "publisherName", + type: { + name: "String", + }, + }, }, - apiVersionSet: { - serializedName: "apiVersionSet", - xmlName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } -}; + }, + }; -export const ApiContractUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiContractUpdateProperties", +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", type: { name: "Composite", - className: "ApiContractUpdateProperties", + className: "UserContractProperties", modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "String", }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", + }, + lastName: { + serializedName: "lastName", + xmlName: "lastName", type: { - name: "String" - } + name: "String", + }, }, - path: { - constraints: { - MaxLength: 400 + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String", }, - serializedName: "path", - xmlName: "path", + }, + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, + }, + }, + }, }; -export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiTagResourceContractProperties", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "ApiTagResourceContractProperties", + className: "UserCreateParameterProperties", modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1, + }, + serializedName: "email", + required: true, + xmlName: "email", type: { - name: "String" - } + name: "String", + }, }, - name: { + firstName: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "name", - xmlName: "name", + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { - name: "String" - } + name: "String", + }, }, - serviceUrl: { + lastName: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "serviceUrl", - xmlName: "serviceUrl", + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { - name: "String" - } + name: "String", + }, }, - path: { - constraints: { - MaxLength: 400 + password: { + serializedName: "password", + xmlName: "password", + type: { + name: "String", }, - serializedName: "path", - xmlName: "path", + }, + appType: { + serializedName: "appType", + xmlName: "appType", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "protocols", - xmlName: "protocols", - xmlElementName: "Protocol", + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } + name: "String", + }, + }, + }, + }, }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "UserUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1, + }, + serializedName: "email", + xmlName: "email", type: { - name: "Composite", - className: "PrivateEndpoint" - } + name: "String", + }, }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "firstName", + xmlName: "firstName", + type: { + name: "String", + }, + }, + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "lastName", + xmlName: "lastName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PrivateLinkResource: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "PrivateLinkResource", + className: "IdentityProviderContractProperties", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - xmlName: "properties.groupId", + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - xmlName: "properties.requiredMembers", - xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - xmlName: "properties.requiredZoneNames", - xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + }, + }, +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = + { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "clientId", + required: true, + xmlName: "clientId", + type: { + name: "String", + }, + }, + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", type: { name: "Composite", - className: "OperationContractProperties", + className: "IdentityProviderUpdateProperties", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 300, - MinLength: 1 + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", - type: { - name: "String" - } - }, - method: { - serializedName: "method", - required: true, - xmlName: "method", + serializedName: "clientId", + xmlName: "clientId", type: { - name: "String" - } + name: "String", + }, }, - urlTemplate: { + clientSecret: { constraints: { - MaxLength: 1000, - MinLength: 1 + MinLength: 1, }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "NamedValueContractProperties", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, serializedName: "displayName", + required: true, xmlName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - method: { - serializedName: "method", - xmlName: "method", + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "value", + xmlName: "value", type: { - name: "String" - } + name: "String", + }, }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultContractProperties", }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + xmlName: "provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", type: { name: "Composite", - className: "ProductContractProperties", + className: "NamedValueCreateContractProperties", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, serializedName: "displayName", required: true, xmlName: "displayName", type: { - name: "String" - } - } - } - } -}; - -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", - type: { - name: "Composite", - className: "ProductTagResourceContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", - type: { - name: "String" - } + name: "String", + }, }, - name: { + value: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 4096, }, - serializedName: "name", - required: true, - xmlName: "name", + serializedName: "value", + xmlName: "value", + type: { + name: "String", + }, + }, + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" - } - } - } - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; -export const ProductUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ProductUpdateProperties", +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", type: { name: "Composite", - className: "ProductUpdateProperties", + className: "NamedValueUpdateParameterProperties", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 300, - MinLength: 1 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, serializedName: "displayName", xmlName: "displayName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + value: { + constraints: { + MaxLength: 4096, + MinLength: 1, + }, + serializedName: "value", + xmlName: "value", + type: { + name: "String", + }, + }, + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, + }, + }, + }, }; -export const IssueContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractProperties", +export const ApiManagementWorkspaceLinksProperties: coreClient.CompositeMapper = + { + serializedName: "ApiManagementWorkspaceLinksProperties", + type: { + name: "Composite", + className: "ApiManagementWorkspaceLinksProperties", + modelProperties: { + ...WorkspaceLinksBaseProperties.type.modelProperties, + }, + }, + }; + +export const AllPoliciesContract: coreClient.CompositeMapper = { + serializedName: "AllPoliciesContract", type: { name: "Composite", - className: "IssueContractProperties", + className: "AllPoliciesContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - required: true, - xmlName: "title", + ...ProxyResource.type.modelProperties, + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - required: true, - xmlName: "description", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "String" - } + name: "String", + }, }, - userId: { - serializedName: "userId", - required: true, - xmlName: "userId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const IssueUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContractProperties", +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", type: { name: "Composite", - className: "IssueUpdateContractProperties", + className: "ApiContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - xmlName: "title", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "description", - xmlName: "description", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" - } + name: "Composite", + className: "AuthenticationSettingsContract", + }, }, - userId: { - serializedName: "userId", - xmlName: "userId", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "String" - } - } - } - } -}; - -export const TagDescriptionContractProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContractProperties", - type: { - name: "Composite", - className: "TagDescriptionContractProperties", - modelProperties: { - ...TagDescriptionBaseProperties.type.modelProperties, - tagId: { - serializedName: "tagId", - xmlName: "tagId", + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + }, + }, + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + apiRevision: { constraints: { - MaxLength: 160, - MinLength: 1 + MaxLength: 100, + MinLength: 1, }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { - name: "String" - } - } - } - } -}; - -export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractProperties", - type: { - name: "Composite", - className: "ApiVersionSetContractProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + name: "String", + }, + }, + apiVersion: { constraints: { MaxLength: 100, - MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - required: true, - xmlName: "versioningScheme", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" - } - } - } - } -}; - -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", - type: { - name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "Boolean", }, - serializedName: "displayName", - xmlName: "displayName", + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" - } + name: "Boolean", + }, }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + apiRevisionDescription: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", - type: { - name: "Composite", - className: "AuthorizationServerContractProperties", - modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { + name: "String", + }, + }, + apiVersionDescription: { constraints: { - MaxLength: 50, - MinLength: 1 + MaxLength: 256, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - required: true, - xmlName: "clientRegistrationEndpoint", + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - required: true, - xmlName: "authorizationEndpoint", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "String" - } + name: "Composite", + className: "ApiContactInformation", + }, }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + license: { + serializedName: "properties.license", + xmlName: "properties.license", + type: { + name: "Composite", + className: "ApiLicenseInformation", + }, + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + serviceUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", + type: { + name: "String", + }, + }, + path: { + constraints: { + MaxLength: 400, + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String", + }, + }, + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { name: "Sequence", element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", + type: { + name: "String", + }, + }, + }, + }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", type: { - name: "String" - } + name: "Composite", + className: "ApiVersionSetContractDetails", + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "ApiReleaseContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String", }, - serializedName: "displayName", - xmlName: "displayName", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "String" - } + name: "DateTime", + }, }, - useInTestConsole: { - serializedName: "useInTestConsole", - xmlName: "useInTestConsole", + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - useInApiDocumentation: { - serializedName: "useInApiDocumentation", - xmlName: "useInApiDocumentation", + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", type: { - name: "Boolean" - } + name: "String", + }, }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + }, + }, +}; + +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", + type: { + name: "Composite", + className: "OperationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract", + }, + }, + }, + }, + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" - } + name: "Composite", + className: "RequestContract", + }, }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "ResponseContract", + }, + }, + }, }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } -}; - -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", - type: { - name: "Composite", - className: "BackendContractProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + displayName: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "url", - required: true, - xmlName: "url", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { - name: "String" - } - } - } - } -}; - -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", - type: { - name: "Composite", - className: "BackendUpdateParameterProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + name: "String", + }, + }, + urlTemplate: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 1000, + MinLength: 1, }, - serializedName: "url", - xmlName: "url", + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { - name: "String" - } + name: "String", + }, }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", type: { name: "Composite", - className: "KeyVaultContractProperties", + className: "PolicyContract", modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" - } - } - } - } + name: "String", + }, + }, + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "TagContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...ProxyResource.type.modelProperties, + displayName: { constraints: { - MaxLength: 100 + MaxLength: 160, + MinLength: 1, }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - }, - publisherName: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", - type: { - name: "String" - } - } - } - } + }, + }, + }, }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "ResolverContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + ...ProxyResource.type.modelProperties, + displayName: { constraints: { - MaxLength: 100 + MaxLength: 300, + MinLength: 1, }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { + path: { constraints: { - MaxLength: 100 + MaxLength: 300, + MinLength: 1, }, - serializedName: "publisherName", - xmlName: "publisherName", - type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", - type: { - name: "Composite", - className: "ApiManagementServiceResource", - modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - xmlName: "identity", - type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } - }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - location: { - serializedName: "location", - required: true, - xmlName: "location", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "String" - } + name: "String", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - notificationSenderEmail: { + }, + }, +}; + +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", + type: { + name: "Composite", + className: "ProductContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { constraints: { - MaxLength: 100 + MaxLength: 1000, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { - name: "String" - } + name: "String", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "String" - } + name: "Boolean", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { - name: "DateTime" - } + name: "Boolean", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "String" - } + name: "Number", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" - } + name: "Enum", + allowedValues: ["notPublished", "published"], + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { + name: "Composite", + className: "SchemaContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - xmlName: "properties.scmUrl", + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { - name: "String" - } + name: "String", + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + }, + }, +}; + +export const DiagnosticContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticContract", + type: { + name: "Composite", + className: "DiagnosticContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", type: { - name: "String" - } + name: "String", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { - name: "String" - } + name: "Composite", + className: "SamplingSettings", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } + className: "PipelineDiagnosticSettings", + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Boolean", + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } + name: "String", + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", + type: { + name: "String", + }, + }, + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", + type: { + name: "Composite", + className: "IssueContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } + name: "DateTime", + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "ApiVersionConstraint" - } + name: "String", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Boolean" - } + name: "String", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + }, + }, +}; + +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", + type: { + name: "Composite", + className: "IssueCommentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "String", + }, }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "String" - } + name: "DateTime", + }, }, - publisherEmail: { - constraints: { - MaxLength: 100 + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", + type: { + name: "String", }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + }, + }, + }, +}; + +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", + type: { + name: "Composite", + className: "IssueAttachmentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - publisherName: { - constraints: { - MaxLength: 100 + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", + type: { + name: "String", }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "TagDescriptionContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } + name: "String", + }, }, - identity: { - serializedName: "identity", - xmlName: "identity", + externalDocsUrl: { + constraints: { + MaxLength: 2000, + }, + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } + name: "String", + }, }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "String" - } + name: "String", + }, }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", + type: { + name: "String", + }, + }, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String", + }, + }, + }, + }, +}; + +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: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "WikiDocumentationContract", + }, + }, + }, }, - notificationSenderEmail: { + }, + }, +}; + +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", + }, + }, + versionQueryName: { constraints: { - MaxLength: 100 + MaxLength: 100, + MinLength: 1, }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", type: { - name: "String" - } + name: "String", + }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { - name: "String" - } + name: "String", + }, }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", type: { - name: "DateTime" - } + name: "String", + }, }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + }, + }, +}; + +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", + type: { + name: "Composite", + className: "AuthorizationProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { - name: "String" - } + name: "String", + }, }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { - name: "String" - } + name: "Composite", + className: "AuthorizationProviderOAuth2Settings", + }, }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + }, + }, +}; + +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", + type: { + name: "Composite", + className: "AuthorizationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", type: { - name: "String" - } + name: "String", + }, }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", type: { - name: "String" - } + name: "String", + }, }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } + name: "Composite", + className: "AuthorizationError", + }, }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + }, + }, +}; + +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + appIds: { + serializedName: "properties.appIds", + xmlName: "properties.appIds", + xmlElementName: "AuthorizationAccessPolicyContractPropertiesAppIdsItem", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { - name: "String" - } + name: "String", + }, }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { - name: "String" - } + name: "String", + }, }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + }, + }, +}; + +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", + type: { + name: "Composite", + className: "AuthorizationServerContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" - } + name: "String", + }, }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AdditionalLocation" - } - } - } + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + }, + }, + }, }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CertificateConfiguration" - } - } - } + className: "TokenBodyParameterContract", + }, + }, + }, }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { - name: "Boolean" - } + name: "String", + }, }, - natGatewayState: { - serializedName: "properties.natGatewayState", - xmlName: "properties.natGatewayState", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "String" - } + name: "Boolean", + }, }, - outboundPublicIPAddresses: { - serializedName: "properties.outboundPublicIPAddresses", - readOnly: true, - xmlName: "properties.outboundPublicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + 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: "String" - } - } - } + name: "String", + }, + }, + }, }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { - name: "Boolean" - } + name: "String", + }, }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1, + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Composite", - className: "ApiVersionConstraint" - } + name: "String", + }, }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } - } + name: "Boolean", + }, }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - publisherEmail: { - constraints: { - MaxLength: 100 + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", + type: { + name: "String", }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - publisherName: { - constraints: { - MaxLength: 100 + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String", }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "UserContractProperties", + className: "AuthorizationServerUpdateContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", - type: { - name: "String" - } - }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - email: { - serializedName: "email", - xmlName: "email", + 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", + ], + }, + }, + }, }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - groups: { - serializedName: "groups", - readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GroupContractProperties" - } - } - } - } - } - } -}; - -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", - type: { - name: "Composite", - className: "UserCreateParameterProperties", - modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 + className: "TokenBodyParameterContract", + }, + }, }, - serializedName: "email", - required: true, - xmlName: "email", - type: { - name: "String" - } }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - required: true, - xmlName: "firstName", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { - name: "String" - } - }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "lastName", - required: true, - xmlName: "lastName", - type: { - name: "String" - } }, - password: { - serializedName: "password", - xmlName: "password", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "String" - } + name: "Boolean", + }, }, - appType: { - serializedName: "appType", - xmlName: "appType", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", type: { - name: "String" - } + name: "String", + }, }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { - name: "String" - } - } - } - } -}; - -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", - type: { - name: "Composite", - className: "UserUpdateParametersProperties", - modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "email", - xmlName: "email", - type: { - name: "String" - } }, - password: { - serializedName: "password", - xmlName: "password", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { - name: "String" - } - }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "firstName", - xmlName: "firstName", + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { - name: "String" - } + name: "String", + }, }, - lastName: { + displayName: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 50, + MinLength: 1, }, - serializedName: "lastName", - xmlName: "lastName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } - } - } - } -}; - -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", - type: { - name: "Composite", - className: "IdentityProviderContractProperties", - modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 + name: "String", }, - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } }, - clientSecret: { - constraints: { - MinLength: 1 + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean", }, - serializedName: "clientSecret", - xmlName: "clientSecret", + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "String" - } - } - } - } -}; - -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", - type: { - name: "Composite", - className: "IdentityProviderCreateContractProperties", - modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 + name: "Boolean", }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + }, + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", + type: { + name: "String", }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" - } - } - } - } -}; - -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", - type: { - name: "Composite", - className: "IdentityProviderUpdateProperties", - modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, - serializedName: "clientId", - xmlName: "clientId", + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "BackendContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + title: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 300, + MinLength: 1, }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "String" - } + name: "String", + }, }, - value: { + description: { constraints: { - MaxLength: 4096 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "value", - xmlName: "value", + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + 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: "KeyVaultContractProperties" - } - } - } - } -}; - -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 + className: "BackendProperties", }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" - } + name: "Composite", + className: "BackendCredentialsContract", + }, }, - value: { - constraints: { - MaxLength: 4096 + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", + type: { + name: "Composite", + className: "BackendProxyContract", }, - serializedName: "value", - xmlName: "value", + }, + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "String" - } + name: "Composite", + className: "BackendTlsProperties", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } -}; - -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 + className: "BackendCircuitBreaker", }, - serializedName: "displayName", - xmlName: "displayName", + }, + pool: { + serializedName: "properties.pool", + xmlName: "properties.pool", type: { - name: "String" - } + name: "Composite", + className: "BackendBaseParametersPool", + }, }, - value: { + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + url: { constraints: { - MaxLength: 4096, - MinLength: 1 + MaxLength: 2000, + MinLength: 1, }, - serializedName: "value", - xmlName: "value", + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "ApiCreateOrUpdateProperties", + className: "BackendReconnectContract", modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", - type: { - name: "String" - } - }, - format: { - serializedName: "format", - xmlName: "format", - type: { - name: "String" - } - }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", - type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } - }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + ...ProxyResource.type.modelProperties, + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "String" - } + name: "TimeSpan", + }, }, - translateRequiredQueryParametersConduct: { - serializedName: "translateRequiredQueryParameters", - xmlName: "translateRequiredQueryParameters", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", type: { name: "Composite", - className: "ApiContract", + className: "CacheContract", modelProperties: { ...ProxyResource.type.modelProperties, description: { + constraints: { + MaxLength: 2000, + }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", - type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } - }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", - type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 + name: "String", }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", - type: { - name: "String" - } }, - apiVersion: { + connectionString: { constraints: { - MaxLength: 100 + MaxLength: 300, }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", - type: { - name: "String" - } - }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { - name: "Boolean" - } + name: "String", + }, }, - apiRevisionDescription: { + useFromLocation: { constraints: { - MaxLength: 256 + MaxLength: 256, }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { - name: "String" - } + name: "String", + }, }, - apiVersionDescription: { + resourceId: { constraints: { - MaxLength: 256 + MaxLength: 2000, }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + }, + }, +}; + +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", + type: { + name: "Composite", + className: "CertificateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "String" - } + name: "String", + }, }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "ApiContactInformation" - } + className: "KeyVaultContractProperties", + }, }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", + }, + }, +}; + +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", + type: { + name: "Composite", + className: "ContentTypeContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "Composite", - className: "ApiLicenseInformation" - } + name: "String", + }, }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { - name: "String" - } + name: "String", + }, }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - serviceUrl: { - constraints: { - MaxLength: 2000 + version: { + serializedName: "properties.version", + xmlName: "properties.version", + type: { + name: "String", }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + }, + }, + }, +}; + +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", + type: { + name: "Composite", + className: "ContentItemContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - path: { - constraints: { - MaxLength: 400 + }, + }, +}; + +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", + type: { + name: "Composite", + className: "DeletedServiceContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", + type: { + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", + }, + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { - name: "String" - } + name: "String", + }, }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "DateTime", + }, }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "ApiReleaseContract", + className: "DocumentationContract", modelProperties: { ...ProxyResource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", - type: { - name: "String" - } - }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "DateTime" - } + name: "String", + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "DateTime" - } + name: "String", + }, }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "OperationContract", + className: "EmailTemplateContract", modelProperties: { ...ProxyResource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + subject: { + constraints: { + MaxLength: 1000, + MinLength: 1, + }, + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } + name: "String", + }, }, - description: { + body: { constraints: { - MaxLength: 1000 + MinLength: 1, + }, + serializedName: "properties.body", + xmlName: "properties.body", + type: { + name: "String", + }, + }, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String", }, + }, + description: { serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", + isDefault: { + serializedName: "properties.isDefault", + readOnly: true, + xmlName: "properties.isDefault", type: { - name: "Composite", - className: "RequestContract" - } + name: "Boolean", + }, }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", 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 + className: "EmailTemplateParametersContractProperties", + }, + }, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + }, + }, +}; + +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: "String" - } + name: "Composite", + className: "ResourceLocationDataContract", + }, }, - urlTemplate: { + description: { constraints: { MaxLength: 1000, - MinLength: 1 }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfigurationContract", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", + type: { + name: "String", + }, + }, + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", + type: { + name: "String", + }, + }, + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", + type: { + name: "Boolean", + }, + }, + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", + type: { + name: "Boolean", + }, + }, + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", + type: { + name: "Boolean", + }, + }, + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", type: { name: "Composite", - className: "PolicyContract", + className: "AssociationContract", modelProperties: { ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + provisioningState: { + serializedName: "properties.provisioningState", + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", type: { name: "Composite", - className: "TagContract", + className: "GatewayCertificateAuthorityContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", type: { - name: "String" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const ApiManagementGatewayConfigConnectionResource: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayConfigConnectionResource", + type: { + name: "Composite", + className: "ApiManagementGatewayConfigConnectionResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", + type: { + name: "String", + }, + }, + sourceId: { + serializedName: "properties.sourceId", + xmlName: "properties.sourceId", + type: { + name: "String", + }, + }, + defaultHostname: { + serializedName: "properties.defaultHostname", + readOnly: true, + xmlName: "properties.defaultHostname", + type: { + name: "String", + }, + }, + hostnames: { + serializedName: "properties.hostnames", + xmlName: "properties.hostnames", + xmlElementName: "GatewayConfigConnectionBasePropertiesHostnamesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; -export const ResolverContract: coreClient.CompositeMapper = { - serializedName: "ResolverContract", +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", type: { name: "Composite", - className: "ResolverContract", + className: "GroupContract", modelProperties: { ...ProxyResource.type.modelProperties, displayName: { constraints: { MaxLength: 300, - MinLength: 1 + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 300, - MinLength: 1 + name: "String", }, - serializedName: "properties.path", - xmlName: "properties.path", - type: { - name: "String" - } }, description: { constraints: { - MaxLength: 1000 + MaxLength: 1000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } - } - } - } -}; - -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", - type: { - name: "Composite", - className: "ProductContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - constraints: { - MaxLength: 1000 + name: "String", }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", - type: { - name: "String" - } - }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", - type: { - name: "Boolean" - } - }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + builtIn: { + serializedName: "properties.builtIn", + readOnly: true, + xmlName: "properties.builtIn", type: { - name: "Number" - } + name: "Boolean", + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { name: "Enum", - allowedValues: ["notPublished", "published"] - } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 + allowedValues: ["custom", "system", "external"], }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - } - } - } -}; - -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", - type: { - name: "Composite", - className: "SchemaContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", - type: { - name: "String" - } }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "String", + }, }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", - className: "DiagnosticContract", + className: "UserContract", modelProperties: { ...ProxyResource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", - type: { - name: "String" - } - }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", - type: { - name: "Composite", - className: "PipelineDiagnosticSettings" - } - }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", - type: { - name: "Boolean" - } - }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", - type: { - name: "String" - } - }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" - } + name: "String", + }, }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "String" - } + name: "String", + }, }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", - type: { - name: "Boolean" - } - } - } - } -}; - -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", - type: { - name: "Composite", - className: "IssueContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { - name: "DateTime" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract", + }, + }, + }, }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "String" - } + name: "String", + }, }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { - name: "String" - } + name: "String", + }, }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties", + }, + }, + }, + }, + }, + }, }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", type: { name: "Composite", - className: "IssueCommentContract", + className: "IdentityProviderContract", modelProperties: { ...ProxyResource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "DateTime" - } + name: "String", + }, }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + allowedTenants: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" - } - } - } - } -}; - -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", - type: { - name: "Composite", - className: "IssueAttachmentContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "String" - } + name: "String", + }, }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + signupPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + signinPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "String" - } - } - } - } -}; - -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", - type: { - name: "Composite", - className: "TagDescriptionContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + name: "String", + }, + }, + profileEditingPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, - externalDocsUrl: { + passwordResetPolicyName: { constraints: { - MaxLength: 2000 + MinLength: 1, }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } + name: "String", + }, }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "String" - } + name: "String", + }, }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + clientSecret: { constraints: { - MaxLength: 160, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const WikiContract: coreClient.CompositeMapper = { - serializedName: "WikiContract", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "WikiContract", + className: "IdentityProviderCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - documents: { - serializedName: "properties.documents", - xmlName: "properties.documents", - xmlElementName: "WikiDocumentationContract", + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String", + }, + }, + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", + type: { + name: "String", + }, + }, + allowedTenants: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { 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", + name: "String", + }, + }, + }, + }, + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "String" - } + name: "String", + }, }, - versionQueryName: { + signupPolicyName: { constraints: { - MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "String" - } + name: "String", + }, }, - versionHeaderName: { + signinPolicyName: { constraints: { - MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { - name: "String" - } + name: "String", + }, }, - displayName: { + profileEditingPolicyName: { constraints: { - MaxLength: 100, - MinLength: 1 + MinLength: 1, }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "String" - } + name: "String", + }, }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + passwordResetPolicyName: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + name: "String", + }, + }, + clientLibrary: { + constraints: { + MaxLength: 16, + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { - name: "String" - } + name: "String", + }, }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + clientId: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + clientSecret: { + constraints: { + MinLength: 1, + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", + type: { + name: "String", + }, + }, + }, + }, +}; + +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: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + description: { + constraints: { + MaxLength: 256, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } + name: "String", + }, }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Boolean" - } + name: "Boolean", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "String" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + }, + }, +}; + +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: { type: { - name: "String" - } - } - } - }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", - type: { - name: "String" - } + name: "String", + }, + }, + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "String" - } + name: "Boolean", + }, }, displayName: { constraints: { - MaxLength: 50, - MinLength: 1 + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1, }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", - type: { - name: "Boolean" - } - }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } - }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", - type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Composite", + className: "KeyVaultContractProperties", + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContract", + className: "NamedValueCreateContract", modelProperties: { ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + tags: { + constraints: { + MaxItems: 32, + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } + name: "String", + }, + }, + }, }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "Boolean", + }, }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + 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: "TokenBodyParameterContract" - } - } - } + name: "String", + }, }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + value: { + constraints: { + MaxLength: 4096, + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "Boolean" - } + name: "Composite", + className: "KeyVaultContractCreateProperties", + }, }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + }, + }, +}; + +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" - } + name: "String", + }, }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", + type: { + name: "Composite", + 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" - } + name: "String", + }, }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + }, + }, +}; + +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" - } + name: "String", + }, }, + }, + }, +}; + +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", + type: { + name: "Composite", + className: "OpenidConnectProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, displayName: { constraints: { MaxLength: 50, - MinLength: 1 }, serializedName: "properties.displayName", xmlName: "properties.displayName", type: { - name: "String" - } - }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", - type: { - name: "Boolean" - } - }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", - type: { - name: "Boolean" - } - }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", - type: { - name: "String" - } + name: "String", + }, }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, clientId: { serializedName: "properties.clientId", xmlName: "properties.clientId", type: { - name: "String" - } + name: "String", + }, }, clientSecret: { serializedName: "properties.clientSecret", xmlName: "properties.clientSecret", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean", + }, + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean", + }, + }, + }, + }, }; -export const AuthorizationProviderContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderContract", +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", type: { name: "Composite", - className: "AuthorizationProviderContract", + className: "PolicyDescriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + description: { + serializedName: "properties.description", + readOnly: true, + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - identityProvider: { - serializedName: "properties.identityProvider", - xmlName: "properties.identityProvider", + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", type: { - name: "String" - } + name: "Number", + }, }, - oauth2: { - serializedName: "properties.oauth2", - xmlName: "properties.oauth2", - type: { - name: "Composite", - className: "AuthorizationProviderOAuth2Settings" - } - } - } - } + }, + }, }; -export const AuthorizationContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationContract", +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", type: { name: "Composite", - className: "AuthorizationContract", + className: "PolicyFragmentContract", modelProperties: { ...ProxyResource.type.modelProperties, - authorizationType: { - serializedName: "properties.authorizationType", - xmlName: "properties.authorizationType", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" - } + name: "String", + }, }, - oAuth2GrantType: { - serializedName: "properties.oauth2grantType", - xmlName: "properties.oauth2grantType", + description: { + constraints: { + MaxLength: 1000, + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", + format: { + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "Composite", - className: "AuthorizationError" - } + name: "String", + }, }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicyContract", +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", type: { name: "Composite", - className: "AuthorizationAccessPolicyContract", + className: "ResourceCollectionValueItem", modelProperties: { ...ProxyResource.type.modelProperties, - tenantId: { - serializedName: "properties.tenantId", - xmlName: "properties.tenantId", + }, + }, +}; + +export const PolicyRestrictionContract: coreClient.CompositeMapper = { + serializedName: "PolicyRestrictionContract", + type: { + name: "Composite", + className: "PolicyRestrictionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, - objectId: { - serializedName: "properties.objectId", - xmlName: "properties.objectId", + requireBase: { + defaultValue: "false", + serializedName: "properties.requireBase", + xmlName: "properties.requireBase", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "BackendContract", + className: "OperationResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", + type: { + name: "String", }, - serializedName: "properties.title", - xmlName: "properties.title", + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "String" - } + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], + }, }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 + started: { + serializedName: "properties.started", + xmlName: "properties.started", + type: { + name: "DateTime", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + 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 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: "String" - } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 + name: "Boolean", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", type: { name: "Composite", - className: "BackendProperties" - } + className: "PortalConfigPropertiesSignin", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", type: { name: "Composite", - className: "BackendCredentialsContract" - } + className: "PortalConfigPropertiesSignup", + }, }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", type: { name: "Composite", - className: "BackendProxyContract" - } + className: "PortalConfigDelegationProperties", + }, }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", type: { name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 + className: "PortalConfigCorsProperties", }, - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", - type: { - name: "String" - } - } - } - } -}; - -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", - type: { - name: "Composite", - className: "BackendReconnectContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", type: { - name: "TimeSpan" - } - } - } - } + name: "Composite", + className: "PortalConfigCspProperties", + }, + }, + }, + }, }; -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", type: { name: "Composite", - className: "CacheContract", + className: "PortalRevisionContract", modelProperties: { ...ProxyResource.type.modelProperties, description: { constraints: { - MaxLength: 2000 + MaxLength: 2000, }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - connectionString: { + statusDetails: { constraints: { - MaxLength: 300 + MaxLength: 2000, }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", type: { - name: "String" - } + name: "String", + }, }, - useFromLocation: { - constraints: { - MaxLength: 256 + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", + type: { + name: "String", }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" - } + name: "Boolean", + }, }, - resourceId: { - constraints: { - MaxLength: 2000 + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", + type: { + name: "DateTime", }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + }, + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", type: { name: "Composite", - className: "CertificateContract", + className: "PortalSettingsContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "String" - } + name: "String", + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "DateTime" - } + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + 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: "KeyVaultContractProperties" - } - } - } - } + className: "TermsOfServiceProperties", + }, + }, + }, + }, }; -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", type: { name: "Composite", - className: "ContentTypeContract", + className: "PortalSigninSettings", modelProperties: { ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", - type: { - name: "String" - } - }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } + name: "Boolean", + }, }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", type: { name: "Composite", - className: "ContentItemContract", + className: "PortalSignupSettings", modelProperties: { ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + name: "Boolean", + }, + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties", + }, + }, + }, + }, }; -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", +export const PortalDelegationSettings: coreClient.CompositeMapper = { + serializedName: "PortalDelegationSettings", type: { name: "Composite", - className: "DeletedServiceContract", + className: "PortalDelegationSettings", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", + url: { + serializedName: "properties.url", + xmlName: "properties.url", type: { - name: "String" - } + name: "String", + }, }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "String" - } + name: "String", + }, }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "DateTime" - } + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + }, }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "DateTime" - } - } - } - } + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + }, + }, + }, + }, }; -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", type: { name: "Composite", - className: "EmailTemplateContract", + className: "SubscriptionContract", modelProperties: { ...ProxyResource.type.modelProperties, - subject: { - constraints: { - MaxLength: 1000, - MinLength: 1 + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", + type: { + name: "String", }, - serializedName: "properties.subject", - xmlName: "properties.subject", + }, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, - body: { + displayName: { constraints: { - MinLength: 1 + MaxLength: 100, }, - serializedName: "properties.body", - xmlName: "properties.body", - type: { - name: "String" - } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" - } + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled", + ], + }, }, - isDefault: { - serializedName: "properties.isDefault", + createdDate: { + serializedName: "properties.createdDate", readOnly: true, - xmlName: "properties.isDefault", + xmlName: "properties.createdDate", type: { - name: "Boolean" - } + name: "DateTime", + }, }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", - type: { - name: "Sequence", - element: { - type: { - 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", + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", type: { - name: "Composite", - className: "ResourceLocationDataContract" - } - }, - description: { - constraints: { - MaxLength: 1000 + name: "DateTime", }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" - } - } - } - } -}; - -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", - type: { - name: "Composite", - className: "GatewayHostnameConfigurationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", + name: "DateTime", + }, + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", type: { - name: "String" - } + name: "DateTime", + }, }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", type: { - name: "String" - } + name: "DateTime", + }, }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", + primaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1, + }, + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { - name: "Boolean" - } + name: "String", + }, }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + secondaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1, + }, + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", type: { - name: "Boolean" - } + name: "String", + }, }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { - name: "Boolean" - } + name: "String", + }, }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", +export const ProductApiLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkContract", type: { name: "Composite", - className: "AssociationContract", + className: "ProductApiLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - defaultValue: "created", - isConstant: true, - serializedName: "properties.provisioningState", + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", +export const ProductGroupLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkContract", type: { name: "Composite", - className: "GatewayCertificateAuthorityContract", + className: "ProductGroupLinkContract", modelProperties: { ...ProxyResource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", + groupId: { + serializedName: "properties.groupId", + xmlName: "properties.groupId", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "GroupContract", + className: "GlobalSchemaContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { - name: "String" - } + name: "String", + }, }, description: { - constraints: { - MaxLength: 1000 - }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "Boolean" - } + name: "any", + }, }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + document: { + serializedName: "properties.document", + xmlName: "properties.document", type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } + name: "Dictionary", + value: { type: { name: "any" } }, + }, }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", type: { name: "Composite", - className: "UserContract", + className: "TenantSettingsContract", modelProperties: { ...ProxyResource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", - 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", + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "String" - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + }, + }, +}; + +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" - } + name: "String", + }, }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + }, + }, +}; + +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" - } + name: "String", + }, }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", + }, + }, +}; + +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: "DateTime" - } + name: "String", + }, }, - 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 AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "AccessInformationContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "String" - } + name: "String", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Boolean", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 + }, + }, +}; + +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", + }, }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", - type: { - name: "String" - } - }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", + type: { + name: "String", + }, }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", - type: { - name: "String" - } - }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", + type: { + name: "Boolean", + }, }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", - type: { - name: "String" - } - }, - clientLibrary: { - constraints: { - MaxLength: 16 + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", + type: { + name: "Boolean", + }, }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", - type: { - name: "String" - } - }, - clientId: { - constraints: { - MinLength: 1 + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", + type: { + name: "Boolean", + }, }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", - type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", + type: { + name: "DateTime", + }, }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } -}; + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime", + }, + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String", + }, + }, + }, + }, + }; -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", +export const DiagnosticUpdateContract: coreClient.CompositeMapper = { + serializedName: "DiagnosticUpdateContract", type: { name: "Composite", - className: "IdentityProviderCreateContract", + className: "DiagnosticUpdateContract", modelProperties: { ...ProxyResource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + alwaysLog: { + serializedName: "properties.alwaysLog", + xmlName: "properties.alwaysLog", type: { - name: "String" - } + name: "String", + }, }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 + name: "String", }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { - name: "String" - } - }, - signupPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "SamplingSettings", }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", - type: { - name: "String" - } }, - signinPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { - name: "String" - } - }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 + name: "Composite", + className: "PipelineDiagnosticSettings", }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", type: { - name: "String" - } + name: "Composite", + className: "PipelineDiagnosticSettings", + }, }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", + type: { + name: "Boolean", }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + }, + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "String" - } + name: "String", + }, }, - clientLibrary: { - constraints: { - MaxLength: 16 + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", + type: { + name: "String", }, - serializedName: "properties.clientLibrary", - xmlName: "properties.clientLibrary", + }, + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", type: { - name: "String" - } + name: "String", + }, }, - clientId: { - constraints: { - MinLength: 1 + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", + type: { + name: "Boolean", }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + }, + }, + }, +}; + +export const ApiManagementWorkspaceLinksResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementWorkspaceLinksResource", + type: { + name: "Composite", + className: "ApiManagementWorkspaceLinksResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - constraints: { - MinLength: 1 + workspaceId: { + serializedName: "properties.workspaceId", + xmlName: "properties.workspaceId", + type: { + name: "String", }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + gateways: { + serializedName: "properties.gateways", + xmlName: "properties.gateways", + xmlElementName: "WorkspaceLinksGateway", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceLinksGateway", + }, + }, + }, + }, + }, + }, }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const WorkspaceContract: coreClient.CompositeMapper = { + serializedName: "WorkspaceContract", type: { name: "Composite", - className: "LoggerContract", + className: "WorkspaceContract", modelProperties: { ...ProxyResource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + displayName: { + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { - constraints: { - MaxLength: 256 - }, serializedName: "properties.description", xmlName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + }, + }, +}; + +export const PolicyWithComplianceContract: coreClient.CompositeMapper = { + serializedName: "PolicyWithComplianceContract", + type: { + name: "Composite", + className: "PolicyWithComplianceContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + referencePolicyId: { + serializedName: "properties.referencePolicyId", + xmlName: "properties.referencePolicyId", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + name: "String", + }, }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + complianceState: { + serializedName: "properties.complianceState", + xmlName: "properties.complianceState", type: { - name: "Boolean" - } + name: "String", + }, }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", type: { name: "Composite", - className: "NamedValueContract", + className: "ResolverResultContract", modelProperties: { ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + name: "String", + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "Boolean" - } - }, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"], }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "String" - } + name: "DateTime", + }, }, - value: { - constraints: { - MaxLength: 4096 + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", + type: { + name: "DateTime", }, - serializedName: "properties.value", - xmlName: "properties.value", + }, + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 + className: "ErrorResponseBody", }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "Composite", + className: "ResolverResultLogItemContract", + }, + }, + }, }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + }, + }, +}; + +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", + type: { + name: "Composite", + className: "ApiCreateOrUpdateProperties", + modelProperties: { + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { - name: "Boolean" - } - }, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + format: { + serializedName: "format", + xmlName: "format", type: { - name: "String" - } + name: "String", + }, }, - value: { - constraints: { - MaxLength: 4096 + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", }, - serializedName: "properties.value", - xmlName: "properties.value", + }, + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { - name: "String" - } + name: "String", + }, }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", +export const ApiManagementGatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_updateHeaders", type: { name: "Composite", - className: "NotificationContract", + className: "ApiManagementGatewayUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + }, +}; + +export const ApiManagementGatewayDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementGateway_deleteHeaders", + type: { + name: "Composite", + className: "ApiManagementGatewayDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", - type: { - name: "Composite", - className: "RecipientsContractProperties" - } - } - } - } + }, + }, }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getEntityTagHeaders", type: { name: "Composite", - className: "RecipientUserContract", + className: "ApiGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const ApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "Api_getHeaders", type: { name: "Composite", - className: "RecipientEmailContract", + className: "ApiGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_createOrUpdateHeaders", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "ApiCreateOrUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } + name: "String", + }, }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + }, + }, +}; + +export const ApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Api_updateHeaders", + type: { + name: "Composite", + className: "ApiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + }, + }, +}; + +export const ApiDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "Api_deleteHeaders", + type: { + name: "Composite", + className: "ApiDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - useInTestConsole: { - serializedName: "properties.useInTestConsole", - xmlName: "properties.useInTestConsole", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "Boolean" - } + name: "String", + }, }, - useInApiDocumentation: { - serializedName: "properties.useInApiDocumentation", - xmlName: "properties.useInApiDocumentation", + }, + }, +}; + +export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", +export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getHeaders", type: { name: "Composite", - className: "PolicyDescriptionContract", + className: "ApiReleaseGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - readOnly: true, - xmlName: "properties.description", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const PolicyFragmentContract: coreClient.CompositeMapper = { - serializedName: "PolicyFragmentContract", +export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_createOrUpdateHeaders", type: { name: "Composite", - className: "PolicyFragmentContract", + className: "ApiReleaseCreateOrUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 1000 + name: "String", }, - 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", +export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_updateHeaders", type: { name: "Composite", - className: "ResourceCollectionValueItem", + className: "ApiReleaseUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties - } - } + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, }; -export const PortalConfigContract: coreClient.CompositeMapper = { - serializedName: "PortalConfigContract", +export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getEntityTagHeaders", type: { name: "Composite", - className: "PortalConfigContract", + className: "ApiOperationGetEntityTagHeaders", 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", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "PortalConfigPropertiesSignup" - } + name: "String", + }, }, - delegation: { - serializedName: "properties.delegation", - xmlName: "properties.delegation", + }, + }, +}; + +export const ApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getHeaders", + type: { + name: "Composite", + className: "ApiOperationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "PortalConfigDelegationProperties" - } + name: "String", + }, }, - cors: { - serializedName: "properties.cors", - xmlName: "properties.cors", + }, + }, +}; + +export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "PortalConfigCorsProperties" - } + name: "String", + }, }, - csp: { - serializedName: "properties.csp", - xmlName: "properties.csp", - type: { - name: "Composite", - className: "PortalConfigCspProperties" - } - } - } - } + }, + }, }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_updateHeaders", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ApiOperationUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - statusDetails: { - constraints: { - MaxLength: 2000 + }, + }, +}; + +export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", - type: { - name: "String" - } }, - status: { - serializedName: "properties.status", - readOnly: true, - xmlName: "properties.status", + }, + }; + +export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } + }, + }, +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + }, + }; + +export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByOperationHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", - type: { - name: "DateTime" - } - } - } - } + }, + }, }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", +export const TagGetByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByOperationHeaders", type: { name: "Composite", - className: "PortalSettingsContract", + className: "TagGetByOperationHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } - }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + }, + }, +}; + +export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByApiHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + name: "String", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + }, + }, +}; + +export const TagGetByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByApiHeaders", + type: { + name: "Composite", + className: "TagGetByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + }, + }, +}; + +export const TagAssignToApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_assignToApiHeaders", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByProductHeaders", type: { name: "Composite", - className: "PortalSigninSettings", + className: "TagGetEntityStateByProductHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const TagGetByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByProductHeaders", type: { name: "Composite", - className: "PortalSignupSettings", + className: "TagGetByProductHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Boolean" - } + name: "String", + }, }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", - type: { - name: "Composite", - className: "TermsOfServiceProperties" - } - } - } - } + }, + }, }; -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", +export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateHeaders", type: { name: "Composite", - className: "PortalDelegationSettings", + className: "TagGetEntityStateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", - type: { - name: "String" - } - }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + }, + }, +}; + +export const TagGetHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getHeaders", + type: { + name: "Composite", + className: "TagGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" - } + name: "String", + }, }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" - } - } - } - } + }, + }, }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_createOrUpdateHeaders", type: { name: "Composite", - className: "SubscriptionContract", + className: "TagCreateOrUpdateHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + }, + }, +}; + +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 100 + name: "String", }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } + }, + }, +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", + }, + }; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", - type: { - name: "DateTime" - } + }, + }, +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + }, + }; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", - type: { - name: "DateTime" - } + }, + }, +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + }, + }; + +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } - }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + name: "String", }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", - type: { - name: "String" - } }, - secondaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 + }, + }, +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", - type: { - name: "String" - } }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + }, + }; + +export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getHeaders", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "ApiPolicyGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + }, + }, +}; + +export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "any" - } + name: "String", + }, }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + }, + }, }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getEntityTagHeaders", type: { name: "Composite", - className: "TenantSettingsContract", + className: "ApiSchemaGetEntityTagHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", +export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getHeaders", type: { name: "Composite", - className: "AccessInformationContract", + className: "ApiSchemaGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", - type: { - name: "String" - } - }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } + }, + }, }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "OperationResultContract", + className: "ApiSchemaCreateOrUpdateHeaders", 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", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "Composite", - className: "ErrorResponseBody" - } + name: "String", + }, }, - 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", +export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "TenantConfigurationSyncStateContract", + className: "ApiDiagnosticGetEntityTagHeaders", 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", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const DocumentationContract: coreClient.CompositeMapper = { - serializedName: "DocumentationContract", +export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getHeaders", type: { name: "Composite", - className: "DocumentationContract", + className: "ApiDiagnosticGetHeaders", modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const ResolverResultContract: coreClient.CompositeMapper = { - serializedName: "ResolverResultContract", +export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ResolverResultContract", + className: "ApiDiagnosticCreateOrUpdateHeaders", 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", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "DateTime" - } + name: "String", + }, }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + }, + }, +}; + +export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_updateHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } + name: "String", + }, }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + }, + }, +}; + +export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "Composite", - className: "ErrorResponseBody" - } + name: "String", + }, }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "ResolverResultLogItemContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResolverResultLogItemContract" - } - } - } - } - } - } + }, + }, }; -export const ApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getEntityTagHeaders", +export const ApiIssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getHeaders", type: { name: "Composite", - className: "ApiGetEntityTagHeaders", + className: "ApiIssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiGetHeaders: coreClient.CompositeMapper = { - serializedName: "Api_getHeaders", +export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiGetHeaders", + className: "ApiIssueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_createOrUpdateHeaders", +export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_updateHeaders", type: { name: "Composite", - className: "ApiCreateOrUpdateHeaders", + className: "ApiIssueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Api_updateHeaders", +export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getEntityTagHeaders", type: { name: "Composite", - className: "ApiUpdateHeaders", + className: "ApiIssueCommentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getEntityTagHeaders", +export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getHeaders", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "ApiIssueCommentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueComment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getHeaders", +export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getHeaders", type: { name: "Composite", - className: "ApiReleaseGetHeaders", + className: "ApiIssueAttachmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiIssueAttachment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_createOrUpdateHeaders", +export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getHeaders", type: { name: "Composite", - className: "ApiReleaseCreateOrUpdateHeaders", + className: "ApiTagDescriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiTagDescription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_updateHeaders", +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", type: { name: "Composite", - className: "ApiReleaseUpdateHeaders", + className: "ApiWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getEntityTagHeaders", +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "ApiWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getHeaders", +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "ApiWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_createOrUpdateHeaders", +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", type: { name: "Composite", - className: "ApiOperationCreateOrUpdateHeaders", + className: "ApiWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_updateHeaders", +export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationUpdateHeaders", + className: "ApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getEntityTagHeaders", +export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "ApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getHeaders", +export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "ApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_createOrUpdateHeaders", +export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_updateHeaders", type: { name: "Composite", - className: "ApiOperationPolicyCreateOrUpdateHeaders", + className: "ApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByOperationHeaders", +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "AuthorizationProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByOperationHeaders", +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "AuthorizationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByApiHeaders", +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "AuthorizationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = + { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByApiHeaders", +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "AuthorizationLoginLinksPostHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagAssignToApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_assignToApiHeaders", +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", type: { name: "Composite", - className: "TagAssignToApiHeaders", + className: "AuthorizationAccessPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_getEntityTagHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByProductHeaders", +export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getHeaders", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "AuthorizationServerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByProductHeaders", +export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_updateHeaders", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "AuthorizationServerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "AuthorizationServer_listSecretsHeaders", + type: { + name: "Composite", + className: "AuthorizationServerListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateHeaders", +export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "BackendGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagGetHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getHeaders", +export const BackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getHeaders", type: { name: "Composite", - className: "TagGetHeaders", + className: "BackendGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_createOrUpdateHeaders", +export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_createOrUpdateHeaders", type: { name: "Composite", - className: "TagCreateOrUpdateHeaders", + className: "BackendCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const BackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_updateHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "BackendUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getEntityTagHeaders", +export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getEntityTagHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetEntityTagHeaders", + className: "CacheGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getHeaders", +export const CacheGetHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetHeaders", + className: "CacheGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_createOrUpdateHeaders", +export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverCreateOrUpdateHeaders", + className: "CacheCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_updateHeaders", +export const CacheUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_updateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverUpdateHeaders", + className: "CacheUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", +export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getEntityTagHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + className: "CertificateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getHeaders", +export const CertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetHeaders", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", +export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getEntityTagHeaders", +export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_refreshSecretHeaders", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "CertificateRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementClientPerformConnectivityCheckAsyncHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiManagementClient_performConnectivityCheckAsyncHeaders", + type: { + name: "Composite", + className: "ApiManagementClientPerformConnectivityCheckAsyncHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "ContentTypeGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_createOrUpdateHeaders", +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiPolicyCreateOrUpdateHeaders", + className: "ContentTypeCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getEntityTagHeaders", +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "ContentItemGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getHeaders", +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "ContentItemGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_createOrUpdateHeaders", +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiSchemaCreateOrUpdateHeaders", + className: "ContentItemCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getEntityTagHeaders", +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_createOrUpdateHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "ApiDiagnosticCreateOrUpdateHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_updateHeaders", +export const ApiManagementServiceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_updateHeaders", type: { name: "Composite", - className: "ApiDiagnosticUpdateHeaders", + className: "ApiManagementServiceUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getEntityTagHeaders", +export const ApiManagementServiceDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_deleteHeaders", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "ApiManagementServiceDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = + { + serializedName: "ApiManagementService_migrateToStv2Headers", + type: { + name: "Composite", + className: "ApiManagementServiceMigrateToStv2Headers", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = + { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiIssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getHeaders", +export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_createOrUpdateHeaders", +export const DiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getHeaders", type: { name: "Composite", - className: "ApiIssueCreateOrUpdateHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_updateHeaders", +export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueUpdateHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getEntityTagHeaders", +export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_updateHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "DiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getHeaders", +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "DocumentationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_createOrUpdateHeaders", +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", type: { name: "Composite", - className: "ApiIssueCommentCreateOrUpdateHeaders", + className: "DocumentationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getEntityTagHeaders", +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "DocumentationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getHeaders", +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "DocumentationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_createOrUpdateHeaders", +export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentCreateOrUpdateHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getEntityTagHeaders", +export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetEntityTagHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getHeaders", +export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_updateHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetHeaders", + className: "EmailTemplateUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_createOrUpdateHeaders", +export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getEntityTagHeaders", type: { name: "Composite", - className: "ApiTagDescriptionCreateOrUpdateHeaders", + className: "GatewayGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getEntityTagHeaders", +export const GatewayGetHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getHeaders", type: { name: "Composite", - className: "ApiWikiGetEntityTagHeaders", + className: "GatewayGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getHeaders", +export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiWikiGetHeaders", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_createOrUpdateHeaders", +export const GatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_updateHeaders", type: { name: "Composite", - className: "ApiWikiCreateOrUpdateHeaders", + className: "GatewayUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_updateHeaders", +export const GatewayListKeysHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_listKeysHeaders", type: { name: "Composite", - className: "ApiWikiUpdateHeaders", + className: "GatewayListKeysHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_getHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getEntityTagHeaders", +export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayApi_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_getHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ApiManagementGatewayConfigConnectionDeleteHeaders: coreClient.CompositeMapper = + { + serializedName: "ApiManagementGatewayConfigConnection_deleteHeaders", + type: { + name: "Composite", + className: "ApiManagementGatewayConfigConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getHeaders", +export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_createOrUpdateHeaders", +export const GroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getHeaders", type: { name: "Composite", - className: "ApiVersionSetCreateOrUpdateHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_updateHeaders", +export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiVersionSetUpdateHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getEntityTagHeaders", +export const GroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "GroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getHeaders", +export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_createOrUpdateHeaders", +export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getHeaders", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "IdentityProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "IdentityProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_updateHeaders", +export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "IdentityProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_listSecretsHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "IdentityProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_getHeaders", +export const IssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "Issue_getHeaders", type: { name: "Composite", - className: "AuthorizationProviderGetHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_createOrUpdateHeaders", +export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationProviderCreateOrUpdateHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_getHeaders", +export const LoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getHeaders", type: { name: "Composite", - className: "AuthorizationGetHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_createOrUpdateHeaders", +export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationCreateOrUpdateHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_confirmConsentCodeHeaders", +export const LoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_updateHeaders", type: { name: "Composite", - className: "AuthorizationConfirmConsentCodeHeaders", + className: "LoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationLoginLinks_postHeaders", +export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationLoginLinksPostHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_getHeaders", +export const NamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyGetHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", +export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + className: "NamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getEntityTagHeaders", +export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_updateHeaders", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendGetHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getHeaders", +export const NamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_listValueHeaders", type: { name: "Composite", - className: "BackendGetHeaders", + className: "NamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_createOrUpdateHeaders", +export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "NamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_getEntityTagHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const BackendUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_updateHeaders", +export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getHeaders", type: { name: "Composite", - className: "BackendUpdateHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getEntityTagHeaders", +export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_updateHeaders", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "OpenIdConnectProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "OpenIdConnectProvider_listSecretsHeaders", + type: { + name: "Composite", + className: "OpenIdConnectProviderListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const CacheGetHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getHeaders", +export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getEntityTagHeaders", type: { name: "Composite", - className: "CacheGetHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_createOrUpdateHeaders", +export const PolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getHeaders", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "PolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CacheUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_updateHeaders", +export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_createOrUpdateHeaders", type: { name: "Composite", - className: "CacheUpdateHeaders", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getEntityTagHeaders", +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "PolicyFragmentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateGetHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getHeaders", +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "PolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_createOrUpdateHeaders", +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "PolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_getEntityTagHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_refreshSecretHeaders", +export const PolicyRestrictionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_getHeaders", type: { name: "Composite", - className: "CertificateRefreshSecretHeaders", + className: "PolicyRestrictionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestriction_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const PolicyRestrictionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyRestriction_updateHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "PolicyRestrictionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PolicyRestrictionValidationsByServiceHeaders: coreClient.CompositeMapper = + { + serializedName: "PolicyRestrictionValidations_byServiceHeaders", + type: { + name: "Composite", + className: "PolicyRestrictionValidationsByServiceHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "PortalConfigGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "PortalConfigGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getEntityTagHeaders", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "PortalRevisionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "PortalRevisionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { - serializedName: "DeletedServices_purgeHeaders", +export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_createOrUpdateHeaders", type: { name: "Composite", - className: "DeletedServicesPurgeHeaders", + className: "PortalRevisionCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } -}; - -export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_restoreHeaders", - type: { - name: "Composite", - className: "ApiManagementServiceRestoreHeaders", - modelProperties: { + name: "String", + }, + }, location: { serializedName: "location", xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_backupHeaders", +export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_updateHeaders", type: { name: "Composite", - className: "ApiManagementServiceBackupHeaders", + className: "PortalRevisionUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_migrateToStv2Headers", +export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceMigrateToStv2Headers", + className: "SignInSettingsGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { - serializedName: - "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", +export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getHeaders", type: { name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + className: "SignInSettingsGetHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getEntityTagHeaders", +export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getEntityTagHeaders", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "SignUpSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getHeaders", +export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getHeaders", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "SignUpSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "DelegationSettings_getEntityTagHeaders", + type: { + name: "Composite", + className: "DelegationSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_createOrUpdateHeaders", +export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getHeaders", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "DelegationSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionCreateOrUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + serializedName: "PrivateEndpointConnection_deleteHeaders", + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_updateHeaders", +export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getEntityTagHeaders", type: { name: "Composite", - className: "DiagnosticUpdateHeaders", + className: "ProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getEntityTagHeaders", +export const ProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getHeaders", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "ProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getHeaders", +export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_createOrUpdateHeaders", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_updateHeaders", +export const ProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_updateHeaders", type: { name: "Composite", - className: "EmailTemplateUpdateHeaders", + className: "ProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getEntityTagHeaders", +export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayGetEntityTagHeaders", + className: "ProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayGetHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getHeaders", +export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getHeaders", type: { name: "Composite", - className: "GatewayGetHeaders", + className: "ProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_createOrUpdateHeaders", +export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayCreateOrUpdateHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_updateHeaders", +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayUpdateHeaders", + className: "ProductWikiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayListKeysHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_listKeysHeaders", +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", type: { name: "Composite", - className: "GatewayListKeysHeaders", + className: "ProductWikiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetEntityTagHeaders", + className: "ProductWikiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getHeaders", +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetHeaders", + className: "ProductWikiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + className: "ProductWikisListHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayApi_getEntityTagHeaders", +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", type: { name: "Composite", - className: "GatewayApiGetEntityTagHeaders", + className: "ProductWikisListNextHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", +export const ProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductApiLink_getHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetEntityTagHeaders", + className: "ProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getHeaders", +export const ProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductGroupLink_getHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetHeaders", + className: "ProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", +export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + className: "GlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getEntityTagHeaders", +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "GlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupGetHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getHeaders", +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "GroupGetHeaders", + className: "GlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_createOrUpdateHeaders", +export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantSettings_getHeaders", type: { name: "Composite", - className: "GroupCreateOrUpdateHeaders", + className: "TenantSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GroupUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_updateHeaders", +export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getEntityTagHeaders", type: { name: "Composite", - className: "GroupUpdateHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getEntityTagHeaders", +export const SubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getHeaders", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getHeaders", +export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_createOrUpdateHeaders", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_createOrUpdateHeaders", +export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_updateHeaders", type: { name: "Composite", - className: "IdentityProviderCreateOrUpdateHeaders", + className: "SubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_updateHeaders", +export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_listSecretsHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateHeaders", + className: "SubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_listSecretsHeaders", +export const TagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagApiLink_getHeaders", type: { name: "Composite", - className: "IdentityProviderListSecretsHeaders", + className: "TagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const IssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "Issue_getHeaders", +export const TagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagOperationLink_getHeaders", type: { name: "Composite", - className: "IssueGetHeaders", + className: "TagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getEntityTagHeaders", +export const TagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagProductLink_getHeaders", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "TagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerGetHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getHeaders", +export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getEntityTagHeaders", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_createOrUpdateHeaders", +export const TenantAccessGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getHeaders", type: { name: "Composite", - className: "LoggerCreateOrUpdateHeaders", + className: "TenantAccessGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const LoggerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_updateHeaders", +export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_createHeaders", type: { name: "Composite", - className: "LoggerUpdateHeaders", + className: "TenantAccessCreateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getEntityTagHeaders", +export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_updateHeaders", type: { name: "Composite", - className: "NamedValueGetEntityTagHeaders", + className: "TenantAccessUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueGetHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getHeaders", +export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_listSecretsHeaders", type: { name: "Composite", - className: "NamedValueGetHeaders", + className: "TenantAccessListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_createOrUpdateHeaders", +export const TenantConfigurationDeployHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_deployHeaders", type: { name: "Composite", - className: "NamedValueCreateOrUpdateHeaders", + className: "TenantConfigurationDeployHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_updateHeaders", +export const TenantConfigurationSaveHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_saveHeaders", type: { name: "Composite", - className: "NamedValueUpdateHeaders", + className: "TenantConfigurationSaveHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueListValueHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_listValueHeaders", +export const TenantConfigurationValidateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_validateHeaders", type: { name: "Composite", - className: "NamedValueListValueHeaders", + className: "TenantConfigurationValidateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_refreshSecretHeaders", +export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "User_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueRefreshSecretHeaders", + className: "UserGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getEntityTagHeaders", +export const UserGetHeaders: coreClient.CompositeMapper = { + serializedName: "User_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "UserGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getHeaders", +export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_createOrUpdateHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", +export const UserUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_updateHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderCreateOrUpdateHeaders", + className: "UserUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_updateHeaders", +export const UserDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "User_deleteHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderUpdateHeaders", + className: "UserDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_listSecretsHeaders", +export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "UserSubscription_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderListSecretsHeaders", + className: "UserSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getEntityTagHeaders", +export const WorkspaceBackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceBackend_getEntityTagHeaders", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "WorkspaceBackendGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getHeaders", +export const WorkspaceBackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceBackend_getHeaders", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "WorkspaceBackendGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceBackendCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceBackend_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceBackendCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_createOrUpdateHeaders", +export const WorkspaceBackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceBackend_updateHeaders", type: { name: "Composite", - className: "PolicyCreateOrUpdateHeaders", + className: "WorkspaceBackendUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceCertificateGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceCertificate_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceCertificateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getEntityTagHeaders", +export const WorkspaceCertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceCertificate_getHeaders", type: { name: "Composite", - className: "PolicyFragmentGetEntityTagHeaders", + className: "WorkspaceCertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceCertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceCertificate_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceCertificateCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceCertificateRefreshSecretHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceCertificate_refreshSecretHeaders", + type: { + name: "Composite", + className: "WorkspaceCertificateRefreshSecretHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceDiagnostic_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getHeaders", +export const WorkspaceDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceDiagnostic_getHeaders", type: { name: "Composite", - className: "PolicyFragmentGetHeaders", + className: "WorkspaceDiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceDiagnostic_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceDiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_createOrUpdateHeaders", +export const WorkspaceDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceDiagnostic_updateHeaders", type: { name: "Composite", - className: "PolicyFragmentCreateOrUpdateHeaders", + className: "WorkspaceDiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiDiagnostic_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getEntityTagHeaders", +export const WorkspaceApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiDiagnostic_getHeaders", type: { name: "Composite", - className: "PortalConfigGetEntityTagHeaders", + className: "WorkspaceApiDiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiDiagnostic_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiDiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PortalConfigGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getHeaders", +export const WorkspaceApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiDiagnostic_updateHeaders", type: { name: "Composite", - className: "PortalConfigGetHeaders", + className: "WorkspaceApiDiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getEntityTagHeaders", +export const WorkspaceLoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceLogger_getEntityTagHeaders", type: { name: "Composite", - className: "PortalRevisionGetEntityTagHeaders", + className: "WorkspaceLoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getHeaders", +export const WorkspaceLoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceLogger_getHeaders", type: { name: "Composite", - className: "PortalRevisionGetHeaders", + className: "WorkspaceLoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceLoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceLogger_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceLoggerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_createOrUpdateHeaders", +export const WorkspaceLoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceLogger_updateHeaders", type: { name: "Composite", - className: "PortalRevisionCreateOrUpdateHeaders", + className: "WorkspaceLoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_updateHeaders", +export const WorkspaceGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getEntityTagHeaders", type: { name: "Composite", - className: "PortalRevisionUpdateHeaders", + className: "WorkspaceGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getEntityTagHeaders", +export const WorkspaceGetHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getHeaders", type: { name: "Composite", - className: "SignInSettingsGetEntityTagHeaders", + className: "WorkspaceGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getHeaders", +export const WorkspaceCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_createOrUpdateHeaders", type: { name: "Composite", - className: "SignInSettingsGetHeaders", + className: "WorkspaceCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getEntityTagHeaders", +export const WorkspaceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_updateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetEntityTagHeaders", + className: "WorkspaceUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getHeaders", +export const WorkspacePolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getEntityTagHeaders", type: { name: "Composite", - className: "SignUpSettingsGetHeaders", + className: "WorkspacePolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getEntityTagHeaders", +export const WorkspacePolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getHeaders", type: { name: "Composite", - className: "DelegationSettingsGetEntityTagHeaders", + className: "WorkspacePolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceNamedValueGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getHeaders", +export const WorkspaceNamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getHeaders", type: { name: "Composite", - className: "DelegationSettingsGetHeaders", + className: "WorkspaceNamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getEntityTagHeaders", +export const WorkspaceNamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_updateHeaders", type: { name: "Composite", - className: "ProductGetEntityTagHeaders", + className: "WorkspaceNamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductGetHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getHeaders", +export const WorkspaceNamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_listValueHeaders", type: { name: "Composite", - className: "ProductGetHeaders", + className: "WorkspaceNamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceNamedValueRefreshSecretHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceNamedValue_refreshSecretHeaders", + type: { + name: "Composite", + className: "WorkspaceNamedValueRefreshSecretHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceGlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_createOrUpdateHeaders", +export const WorkspaceGlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getHeaders", type: { name: "Composite", - className: "ProductCreateOrUpdateHeaders", + className: "WorkspaceGlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceGlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceGlobalSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceGlobalSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspacePolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_updateHeaders", +export const WorkspacePolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getHeaders", type: { name: "Composite", - className: "ProductUpdateHeaders", + className: "WorkspacePolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspacePolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspacePolicyFragment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspacePolicyFragmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getEntityTagHeaders", +export const WorkspaceGroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getEntityTagHeaders", type: { name: "Composite", - className: "ProductPolicyGetEntityTagHeaders", + className: "WorkspaceGroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getHeaders", +export const WorkspaceGroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getHeaders", type: { name: "Composite", - className: "ProductPolicyGetHeaders", + className: "WorkspaceGroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_createOrUpdateHeaders", +export const WorkspaceGroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductPolicyCreateOrUpdateHeaders", + className: "WorkspaceGroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getEntityTagHeaders", +export const WorkspaceGroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_updateHeaders", type: { name: "Composite", - className: "ProductWikiGetEntityTagHeaders", + className: "WorkspaceGroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getHeaders", +export const WorkspaceSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getHeaders", type: { name: "Composite", - className: "ProductWikiGetHeaders", + className: "WorkspaceSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_createOrUpdateHeaders", +export const WorkspaceSubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_updateHeaders", type: { name: "Composite", - className: "ProductWikiCreateOrUpdateHeaders", + className: "WorkspaceSubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceSubscriptionListSecretsHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceSubscription_listSecretsHeaders", + type: { + name: "Composite", + className: "WorkspaceSubscriptionListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_updateHeaders", +export const WorkspaceApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getHeaders", type: { name: "Composite", - className: "ProductWikiUpdateHeaders", + className: "WorkspaceApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiVersionSet_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const ProductWikisListHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listHeaders", +export const WorkspaceApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_updateHeaders", type: { name: "Composite", - className: "ProductWikisListHeaders", + className: "WorkspaceApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listNextHeaders", +export const WorkspaceApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getEntityTagHeaders", type: { name: "Composite", - className: "ProductWikisListNextHeaders", + className: "WorkspaceApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getEntityTagHeaders", +export const WorkspaceApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getHeaders", type: { name: "Composite", - className: "GlobalSchemaGetEntityTagHeaders", + className: "WorkspaceApiGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getHeaders", +export const WorkspaceApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_createOrUpdateHeaders", type: { name: "Composite", - className: "GlobalSchemaGetHeaders", + className: "WorkspaceApiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, }; -export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_createOrUpdateHeaders", +export const WorkspaceApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_updateHeaders", type: { name: "Composite", - className: "GlobalSchemaCreateOrUpdateHeaders", + className: "WorkspaceApiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantSettings_getHeaders", +export const WorkspaceApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getHeaders", type: { name: "Composite", - className: "TenantSettingsGetHeaders", + className: "WorkspaceApiReleaseGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getEntityTagHeaders", +export const WorkspaceApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_updateHeaders", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "WorkspaceApiReleaseUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getHeaders", +export const WorkspaceApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getHeaders", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "WorkspaceApiOperationGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_createOrUpdateHeaders", +export const WorkspaceApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_updateHeaders", type: { name: "Composite", - className: "SubscriptionCreateOrUpdateHeaders", + className: "WorkspaceApiOperationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyGetHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_updateHeaders", +export const WorkspaceApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getHeaders", type: { name: "Composite", - className: "SubscriptionUpdateHeaders", + className: "WorkspaceApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const WorkspaceApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_listSecretsHeaders", +export const WorkspaceApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getHeaders", type: { name: "Composite", - className: "SubscriptionListSecretsHeaders", + className: "WorkspaceApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceApiSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + xmlName: "location", + type: { + name: "String", + }, + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + xmlName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getEntityTagHeaders", +export const WorkspaceProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getEntityTagHeaders", type: { name: "Composite", - className: "TenantAccessGetEntityTagHeaders", + className: "WorkspaceProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getHeaders", +export const WorkspaceProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getHeaders", type: { name: "Composite", - className: "TenantAccessGetHeaders", + className: "WorkspaceProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProduct_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_createHeaders", +export const WorkspaceProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_updateHeaders", type: { name: "Composite", - className: "TenantAccessCreateHeaders", + className: "WorkspaceProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_updateHeaders", +export const WorkspaceProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductApiLink_getHeaders", type: { name: "Composite", - className: "TenantAccessUpdateHeaders", + className: "WorkspaceProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_listSecretsHeaders", +export const WorkspaceProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductGroupLink_getHeaders", type: { name: "Composite", - className: "TenantAccessListSecretsHeaders", + className: "WorkspaceProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "User_getEntityTagHeaders", +export const WorkspaceProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getHeaders", type: { name: "Composite", - className: "UserGetEntityTagHeaders", + className: "WorkspaceProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const WorkspaceProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + serializedName: "WorkspaceProductPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "WorkspaceProductPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String", + }, + }, + }, + }, + }; -export const UserGetHeaders: coreClient.CompositeMapper = { - serializedName: "User_getHeaders", +export const WorkspaceTagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getEntityStateHeaders", type: { name: "Composite", - className: "UserGetHeaders", + className: "WorkspaceTagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_createOrUpdateHeaders", +export const WorkspaceTagGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getHeaders", type: { name: "Composite", - className: "UserCreateOrUpdateHeaders", + className: "WorkspaceTagGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_updateHeaders", +export const WorkspaceTagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_createOrUpdateHeaders", type: { name: "Composite", - className: "UserUpdateHeaders", + className: "WorkspaceTagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "UserSubscription_getHeaders", +export const WorkspaceTagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_updateHeaders", type: { name: "Composite", - className: "UserSubscriptionGetHeaders", + className: "WorkspaceTagUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getEntityTagHeaders", +export const WorkspaceTagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagApiLink_getHeaders", type: { name: "Composite", - className: "DocumentationGetEntityTagHeaders", + className: "WorkspaceTagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getHeaders", +export const WorkspaceTagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagOperationLink_getHeaders", type: { name: "Composite", - className: "DocumentationGetHeaders", + className: "WorkspaceTagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_createOrUpdateHeaders", +export const WorkspaceTagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagProductLink_getHeaders", type: { name: "Composite", - className: "DocumentationCreateOrUpdateHeaders", + className: "WorkspaceTagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", xmlName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_updateHeaders", +export const OperationsResultsGetHeaders: coreClient.CompositeMapper = { + serializedName: "OperationsResults_getHeaders", type: { name: "Composite", - className: "DocumentationUpdateHeaders", + className: "OperationsResultsGetHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 5fbad6e2b16b..c426a28b506a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -9,9 +9,11 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { + ApiManagementGatewayResource as ApiManagementGatewayResourceMapper, + ApiManagementGatewayUpdateParameters as ApiManagementGatewayUpdateParametersMapper, ApiCreateOrUpdateParameter as ApiCreateOrUpdateParameterMapper, ApiUpdateContract as ApiUpdateContractMapper, ApiReleaseContract as ApiReleaseContractMapper, @@ -32,13 +34,13 @@ import { WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, - AuthorizationServerContract as AuthorizationServerContractMapper, - AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, AuthorizationProviderContract as AuthorizationProviderContractMapper, AuthorizationContract as AuthorizationContractMapper, AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, + AuthorizationServerContract as AuthorizationServerContractMapper, + AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -51,15 +53,21 @@ import { ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, + MigrateToStv2Contract as MigrateToStv2ContractMapper, ApiManagementServiceCheckNameAvailabilityParameters as ApiManagementServiceCheckNameAvailabilityParametersMapper, ApiManagementServiceApplyNetworkConfigurationParameters as ApiManagementServiceApplyNetworkConfigurationParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper, EmailTemplateUpdateParameters as EmailTemplateUpdateParametersMapper, GatewayContract as GatewayContractMapper, GatewayKeyRegenerationRequestContract as GatewayKeyRegenerationRequestContractMapper, GatewayTokenRequestContract as GatewayTokenRequestContractMapper, + GatewayListDebugCredentialsContract as GatewayListDebugCredentialsContractMapper, + GatewayListTraceContract as GatewayListTraceContractMapper, GatewayHostnameConfigurationContract as GatewayHostnameConfigurationContractMapper, AssociationContract as AssociationContractMapper, GatewayCertificateAuthorityContract as GatewayCertificateAuthorityContractMapper, + ApiManagementGatewayConfigConnectionResource as ApiManagementGatewayConfigConnectionResourceMapper, GroupCreateParameters as GroupCreateParametersMapper, GroupUpdateParameters as GroupUpdateParametersMapper, IdentityProviderCreateContract as IdentityProviderCreateContractMapper, @@ -71,6 +79,8 @@ import { OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, PolicyFragmentContract as PolicyFragmentContractMapper, + PolicyRestrictionContract as PolicyRestrictionContractMapper, + PolicyRestrictionUpdateContract as PolicyRestrictionUpdateContractMapper, PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, @@ -79,10 +89,15 @@ import { PrivateEndpointConnectionRequest as PrivateEndpointConnectionRequestMapper, ProductContract as ProductContractMapper, ProductUpdateParameters as ProductUpdateParametersMapper, + ProductApiLinkContract as ProductApiLinkContractMapper, + ProductGroupLinkContract as ProductGroupLinkContractMapper, QuotaCounterValueUpdateContract as QuotaCounterValueUpdateContractMapper, GlobalSchemaContract as GlobalSchemaContractMapper, SubscriptionCreateParameters as SubscriptionCreateParametersMapper, SubscriptionUpdateParameters as SubscriptionUpdateParametersMapper, + TagApiLinkContract as TagApiLinkContractMapper, + TagOperationLinkContract as TagOperationLinkContractMapper, + TagProductLinkContract as TagProductLinkContractMapper, AccessInformationCreateParameters as AccessInformationCreateParametersMapper, AccessInformationUpdateParameters as AccessInformationUpdateParametersMapper, DeployConfigurationParameters as DeployConfigurationParametersMapper, @@ -90,8 +105,8 @@ import { UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, UserTokenParameters as UserTokenParametersMapper, - DocumentationContract as DocumentationContractMapper, - DocumentationUpdateContract as DocumentationUpdateContractMapper + DiagnosticUpdateContract as DiagnosticUpdateContractMapper, + WorkspaceContract as WorkspaceContractMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -101,9 +116,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -113,10 +128,10 @@ export const $host: OperationURLParameter = { required: true, xmlName: "$host", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -124,15 +139,15 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const serviceName: OperationURLParameter = { @@ -141,15 +156,91 @@ export const serviceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), MaxLength: 50, - MinLength: 1 + MinLength: 1, }, serializedName: "serviceName", required: true, xmlName: "serviceName", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-09-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + xmlName: "subscriptionId", + type: { + name: "Uuid", + }, + }, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + xmlName: "nextLink", + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String", + }, + }, +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayResourceMapper, +}; + +export const gatewayName: OperationURLParameter = { + parameterPath: "gatewayName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), + MaxLength: 45, + MinLength: 1, + }, + serializedName: "gatewayName", + required: true, + xmlName: "gatewayName", + type: { + name: "String", + }, + }, +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayUpdateParametersMapper, }; export const filter: OperationQueryParameter = { @@ -158,37 +249,37 @@ export const filter: OperationQueryParameter = { serializedName: "$filter", xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { parameterPath: ["options", "top"], mapper: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "$top", xmlName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const skip: OperationQueryParameter = { parameterPath: ["options", "skip"], mapper: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "$skip", xmlName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const tags: OperationQueryParameter = { @@ -197,9 +288,9 @@ export const tags: OperationQueryParameter = { serializedName: "tags", xmlName: "tags", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandApiVersionSet: OperationQueryParameter = { @@ -208,36 +299,9 @@ export const expandApiVersionSet: OperationQueryParameter = { serializedName: "expandApiVersionSet", xmlName: "expandApiVersionSet", type: { - name: "Boolean" - } - } -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-08-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1 + name: "Boolean", }, - serializedName: "subscriptionId", - required: true, - xmlName: "subscriptionId", - type: { - name: "String" - } - } + }, }; export const apiId: OperationURLParameter = { @@ -246,32 +310,20 @@ export const apiId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: ApiCreateOrUpdateParameterMapper + mapper: ApiCreateOrUpdateParameterMapper, }; export const ifMatch: OperationParameter = { @@ -280,14 +332,14 @@ export const ifMatch: OperationParameter = { serializedName: "If-Match", xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters1: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ApiUpdateContractMapper + mapper: ApiUpdateContractMapper, }; export const ifMatch1: OperationParameter = { @@ -297,9 +349,9 @@ export const ifMatch1: OperationParameter = { required: true, xmlName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deleteRevisions: OperationQueryParameter = { @@ -308,9 +360,9 @@ export const deleteRevisions: OperationQueryParameter = { serializedName: "deleteRevisions", xmlName: "deleteRevisions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedApis: OperationQueryParameter = { @@ -319,22 +371,9 @@ export const includeNotTaggedApis: OperationQueryParameter = { serializedName: "includeNotTaggedApis", xmlName: "includeNotTaggedApis", type: { - name: "Boolean" - } - } -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - xmlName: "nextLink", - type: { - name: "String" - } + name: "Boolean", + }, }, - skipEncoding: true }; export const apiId1: OperationURLParameter = { @@ -342,15 +381,15 @@ export const apiId1: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "apiId", required: true, xmlName: "apiId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const releaseId: OperationURLParameter = { @@ -359,20 +398,20 @@ export const releaseId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "releaseId", required: true, xmlName: "releaseId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters2: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: ApiReleaseContractMapper + mapper: ApiReleaseContractMapper, }; export const operationId: OperationURLParameter = { @@ -380,25 +419,25 @@ export const operationId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "operationId", required: true, xmlName: "operationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters3: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: OperationContractMapper + mapper: OperationContractMapper, }; -export const parameters4: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: OperationUpdateContractMapper + mapper: OperationUpdateContractMapper, }; export const policyId: OperationURLParameter = { @@ -408,9 +447,9 @@ export const policyId: OperationURLParameter = { required: true, xmlName: "policyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format: OperationQueryParameter = { @@ -420,14 +459,14 @@ export const format: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters5: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: PolicyContractMapper + mapper: PolicyContractMapper, }; export const tagId: OperationURLParameter = { @@ -436,15 +475,15 @@ export const tagId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagId", required: true, xmlName: "tagId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const productId: OperationURLParameter = { @@ -452,15 +491,15 @@ export const productId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "productId", required: true, xmlName: "productId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationQueryParameter = { @@ -469,14 +508,14 @@ export const scope: OperationQueryParameter = { serializedName: "scope", xmlName: "scope", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters6: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: TagCreateUpdateParametersMapper + mapper: TagCreateUpdateParametersMapper, }; export const resolverId: OperationURLParameter = { @@ -484,25 +523,25 @@ export const resolverId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "resolverId", required: true, xmlName: "resolverId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: ResolverContractMapper + mapper: ResolverContractMapper, }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: ResolverUpdateContractMapper + mapper: ResolverUpdateContractMapper, }; export const accept1: OperationParameter = { @@ -513,9 +552,9 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const schemaId: OperationURLParameter = { @@ -523,20 +562,20 @@ export const schemaId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "schemaId", required: true, xmlName: "schemaId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: SchemaContractMapper + mapper: SchemaContractMapper, }; export const force: OperationQueryParameter = { @@ -545,9 +584,9 @@ export const force: OperationQueryParameter = { serializedName: "force", xmlName: "force", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const diagnosticId: OperationURLParameter = { @@ -556,20 +595,20 @@ export const diagnosticId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "diagnosticId", required: true, xmlName: "diagnosticId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: DiagnosticContractMapper + mapper: DiagnosticContractMapper, }; export const expandCommentsAttachments: OperationQueryParameter = { @@ -578,9 +617,9 @@ export const expandCommentsAttachments: OperationQueryParameter = { serializedName: "expandCommentsAttachments", xmlName: "expandCommentsAttachments", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const issueId: OperationURLParameter = { @@ -589,25 +628,25 @@ export const issueId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "issueId", required: true, xmlName: "issueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: IssueContractMapper + mapper: IssueContractMapper, }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: IssueUpdateContractMapper + mapper: IssueUpdateContractMapper, }; export const commentId: OperationURLParameter = { @@ -616,20 +655,20 @@ export const commentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "commentId", required: true, xmlName: "commentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: IssueCommentContractMapper + mapper: IssueCommentContractMapper, }; export const attachmentId: OperationURLParameter = { @@ -638,20 +677,20 @@ export const attachmentId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "attachmentId", required: true, xmlName: "attachmentId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters14: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: IssueAttachmentContractMapper + mapper: IssueAttachmentContractMapper, }; export const tagDescriptionId: OperationURLParameter = { @@ -660,20 +699,20 @@ export const tagDescriptionId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "tagDescriptionId", required: true, xmlName: "tagDescriptionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters15: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: TagDescriptionCreateParametersMapper + mapper: TagDescriptionCreateParametersMapper, }; export const includeNotTaggedOperations: OperationQueryParameter = { @@ -682,19 +721,19 @@ export const includeNotTaggedOperations: OperationQueryParameter = { serializedName: "includeNotTaggedOperations", xmlName: "includeNotTaggedOperations", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters16: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: WikiContractMapper + mapper: WikiContractMapper, }; -export const parameters17: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: WikiUpdateContractMapper + mapper: WikiUpdateContractMapper, }; export const format1: OperationQueryParameter = { @@ -704,9 +743,9 @@ export const format1: OperationQueryParameter = { required: true, xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const exportParam: OperationQueryParameter = { @@ -716,9 +755,9 @@ export const exportParam: OperationQueryParameter = { required: true, xmlName: "export", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionSetId: OperationURLParameter = { @@ -727,52 +766,25 @@ export const versionSetId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "versionSetId", required: true, xmlName: "versionSetId", type: { - name: "String" - } - } -}; - -export const parameters18: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetContractMapper -}; - -export const parameters19: OperationParameter = { - parameterPath: "parameters", - mapper: ApiVersionSetUpdateParametersMapper -}; - -export const authsid: OperationURLParameter = { - parameterPath: "authsid", - mapper: { - constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 80, - MinLength: 1 + name: "String", }, - serializedName: "authsid", - required: true, - xmlName: "authsid", - type: { - name: "String" - } - } + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerContractMapper + mapper: ApiVersionSetContractMapper, }; export const parameters21: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationServerUpdateContractMapper + mapper: ApiVersionSetUpdateParametersMapper, }; export const authorizationProviderId: OperationURLParameter = { @@ -781,20 +793,20 @@ export const authorizationProviderId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationProviderId", required: true, xmlName: "authorizationProviderId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationProviderContractMapper + mapper: AuthorizationProviderContractMapper, }; export const authorizationId: OperationURLParameter = { @@ -803,30 +815,30 @@ export const authorizationId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationId", required: true, xmlName: "authorizationId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationContractMapper + mapper: AuthorizationContractMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationConfirmConsentCodeRequestContractMapper + mapper: AuthorizationConfirmConsentCodeRequestContractMapper, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationLoginRequestContractMapper + mapper: AuthorizationLoginRequestContractMapper, }; export const authorizationAccessPolicyId: OperationURLParameter = { @@ -835,78 +847,105 @@ export const authorizationAccessPolicyId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "authorizationAccessPolicyId", required: true, xmlName: "authorizationAccessPolicyId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: AuthorizationAccessPolicyContractMapper + mapper: AuthorizationAccessPolicyContractMapper, }; -export const backendId: OperationURLParameter = { - parameterPath: "backendId", +export const authsid: OperationURLParameter = { + parameterPath: "authsid", mapper: { constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "backendId", + serializedName: "authsid", required: true, - xmlName: "backendId", + xmlName: "authsid", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: BackendContractMapper + mapper: AuthorizationServerContractMapper, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: BackendUpdateParametersMapper -}; - -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: BackendReconnectContractMapper + mapper: AuthorizationServerUpdateContractMapper, }; -export const cacheId: OperationURLParameter = { - parameterPath: "cacheId", +export const backendId: OperationURLParameter = { + parameterPath: "backendId", mapper: { constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, - serializedName: "cacheId", + serializedName: "backendId", required: true, - xmlName: "cacheId", + xmlName: "backendId", type: { - name: "String" - } - } + name: "String", + }, + }, +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: BackendContractMapper, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CacheContractMapper + mapper: BackendUpdateParametersMapper, }; export const parameters31: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: BackendReconnectContractMapper, +}; + +export const cacheId: OperationURLParameter = { + parameterPath: "cacheId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "cacheId", + required: true, + xmlName: "cacheId", + type: { + name: "String", + }, + }, +}; + +export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: CacheUpdateParametersMapper + mapper: CacheContractMapper, +}; + +export const parameters33: OperationParameter = { + parameterPath: "parameters", + mapper: CacheUpdateParametersMapper, }; export const isKeyVaultRefreshFailed: OperationQueryParameter = { @@ -915,9 +954,9 @@ export const isKeyVaultRefreshFailed: OperationQueryParameter = { serializedName: "isKeyVaultRefreshFailed", xmlName: "isKeyVaultRefreshFailed", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const certificateId: OperationURLParameter = { @@ -926,25 +965,25 @@ export const certificateId: OperationURLParameter = { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "certificateId", required: true, xmlName: "certificateId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters32: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const connectivityCheckRequestParams: OperationParameter = { parameterPath: "connectivityCheckRequestParams", - mapper: ConnectivityCheckRequestMapper + mapper: ConnectivityCheckRequestMapper, }; export const contentTypeId: OperationURLParameter = { @@ -952,20 +991,20 @@ export const contentTypeId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentTypeId", required: true, xmlName: "contentTypeId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters33: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", - mapper: ContentTypeContractMapper + mapper: ContentTypeContractMapper, }; export const contentItemId: OperationURLParameter = { @@ -973,20 +1012,20 @@ export const contentItemId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "contentItemId", required: true, xmlName: "contentItemId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters34: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", - mapper: ContentItemContractMapper + mapper: ContentItemContractMapper, }; export const location: OperationURLParameter = { @@ -996,34 +1035,66 @@ export const location: OperationURLParameter = { required: true, xmlName: "location", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters35: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceBackupRestoreParametersMapper + mapper: ApiManagementServiceBackupRestoreParametersMapper, }; -export const parameters36: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceResourceMapper + mapper: ApiManagementServiceResourceMapper, }; -export const parameters37: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceUpdateParametersMapper + mapper: ApiManagementServiceUpdateParametersMapper, }; -export const parameters38: OperationParameter = { +export const parameters40: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: MigrateToStv2ContractMapper, +}; + +export const parameters41: OperationParameter = { parameterPath: "parameters", - mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper + mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper, }; -export const parameters39: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper + mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper, +}; + +export const documentationId: OperationURLParameter = { + parameterPath: "documentationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1, + }, + serializedName: "documentationId", + required: true, + xmlName: "documentationId", + type: { + name: "String", + }, + }, +}; + +export const parameters43: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper, +}; + +export const parameters44: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper, }; export const templateName: OperationURLParameter = { @@ -1033,14 +1104,14 @@ export const templateName: OperationURLParameter = { required: true, xmlName: "templateName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters40: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", - mapper: EmailTemplateUpdateParametersMapper + mapper: EmailTemplateUpdateParametersMapper, }; export const gatewayId: OperationURLParameter = { @@ -1048,30 +1119,40 @@ export const gatewayId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "gatewayId", required: true, xmlName: "gatewayId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters41: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", - mapper: GatewayContractMapper + mapper: GatewayContractMapper, }; -export const parameters42: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", - mapper: GatewayKeyRegenerationRequestContractMapper + mapper: GatewayKeyRegenerationRequestContractMapper, }; -export const parameters43: OperationParameter = { +export const parameters48: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayTokenRequestContractMapper, +}; + +export const parameters49: OperationParameter = { parameterPath: "parameters", - mapper: GatewayTokenRequestContractMapper + mapper: GatewayListDebugCredentialsContractMapper, +}; + +export const parameters50: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayListTraceContractMapper, }; export const hcId: OperationURLParameter = { @@ -1079,30 +1160,52 @@ export const hcId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "hcId", required: true, xmlName: "hcId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters44: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", - mapper: GatewayHostnameConfigurationContractMapper + mapper: GatewayHostnameConfigurationContractMapper, }; -export const parameters45: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: AssociationContractMapper + mapper: AssociationContractMapper, }; -export const parameters46: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", - mapper: GatewayCertificateAuthorityContractMapper + mapper: GatewayCertificateAuthorityContractMapper, +}; + +export const configConnectionName: OperationURLParameter = { + parameterPath: "configConnectionName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$"), + MaxLength: 30, + MinLength: 1, + }, + serializedName: "configConnectionName", + required: true, + xmlName: "configConnectionName", + type: { + name: "String", + }, + }, +}; + +export const parameters54: OperationParameter = { + parameterPath: "parameters", + mapper: ApiManagementGatewayConfigConnectionResourceMapper, }; export const groupId: OperationURLParameter = { @@ -1110,25 +1213,25 @@ export const groupId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "groupId", required: true, xmlName: "groupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters47: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", - mapper: GroupCreateParametersMapper + mapper: GroupCreateParametersMapper, }; -export const parameters48: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", - mapper: GroupUpdateParametersMapper + mapper: GroupUpdateParametersMapper, }; export const userId: OperationURLParameter = { @@ -1136,15 +1239,15 @@ export const userId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "userId", required: true, xmlName: "userId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const identityProviderName: OperationURLParameter = { @@ -1154,19 +1257,19 @@ export const identityProviderName: OperationURLParameter = { required: true, xmlName: "identityProviderName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters49: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderCreateContractMapper + mapper: IdentityProviderCreateContractMapper, }; -export const parameters50: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", - mapper: IdentityProviderUpdateParametersMapper + mapper: IdentityProviderUpdateParametersMapper, }; export const loggerId: OperationURLParameter = { @@ -1174,25 +1277,25 @@ export const loggerId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "loggerId", required: true, xmlName: "loggerId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters51: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", - mapper: LoggerContractMapper + mapper: LoggerContractMapper, }; -export const parameters52: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", - mapper: LoggerUpdateContractMapper + mapper: LoggerUpdateContractMapper, }; export const namedValueId: OperationURLParameter = { @@ -1200,40 +1303,40 @@ export const namedValueId: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "namedValueId", required: true, xmlName: "namedValueId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters53: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueCreateContractMapper + mapper: NamedValueCreateContractMapper, }; -export const parameters54: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", - mapper: NamedValueUpdateParametersMapper + mapper: NamedValueUpdateParametersMapper, }; export const locationName: OperationURLParameter = { parameterPath: "locationName", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "locationName", required: true, xmlName: "locationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const notificationName: OperationURLParameter = { @@ -1243,9 +1346,9 @@ export const notificationName: OperationURLParameter = { required: true, xmlName: "notificationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const email: OperationURLParameter = { @@ -1255,9 +1358,9 @@ export const email: OperationURLParameter = { required: true, xmlName: "email", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const opid: OperationURLParameter = { @@ -1265,25 +1368,25 @@ export const opid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "opid", required: true, xmlName: "opid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters55: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderContractMapper + mapper: OpenidConnectProviderContractMapper, }; -export const parameters56: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", - mapper: OpenidConnectProviderUpdateContractMapper + mapper: OpenidConnectProviderUpdateContractMapper, }; export const scope1: OperationQueryParameter = { @@ -1293,9 +1396,9 @@ export const scope1: OperationQueryParameter = { xmlName: "scope", type: { name: "Enum", - allowedValues: ["Tenant", "Product", "Api", "Operation", "All"] - } - } + allowedValues: ["Tenant", "Product", "Api", "Operation", "All"], + }, + }, }; export const orderby: OperationQueryParameter = { @@ -1304,9 +1407,9 @@ export const orderby: OperationQueryParameter = { serializedName: "$orderby", xmlName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const id: OperationURLParameter = { @@ -1315,15 +1418,15 @@ export const id: OperationURLParameter = { constraints: { Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "id", required: true, xmlName: "id", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const format2: OperationQueryParameter = { @@ -1332,14 +1435,40 @@ export const format2: OperationQueryParameter = { serializedName: "format", xmlName: "format", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters57: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", - mapper: PolicyFragmentContractMapper + mapper: PolicyFragmentContractMapper, +}; + +export const policyRestrictionId: OperationURLParameter = { + parameterPath: "policyRestrictionId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1, + }, + serializedName: "policyRestrictionId", + required: true, + xmlName: "policyRestrictionId", + type: { + name: "String", + }, + }, +}; + +export const parameters66: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyRestrictionContractMapper, +}; + +export const parameters67: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyRestrictionUpdateContractMapper, }; export const portalConfigId: OperationURLParameter = { @@ -1347,20 +1476,20 @@ export const portalConfigId: OperationURLParameter = { mapper: { constraints: { MaxLength: 80, - MinLength: 1 + MinLength: 1, }, serializedName: "portalConfigId", required: true, xmlName: "portalConfigId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters58: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", - mapper: PortalConfigContractMapper + mapper: PortalConfigContractMapper, }; export const portalRevisionId: OperationURLParameter = { @@ -1368,35 +1497,35 @@ export const portalRevisionId: OperationURLParameter = { mapper: { constraints: { MaxLength: 256, - MinLength: 1 + MinLength: 1, }, serializedName: "portalRevisionId", required: true, xmlName: "portalRevisionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters59: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", - mapper: PortalRevisionContractMapper + mapper: PortalRevisionContractMapper, }; -export const parameters60: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", - mapper: PortalSigninSettingsMapper + mapper: PortalSigninSettingsMapper, }; -export const parameters61: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", - mapper: PortalSignupSettingsMapper + mapper: PortalSignupSettingsMapper, }; -export const parameters62: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", - mapper: PortalDelegationSettingsMapper + mapper: PortalDelegationSettingsMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1406,14 +1535,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { required: true, xmlName: "privateEndpointConnectionName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionRequest: OperationParameter = { parameterPath: "privateEndpointConnectionRequest", - mapper: PrivateEndpointConnectionRequestMapper + mapper: PrivateEndpointConnectionRequestMapper, }; export const privateLinkSubResourceName: OperationURLParameter = { @@ -1423,9 +1552,9 @@ export const privateLinkSubResourceName: OperationURLParameter = { required: true, xmlName: "privateLinkSubResourceName", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expandGroups: OperationQueryParameter = { @@ -1434,19 +1563,19 @@ export const expandGroups: OperationQueryParameter = { serializedName: "expandGroups", xmlName: "expandGroups", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; -export const parameters63: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", - mapper: ProductContractMapper + mapper: ProductContractMapper, }; -export const parameters64: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", - mapper: ProductUpdateParametersMapper + mapper: ProductUpdateParametersMapper, }; export const deleteSubscriptions: OperationQueryParameter = { @@ -1455,9 +1584,9 @@ export const deleteSubscriptions: OperationQueryParameter = { serializedName: "deleteSubscriptions", xmlName: "deleteSubscriptions", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const includeNotTaggedProducts: OperationQueryParameter = { @@ -1466,9 +1595,53 @@ export const includeNotTaggedProducts: OperationQueryParameter = { serializedName: "includeNotTaggedProducts", xmlName: "includeNotTaggedProducts", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, +}; + +export const apiLinkId: OperationURLParameter = { + parameterPath: "apiLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "apiLinkId", + required: true, + xmlName: "apiLinkId", + type: { + name: "String", + }, + }, +}; + +export const parameters75: 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 parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: ProductGroupLinkContractMapper, }; export const quotaCounterKey: OperationURLParameter = { @@ -1478,14 +1651,14 @@ export const quotaCounterKey: OperationURLParameter = { required: true, xmlName: "quotaCounterKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters65: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", - mapper: QuotaCounterValueUpdateContractMapper + mapper: QuotaCounterValueUpdateContractMapper, }; export const quotaPeriodKey: OperationURLParameter = { @@ -1495,9 +1668,9 @@ export const quotaPeriodKey: OperationURLParameter = { required: true, xmlName: "quotaPeriodKey", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -1507,9 +1680,9 @@ export const filter1: OperationQueryParameter = { required: true, xmlName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const interval: OperationQueryParameter = { @@ -1519,14 +1692,14 @@ export const interval: OperationQueryParameter = { required: true, xmlName: "interval", type: { - name: "TimeSpan" - } - } + name: "TimeSpan", + }, + }, }; -export const parameters66: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", - mapper: GlobalSchemaContractMapper + mapper: GlobalSchemaContractMapper, }; export const settingsType: OperationURLParameter = { @@ -1536,9 +1709,9 @@ export const settingsType: OperationURLParameter = { required: true, xmlName: "settingsType", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sid: OperationURLParameter = { @@ -1546,20 +1719,20 @@ export const sid: OperationURLParameter = { mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256 + MaxLength: 256, }, serializedName: "sid", required: true, xmlName: "sid", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters67: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionCreateParametersMapper + mapper: SubscriptionCreateParametersMapper, }; export const notify: OperationQueryParameter = { @@ -1568,9 +1741,9 @@ export const notify: OperationQueryParameter = { serializedName: "notify", xmlName: "notify", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const appType: OperationQueryParameter = { @@ -1579,14 +1752,63 @@ export const appType: OperationQueryParameter = { serializedName: "appType", xmlName: "appType", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters68: OperationParameter = { +export const parameters80: OperationParameter = { + parameterPath: "parameters", + mapper: SubscriptionUpdateParametersMapper, +}; + +export const parameters81: OperationParameter = { parameterPath: "parameters", - mapper: SubscriptionUpdateParametersMapper + 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 parameters82: 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 parameters83: OperationParameter = { + parameterPath: "parameters", + mapper: TagProductLinkContractMapper, }; export const accessName: OperationURLParameter = { @@ -1596,24 +1818,24 @@ export const accessName: OperationURLParameter = { required: true, xmlName: "accessName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters69: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationCreateParametersMapper + mapper: AccessInformationCreateParametersMapper, }; -export const parameters70: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", - mapper: AccessInformationUpdateParametersMapper + mapper: AccessInformationUpdateParametersMapper, }; -export const parameters71: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: DeployConfigurationParametersMapper + mapper: DeployConfigurationParametersMapper, }; export const configurationName: OperationURLParameter = { @@ -1623,54 +1845,95 @@ export const configurationName: OperationURLParameter = { required: true, xmlName: "configurationName", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters72: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", - mapper: SaveConfigurationParameterMapper + mapper: SaveConfigurationParameterMapper, }; -export const parameters73: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", - mapper: UserCreateParametersMapper + mapper: UserCreateParametersMapper, }; -export const parameters74: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", - mapper: UserUpdateParametersMapper + mapper: UserUpdateParametersMapper, }; -export const parameters75: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", - mapper: UserTokenParametersMapper + mapper: UserTokenParametersMapper, }; -export const documentationId: OperationURLParameter = { - parameterPath: "documentationId", +export const workspaceId: OperationURLParameter = { + parameterPath: "workspaceId", mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 80, + MinLength: 1, }, - serializedName: "documentationId", + serializedName: "workspaceId", required: true, - xmlName: "documentationId", + xmlName: "workspaceId", type: { - name: "String" - } - } + name: "String", + }, + }, }; -export const parameters76: OperationParameter = { +export const parameters91: OperationParameter = { parameterPath: "parameters", - mapper: DocumentationContractMapper + mapper: DiagnosticUpdateContractMapper, }; -export const parameters77: OperationParameter = { +export const parameters92: OperationParameter = { parameterPath: "parameters", - mapper: DocumentationUpdateContractMapper + mapper: WorkspaceContractMapper, +}; + +export const isKeyVaultRefreshFailed1: OperationQueryParameter = { + parameterPath: ["options", "isKeyVaultRefreshFailed"], + mapper: { + serializedName: "isKeyVaultRefreshFailed", + xmlName: "isKeyVaultRefreshFailed", + type: { + name: "String", + }, + }, +}; + +export const location1: OperationURLParameter = { + parameterPath: "location", + mapper: { + constraints: { + MinLength: 1, + }, + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String", + }, + }, +}; + +export const operationId1: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + constraints: { + MinLength: 1, + }, + serializedName: "operationId", + required: true, + xmlName: "operationId", + type: { + name: "String", + }, + }, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts new file mode 100644 index 000000000000..8e860e279b91 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/allPolicies.ts @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AllPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AllPoliciesContract, + AllPoliciesListByServiceNextOptionalParams, + AllPoliciesListByServiceOptionalParams, + AllPoliciesListByServiceResponse, + AllPoliciesListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing AllPolicies operations. */ +export class AllPoliciesImpl implements AllPolicies { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AllPolicies class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: AllPoliciesListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: AllPoliciesListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/allPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AllPoliciesCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c1635689c9a8..7acbf6122cde 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,8 +39,9 @@ import { ApiUpdateOptionalParams, ApiUpdateResponse, ApiDeleteOptionalParams, + ApiDeleteResponse, ApiListByServiceNextResponse, - ApiListByTagsNextResponse + ApiListByTagsNextResponse, } from "../models"; /// @@ -65,12 +66,12 @@ export class ApiImpl implements Api { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -87,9 +88,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +106,7 @@ export class ApiImpl implements Api { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,12 +130,12 @@ export class ApiImpl implements Api { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -149,12 +150,12 @@ export class ApiImpl implements Api { public listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -171,9 +172,9 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -181,7 +182,7 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, options?: ApiListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -197,7 +198,7 @@ export class ApiImpl implements Api { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -209,12 +210,12 @@ export class ApiImpl implements Api { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -229,11 +230,11 @@ export class ApiImpl implements Api { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -249,11 +250,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -269,11 +270,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -291,7 +292,7 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +301,20 @@ export class ApiImpl implements Api { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +323,8 @@ export class ApiImpl implements Api { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,15 +332,15 @@ export class ApiImpl implements Api { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, apiId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiCreateOrUpdateResponse, @@ -348,7 +348,7 @@ export class ApiImpl implements Api { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -368,14 +368,14 @@ export class ApiImpl implements Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, apiId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -397,11 +397,11 @@ export class ApiImpl implements Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -415,17 +415,95 @@ export class ApiImpl implements Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apiId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + apiId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -437,11 +515,11 @@ export class ApiImpl implements Api { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -456,11 +534,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByServiceNextOptionalParams + options?: ApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -475,11 +553,11 @@ export class ApiImpl implements Api { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiListByTagsNextOptionalParams + options?: ApiListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -487,45 +565,43 @@ export class ApiImpl implements Api { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, Parameters.expandApiVersionSet, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiGetEntityTagHeaders + headersMapper: Mappers.ApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,23 +609,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiGetHeaders + headersMapper: Mappers.ApiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -557,93 +632,100 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders + headersMapper: Mappers.ApiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiUpdateHeaders + headersMapper: Mappers.ApiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters1, + requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApiDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApiDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], urlParameters: [ @@ -651,78 +733,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedApis + Parameters.includeNotTaggedApis, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index 7f8a30b7977e..ae1989ebd468 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -27,7 +27,7 @@ import { ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, ApiDiagnosticDeleteOptionalParams, - ApiDiagnosticListByServiceNextResponse + ApiDiagnosticListByServiceNextResponse, } from "../models"; /// @@ -54,13 +54,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, options?: ApiDiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiDiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +111,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +124,13 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -191,11 +191,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -215,7 +215,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -224,9 +224,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId, diagnosticId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -249,7 +249,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -259,9 +259,9 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -282,11 +282,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -303,11 +303,11 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { serviceName: string, apiId: string, nextLink: string, - options?: ApiDiagnosticListByServiceNextOptionalParams + options?: ApiDiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,44 +315,42 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders + headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -361,23 +359,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticGetHeaders + headersMapper: Mappers.ApiDiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -386,29 +383,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -416,30 +412,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.ApiDiagnosticUpdateHeaders + headersMapper: Mappers.ApiDiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -447,26 +442,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -475,21 +469,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -497,8 +491,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index c87591913545..bc5866031af4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -15,7 +15,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Class containing ApiExport operations. */ @@ -38,7 +38,7 @@ export class ApiExportImpl implements ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -48,11 +48,11 @@ export class ApiExportImpl implements ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, format, exportParam, options }, - getOperationSpec + getOperationSpec, ); } } @@ -60,29 +60,28 @@ export class ApiExportImpl implements ApiExport { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiExportResult + bodyMapper: Mappers.ApiExportResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.format1, - Parameters.exportParam + Parameters.exportParam, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 527cad10dd31..773c5da3acbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -28,7 +28,7 @@ import { ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, ApiIssueDeleteOptionalParams, - ApiIssueListByServiceNextResponse + ApiIssueListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, options?: ApiIssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiIssueImpl implements ApiIssue { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class ApiIssueImpl implements ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -169,11 +169,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -190,11 +190,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -213,11 +213,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -239,7 +239,7 @@ export class ApiIssueImpl implements ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -249,9 +249,9 @@ export class ApiIssueImpl implements ApiIssue { issueId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -271,11 +271,11 @@ export class ApiIssueImpl implements ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueImpl implements ApiIssue { serviceName: string, apiId: string, nextLink: string, - options?: ApiIssueListByServiceNextOptionalParams + options?: ApiIssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class ApiIssueImpl implements ApiIssue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueGetEntityTagHeaders + headersMapper: Mappers.ApiIssueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueGetHeaders + headersMapper: Mappers.ApiIssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.expandCommentsAttachments + Parameters.expandCommentsAttachments, ], urlParameters: [ Parameters.$host, @@ -379,29 +376,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,30 +405,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.ApiIssueUpdateHeaders + headersMapper: Mappers.ApiIssueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -440,26 +435,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,21 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -490,8 +484,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index b4e477407b59..9601308402a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -25,7 +25,7 @@ import { ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, ApiIssueAttachmentDeleteOptionalParams, - ApiIssueAttachmentListByServiceNextResponse + ApiIssueAttachmentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, options?: ApiIssueAttachmentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueAttachmentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, attachmentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { issueId, attachmentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueAttachmentListByServiceNextOptionalParams + options?: ApiIssueAttachmentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentGetHeaders + headersMapper: Mappers.ApiIssueAttachmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueAttachmentContract, - headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.attachmentId + Parameters.attachmentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueAttachmentCollection + bodyMapper: Mappers.IssueAttachmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a7449a1a1e67..f34288058517 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -25,7 +25,7 @@ import { ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, ApiIssueCommentDeleteOptionalParams, - ApiIssueCommentListByServiceNextResponse + ApiIssueCommentListByServiceNextResponse, } from "../models"; /// @@ -54,14 +54,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, issueId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, options?: ApiIssueCommentListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiIssueCommentListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName, apiId, issueId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId, issueId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,14 +130,14 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, issueId, - options + options, )) { yield* page; } @@ -156,11 +156,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -179,11 +179,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -202,11 +202,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, commentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -227,7 +227,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -237,9 +237,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -261,7 +261,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -271,9 +271,9 @@ export class ApiIssueCommentImpl implements ApiIssueComment { issueId, commentId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -292,11 +292,11 @@ export class ApiIssueCommentImpl implements ApiIssueComment { apiId: string, issueId: string, nextLink: string, - options?: ApiIssueCommentListByServiceNextOptionalParams + options?: ApiIssueCommentListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, issueId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -304,22 +304,21 @@ export class ApiIssueCommentImpl implements ApiIssueComment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -327,22 +326,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders + headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,23 +350,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentGetHeaders + headersMapper: Mappers.ApiIssueCommentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,29 +375,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IssueCommentContract, - headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -409,26 +405,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,21 +433,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId1, Parameters.issueId, - Parameters.commentId + Parameters.commentId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCommentCollection + bodyMapper: Mappers.IssueCommentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -461,8 +456,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.apiId1, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts new file mode 100644 index 000000000000..53833977fd50 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGateway.ts @@ -0,0 +1,728 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApiManagementGateway } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupNextOptionalParams, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListByResourceGroupResponse, + ApiManagementGatewayListNextOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayListResponse, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, + ApiManagementGatewayListByResourceGroupNextResponse, + ApiManagementGatewayListNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementGateway operations. */ +export class ApiManagementGatewayImpl implements ApiManagementGateway { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementGateway class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings, + ); + }, + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options, + )) { + yield* page; + } + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + public list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(options, settings); + }, + }; + } + + private async *listPagingPage( + options?: ApiManagementGatewayListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + options?: ApiManagementGatewayListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, parameters, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, parameters, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + gatewayName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + getOperationSpec, + ); + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, gatewayName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + gatewayName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec, + ); + } + + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + private _list( + options?: ApiManagementGatewayListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: ApiManagementGatewayListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: ApiManagementGatewayListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}", + httpMethod: "DELETE", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayResource, + headersMapper: Mappers.ApiManagementGatewayDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/gateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewayConfigConnection.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewayConfigConnection.ts new file mode 100644 index 000000000000..5b4ca7b2c2dd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewayConfigConnection.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 { ApiManagementGatewayConfigConnection } 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 { + ApiManagementGatewayConfigConnectionResource, + ApiManagementGatewayConfigConnectionListByGatewayNextOptionalParams, + ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ApiManagementGatewayConfigConnectionListByGatewayResponse, + ApiManagementGatewayConfigConnectionGetOptionalParams, + ApiManagementGatewayConfigConnectionGetResponse, + ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ApiManagementGatewayConfigConnectionCreateOrUpdateResponse, + ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ApiManagementGatewayConfigConnectionDeleteResponse, + ApiManagementGatewayConfigConnectionListByGatewayNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementGatewayConfigConnection operations. */ +export class ApiManagementGatewayConfigConnectionImpl + implements ApiManagementGatewayConfigConnection +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementGatewayConfigConnection class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * List all API Management gateway config connections within a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + public listByGateway( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByGatewayPagingAll( + resourceGroupName, + gatewayName, + 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.listByGatewayPagingPage( + resourceGroupName, + gatewayName, + options, + settings, + ); + }, + }; + } + + private async *listByGatewayPagingPage( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewayConfigConnectionListByGatewayResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByGateway( + resourceGroupName, + gatewayName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByGatewayNext( + resourceGroupName, + gatewayName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByGatewayPagingAll( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByGatewayPagingPage( + resourceGroupName, + gatewayName, + options, + )) { + yield* page; + } + } + + /** + * List all API Management gateway config connections within a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + private _listByGateway( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + listByGatewayOperationSpec, + ); + } + + /** + * Gets an API Management gateway config connection resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + options?: ApiManagementGatewayConfigConnectionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, configConnectionName, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates an API Management gateway config connection. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway config connection + * operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + parameters: ApiManagementGatewayConfigConnectionResource, + options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayConfigConnectionCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + gatewayName, + configConnectionName, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayConfigConnectionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an API Management gateway config connection. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway config connection + * operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + parameters: ApiManagementGatewayConfigConnectionResource, + options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + gatewayName, + configConnectionName, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes an existing API Management gateway config connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + ifMatch: string, + options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayConfigConnectionDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + gatewayName, + configConnectionName, + ifMatch, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + ApiManagementGatewayConfigConnectionDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an existing API Management gateway config connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + ifMatch: string, + options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + gatewayName, + configConnectionName, + ifMatch, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByGatewayNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param nextLink The nextLink from the previous successful call to the ListByGateway method. + * @param options The options parameters. + */ + private _listByGatewayNext( + resourceGroupName: string, + gatewayName: string, + nextLink: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, nextLink, options }, + listByGatewayNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByGatewayOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/configConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/configConnections/{configConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + Parameters.configConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/configConnections/{configConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters54, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + Parameters.configConnectionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/configConnections/{configConnectionName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.ApiManagementGatewayConfigConnectionDeleteHeaders, + }, + 201: { + headersMapper: Mappers.ApiManagementGatewayConfigConnectionDeleteHeaders, + }, + 202: { + headersMapper: Mappers.ApiManagementGatewayConfigConnectionDeleteHeaders, + }, + 204: { + headersMapper: Mappers.ApiManagementGatewayConfigConnectionDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + Parameters.configConnectionName, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByGatewayNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementGatewayConfigConnectionListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewaySkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewaySkus.ts new file mode 100644 index 000000000000..f36f07a08aa5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementGatewaySkus.ts @@ -0,0 +1,201 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApiManagementGatewaySkus } 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 { + GatewayResourceSkuResult, + ApiManagementGatewaySkusListAvailableSkusNextOptionalParams, + ApiManagementGatewaySkusListAvailableSkusOptionalParams, + ApiManagementGatewaySkusListAvailableSkusResponse, + ApiManagementGatewaySkusListAvailableSkusNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementGatewaySkus operations. */ +export class ApiManagementGatewaySkusImpl implements ApiManagementGatewaySkus { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementGatewaySkus class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all available SKU for a given API Management gateway + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + public listAvailableSkus( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAvailableSkusPagingAll( + resourceGroupName, + gatewayName, + 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.listAvailableSkusPagingPage( + resourceGroupName, + gatewayName, + options, + settings, + ); + }, + }; + } + + private async *listAvailableSkusPagingPage( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementGatewaySkusListAvailableSkusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAvailableSkus( + resourceGroupName, + gatewayName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAvailableSkusNext( + resourceGroupName, + gatewayName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAvailableSkusPagingAll( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAvailableSkusPagingPage( + resourceGroupName, + gatewayName, + options, + )) { + yield* page; + } + } + + /** + * Gets all available SKU for a given API Management gateway + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + private _listAvailableSkus( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, options }, + listAvailableSkusOperationSpec, + ); + } + + /** + * ListAvailableSkusNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param nextLink The nextLink from the previous successful call to the ListAvailableSkus method. + * @param options The options parameters. + */ + private _listAvailableSkusNext( + resourceGroupName: string, + gatewayName: string, + nextLink: string, + options?: ApiManagementGatewaySkusListAvailableSkusNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, gatewayName, nextLink, options }, + listAvailableSkusNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableSkusOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/gateways/{gatewayName}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceSkuResults, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAvailableSkusNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GatewayResourceSkuResults, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.gatewayName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts index a5f8d7391fd4..77fbd3f0e1ff 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts @@ -18,7 +18,7 @@ import { ApiManagementOperationsListNextOptionalParams, ApiManagementOperationsListOptionalParams, ApiManagementOperationsListResponse, - ApiManagementOperationsListNextResponse + ApiManagementOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ public list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { } private async *listPagingAll( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { * @param options The options parameters. */ private _list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementOperationsImpl implements ApiManagementOperations { */ private _listNext( nextLink: string, - options?: ApiManagementOperationsListNextOptionalParams + options?: ApiManagementOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 874d5245fd79..002825d7d28d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -52,7 +52,7 @@ import { ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, ApiManagementServiceListByResourceGroupNextResponse, - ApiManagementServiceListNextResponse + ApiManagementServiceListNextResponse, } from "../models"; /// @@ -75,7 +75,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ public listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -92,16 +92,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ApiManagementServiceListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,11 +127,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -142,7 +142,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ public list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -157,13 +157,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementServiceListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceListResponse; let continuationToken = settings?.continuationToken; @@ -184,7 +184,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { } private async *listPagingAll( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -204,7 +204,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -236,8 +235,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,15 +244,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: restoreOperationSpec + spec: restoreOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceRestoreResponse, @@ -261,7 +260,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -280,13 +279,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise { const poller = await this.beginRestore( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -303,7 +302,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -312,21 +311,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -335,8 +333,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -344,15 +342,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: backupOperationSpec + spec: backupOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceBackupResponse, @@ -360,7 +358,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -378,13 +376,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise { const poller = await this.beginBackup( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -401,7 +399,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -410,21 +408,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -433,8 +430,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -442,22 +439,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -475,13 +472,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -497,7 +494,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -506,21 +503,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -529,8 +525,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -538,22 +534,22 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -570,13 +566,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, serviceName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -590,11 +586,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -607,25 +603,24 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -634,8 +629,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -643,19 +638,19 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -670,12 +665,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -691,7 +686,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -700,21 +695,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -723,8 +717,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -732,15 +726,15 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: migrateToStv2OperationSpec + spec: migrateToStv2OperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceMigrateToStv2Response, @@ -748,7 +742,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -765,12 +759,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise { const poller = await this.beginMigrateToStv2( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -782,11 +776,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -795,7 +789,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ private _list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -809,11 +803,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getSsoTokenOperationSpec + getSsoTokenOperationSpec, ); } @@ -824,11 +818,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -837,11 +831,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - getDomainOwnershipIdentifierOperationSpec + getDomainOwnershipIdentifierOperationSpec, ); } @@ -855,32 +849,29 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -889,8 +880,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -898,25 +889,23 @@ export class ApiManagementServiceImpl implements ApiManagementService { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, options }, - spec: applyNetworkConfigurationUpdatesOperationSpec + spec: applyNetworkConfigurationUpdatesOperationSpec, }); const poller = await createHttpPoller< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - > + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -932,12 +921,12 @@ export class ApiManagementServiceImpl implements ApiManagementService { async beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise { const poller = await this.beginApplyNetworkConfigurationUpdates( resourceGroupName, serviceName, - options + options, ); return poller.pollUntilDone(); } @@ -951,11 +940,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ApiManagementServiceListByResourceGroupNextOptionalParams + options?: ApiManagementServiceListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -966,11 +955,11 @@ export class ApiManagementServiceImpl implements ApiManagementService { */ private _listNext( nextLink: string, - options?: ApiManagementServiceListNextOptionalParams + options?: ApiManagementServiceListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -978,162 +967,156 @@ export class ApiManagementServiceImpl implements ApiManagementService { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const restoreOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const backupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1141,215 +1124,212 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const migrateToStv2OperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 201: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 202: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, 204: { - bodyMapper: Mappers.ApiManagementServiceResource + bodyMapper: Mappers.ApiManagementServiceResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], - headerParameters: [Parameters.accept], - serializer + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSsoTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult + bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult + bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getDomainOwnershipIdentifierOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult + bodyMapper: + Mappers.ApiManagementServiceGetDomainOwnershipIdentifierResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; -const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 201: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 202: { - bodyMapper: Mappers.ApiManagementServiceResource - }, - 204: { - bodyMapper: Mappers.ApiManagementServiceResource +const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters39, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; + requestBody: Parameters.parameters42, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementServiceListResult + bodyMapper: Mappers.ApiManagementServiceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index 4c96ac12b9bf..c14dc2a82f70 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ApiManagementServiceSkusListAvailableServiceSkusResponse, - ApiManagementServiceSkusListAvailableServiceSkusNextResponse + ApiManagementServiceSkusListAvailableServiceSkusNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { public listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableServiceSkusPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementServiceSkusListAvailableServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { result = await this._listAvailableServiceSkus( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private async *listAvailableServiceSkusPagingAll( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableServiceSkusPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { private _listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listAvailableServiceSkusOperationSpec + listAvailableServiceSkusOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listAvailableServiceSkusNextOperationSpec + listAvailableServiceSkusNextOperationSpec, ); } } @@ -159,45 +159,44 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listAvailableServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableServiceSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkuResults + bodyMapper: Mappers.ResourceSkuResults, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts index fa148734690f..f00f87b6d9a1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts @@ -18,7 +18,7 @@ import { ApiManagementSkusListNextOptionalParams, ApiManagementSkusListOptionalParams, ApiManagementSkusListResponse, - ApiManagementSkusListNextResponse + ApiManagementSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ public list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ApiManagementSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiManagementSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { } private async *listPagingAll( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { * @param options The options parameters. */ private _list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { */ private _listNext( nextLink: string, - options?: ApiManagementSkusListNextOptionalParams + options?: ApiManagementSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -117,38 +117,37 @@ export class ApiManagementSkusImpl implements ApiManagementSkus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiManagementSkusResult + bodyMapper: Mappers.ApiManagementSkusResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLink.ts new file mode 100644 index 000000000000..1a6e0ca96b71 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLink.ts @@ -0,0 +1,77 @@ +/* + * 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 { ApiManagementWorkspaceLink } 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 { + ApiManagementWorkspaceLinkGetOptionalParams, + ApiManagementWorkspaceLinkGetResponse, +} from "../models"; + +/** Class containing ApiManagementWorkspaceLink operations. */ +export class ApiManagementWorkspaceLinkImpl + implements ApiManagementWorkspaceLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementWorkspaceLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets an API Management WorkspaceLink resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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?: ApiManagementWorkspaceLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, 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}/workspaceLinks/{workspaceId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementWorkspaceLinksResource, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLinks.ts new file mode 100644 index 000000000000..4feef9b34da9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementWorkspaceLinks.ts @@ -0,0 +1,203 @@ +/* + * 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 { ApiManagementWorkspaceLinks } 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 { + ApiManagementWorkspaceLinksResource, + ApiManagementWorkspaceLinksListByServiceNextOptionalParams, + ApiManagementWorkspaceLinksListByServiceOptionalParams, + ApiManagementWorkspaceLinksListByServiceResponse, + ApiManagementWorkspaceLinksListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing ApiManagementWorkspaceLinks operations. */ +export class ApiManagementWorkspaceLinksImpl + implements ApiManagementWorkspaceLinks +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiManagementWorkspaceLinks class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * List all API Management workspaceLinks for a 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. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementWorkspaceLinksListByServiceOptionalParams, + ): 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?: ApiManagementWorkspaceLinksListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ApiManagementWorkspaceLinksListByServiceResponse; + 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?: ApiManagementWorkspaceLinksListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * List all API Management workspaceLinks for a 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?: ApiManagementWorkspaceLinksListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: ApiManagementWorkspaceLinksListByServiceNextOptionalParams, + ): 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}/workspaceLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementWorkspaceLinksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementWorkspaceLinksListResult, + }, + 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/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 719e17d32e77..5e711242e435 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -28,7 +28,7 @@ import { ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, ApiOperationDeleteOptionalParams, - ApiOperationListByApiNextResponse + ApiOperationListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, options?: ApiOperationListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiOperationListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiOperationImpl implements ApiOperation { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiOperationImpl implements ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiOperationImpl implements ApiOperation { apiId, operationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class ApiOperationImpl implements ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class ApiOperationImpl implements ApiOperation { operationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class ApiOperationImpl implements ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class ApiOperationImpl implements ApiOperation { serviceName: string, apiId: string, nextLink: string, - options?: ApiOperationListByApiNextOptionalParams + options?: ApiOperationListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,45 +324,43 @@ export class ApiOperationImpl implements ApiOperation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationGetEntityTagHeaders + headersMapper: Mappers.ApiOperationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,23 +369,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationGetHeaders + headersMapper: Mappers.ApiOperationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -396,29 +393,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -426,30 +422,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OperationContract, - headersMapper: Mappers.ApiOperationUpdateHeaders + headersMapper: Mappers.ApiOperationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -457,26 +452,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -485,30 +479,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationCollection + bodyMapper: Mappers.OperationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 5bec2b5db52c..d019cbe1b697 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiOperationPolicy operations. */ @@ -52,11 +52,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -77,11 +77,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -102,11 +102,11 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,7 +129,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -139,9 +139,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -165,7 +165,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { operationId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -185,16 +185,15 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -203,22 +202,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -228,23 +226,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyGetHeaders + headersMapper: Mappers.ApiOperationPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -254,29 +251,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -285,26 +281,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -314,8 +309,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 9bcc792f5dd5..012514520190 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -22,7 +22,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Class containing ApiPolicy operations. */ @@ -49,11 +49,11 @@ export class ApiPolicyImpl implements ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -71,11 +71,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -93,11 +93,11 @@ export class ApiPolicyImpl implements ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -117,11 +117,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -142,11 +142,11 @@ export class ApiPolicyImpl implements ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -156,16 +156,15 @@ const xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true); const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +172,21 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiPolicyGetEntityTagHeaders + headersMapper: Mappers.ApiPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +195,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyGetHeaders + headersMapper: Mappers.ApiPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,30 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept1], isXML: true, - serializer: xmlSerializer + serializer: xmlSerializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -253,26 +249,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -281,8 +276,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index b9a226a7aadb..46e2621c7cda 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -18,7 +18,7 @@ import { ApiProductListByApisNextOptionalParams, ApiProductListByApisOptionalParams, ApiProductListByApisResponse, - ApiProductListByApisNextResponse + ApiProductListByApisNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApisPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, options?: ApiProductListByApisOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiProductListByApisResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiProductImpl implements ApiProduct { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApisPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiProductImpl implements ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApisOperationSpec + listByApisOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiProductImpl implements ApiProduct { serviceName: string, apiId: string, nextLink: string, - options?: ApiProductListByApisNextOptionalParams + options?: ApiProductListByApisNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApisNextOperationSpec + listByApisNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiProductImpl implements ApiProduct { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApisOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApisNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByApisNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 345185b5a2d9..3b4410f6f535 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -27,7 +27,7 @@ import { ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, ApiReleaseDeleteOptionalParams, - ApiReleaseListByServiceNextResponse + ApiReleaseListByServiceNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, options?: ApiReleaseListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiReleaseListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class ApiReleaseImpl implements ApiRelease { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -151,11 +151,11 @@ export class ApiReleaseImpl implements ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +195,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,11 +219,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,7 +246,7 @@ export class ApiReleaseImpl implements ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -256,9 +256,9 @@ export class ApiReleaseImpl implements ApiRelease { releaseId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class ApiReleaseImpl implements ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, releaseId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -300,11 +300,11 @@ export class ApiReleaseImpl implements ApiRelease { serviceName: string, apiId: string, nextLink: string, - options?: ApiReleaseListByServiceNextOptionalParams + options?: ApiReleaseListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -312,44 +312,42 @@ export class ApiReleaseImpl implements ApiRelease { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiReleaseGetEntityTagHeaders + headersMapper: Mappers.ApiReleaseGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -358,23 +356,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseGetHeaders + headersMapper: Mappers.ApiReleaseGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -383,29 +380,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -413,30 +409,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiReleaseContract, - headersMapper: Mappers.ApiReleaseUpdateHeaders + headersMapper: Mappers.ApiReleaseUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters2, + requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -444,26 +439,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,21 +466,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiReleaseCollection + bodyMapper: Mappers.ApiReleaseCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -494,8 +488,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index c76a9aa1f6bf..876ead3737e4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -18,7 +18,7 @@ import { ApiRevisionListByServiceNextOptionalParams, ApiRevisionListByServiceOptionalParams, ApiRevisionListByServiceResponse, - ApiRevisionListByServiceNextResponse + ApiRevisionListByServiceNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, options?: ApiRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ApiRevisionImpl implements ApiRevision { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ApiRevisionImpl implements ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class ApiRevisionImpl implements ApiRevision { serviceName: string, apiId: string, nextLink: string, - options?: ApiRevisionListByServiceNextOptionalParams + options?: ApiRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ApiRevisionImpl implements ApiRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiRevisionCollection + bodyMapper: Mappers.ApiRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 81cdbcbce722..d26671dabc61 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, ApiSchemaDeleteOptionalParams, - ApiSchemaListByApiNextResponse + ApiSchemaListByApiNextResponse, } from "../models"; /// @@ -59,13 +59,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -94,7 +94,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, options?: ApiSchemaListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiSchemaListByApiResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class ApiSchemaImpl implements ApiSchema { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +129,13 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -153,11 +153,11 @@ export class ApiSchemaImpl implements ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -175,11 +175,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -197,11 +197,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,21 +230,20 @@ export class ApiSchemaImpl implements ApiSchema { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -253,8 +252,8 @@ export class ApiSchemaImpl implements ApiSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -262,8 +261,8 @@ export class ApiSchemaImpl implements ApiSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -275,9 +274,9 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ApiSchemaCreateOrUpdateResponse, @@ -285,7 +284,7 @@ export class ApiSchemaImpl implements ApiSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -307,7 +306,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -315,7 +314,7 @@ export class ApiSchemaImpl implements ApiSchema { apiId, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -337,11 +336,11 @@ export class ApiSchemaImpl implements ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -359,11 +358,11 @@ export class ApiSchemaImpl implements ApiSchema { serviceName: string, apiId: string, nextLink: string, - options?: ApiSchemaListByApiNextOptionalParams + options?: ApiSchemaListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -371,44 +370,42 @@ export class ApiSchemaImpl implements ApiSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiSchemaGetEntityTagHeaders + headersMapper: Mappers.ApiSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -417,23 +414,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaGetHeaders + headersMapper: Mappers.ApiSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -442,37 +438,36 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -480,26 +475,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.force], urlParameters: [ @@ -508,30 +502,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SchemaCollection + bodyMapper: Mappers.SchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index 34f2b6f132b9..32eebbe9d6a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -26,7 +26,7 @@ import { ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, ApiTagDescriptionDeleteOptionalParams, - ApiTagDescriptionListByServiceNextResponse + ApiTagDescriptionListByServiceNextResponse, } from "../models"; /// @@ -55,13 +55,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, options?: ApiTagDescriptionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiTagDescriptionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,13 +125,13 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -173,11 +173,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagDescriptionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -254,7 +254,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -263,9 +263,9 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { apiId, tagDescriptionId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -283,11 +283,11 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { serviceName: string, apiId: string, nextLink: string, - options?: ApiTagDescriptionListByServiceNextOptionalParams + options?: ApiTagDescriptionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -295,44 +295,42 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders + headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,23 +339,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionGetHeaders + headersMapper: Mappers.ApiTagDescriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -366,29 +363,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagDescriptionContract, - headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -396,26 +392,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -424,30 +419,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagDescriptionId + Parameters.tagDescriptionId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagDescriptionCollection + bodyMapper: Mappers.TagDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 2057a4b4532a..c852592590cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -28,7 +28,7 @@ import { ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, ApiVersionSetDeleteOptionalParams, - ApiVersionSetListByServiceNextResponse + ApiVersionSetListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { public listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, options?: ApiVersionSetListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiVersionSetListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class ApiVersionSetImpl implements ApiVersionSet { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { private _listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class ApiVersionSetImpl implements ApiVersionSet { versionSetId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, versionSetId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class ApiVersionSetImpl implements ApiVersionSet { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ApiVersionSetListByServiceNextOptionalParams + options?: ApiVersionSetListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class ApiVersionSetImpl implements ApiVersionSet { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders + headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetGetHeaders + headersMapper: Mappers.ApiVersionSetGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ApiVersionSetContract, - headersMapper: Mappers.ApiVersionSetUpdateHeaders + headersMapper: Mappers.ApiVersionSetUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiVersionSetCollection + bodyMapper: Mappers.ApiVersionSetCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts index 97883b205cfb..32f6640a5dbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Class containing ApiWiki operations. */ @@ -48,11 +48,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ApiWikiImpl implements ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,11 +112,11 @@ export class ApiWikiImpl implements ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -134,11 +134,11 @@ export class ApiWikiImpl implements ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -146,16 +146,15 @@ export class ApiWikiImpl implements ApiWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ApiWikiGetEntityTagHeaders + headersMapper: Mappers.ApiWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -163,23 +162,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiGetHeaders + headersMapper: Mappers.ApiWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -187,85 +185,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ApiWikiUpdateHeaders + headersMapper: Mappers.ApiWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -273,8 +268,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts index d4aeb49360f5..3e3dc2241d2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -18,7 +18,7 @@ import { ApiWikisListNextOptionalParams, ApiWikisListOptionalParams, ApiWikisListResponse, - ApiWikisListNextResponse + ApiWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, options?: ApiWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApiWikisListResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class ApiWikisImpl implements ApiWikis { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,13 +110,13 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -133,11 +133,11 @@ export class ApiWikisImpl implements ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class ApiWikisImpl implements ApiWikis { serviceName: string, apiId: string, nextLink: string, - options?: ApiWikisListNextOptionalParams + options?: ApiWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -166,43 +166,42 @@ export class ApiWikisImpl implements ApiWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WikiCollection + bodyMapper: Mappers.WikiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.apiId1 + Parameters.apiId1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts index c347d55c595e..82d42ca5cb98 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -26,7 +26,7 @@ import { AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, AuthorizationConfirmConsentCodeResponse, - AuthorizationListByAuthorizationProviderNextResponse + AuthorizationListByAuthorizationProviderNextResponse, } from "../models"; /// @@ -53,13 +53,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationProviderPagingAll( resourceGroupName, serviceName, authorizationProviderId, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationListByAuthorizationProviderResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class AuthorizationImpl implements Authorization { resourceGroupName, serviceName, authorizationProviderId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,13 +123,13 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationProviderPagingPage( resourceGroupName, serviceName, authorizationProviderId, - options + options, )) { yield* page; } @@ -146,11 +146,11 @@ export class AuthorizationImpl implements Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - listByAuthorizationProviderOperationSpec + listByAuthorizationProviderOperationSpec, ); } @@ -167,7 +167,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +175,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, authorizationId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -196,7 +196,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -205,9 +205,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -227,7 +227,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -236,9 +236,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -257,7 +257,7 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class AuthorizationImpl implements Authorization { authorizationProviderId, authorizationId, parameters, - options + options, }, - confirmConsentCodeOperationSpec + confirmConsentCodeOperationSpec, ); } @@ -286,7 +286,7 @@ export class AuthorizationImpl implements Authorization { serviceName: string, authorizationProviderId: string, nextLink: string, - options?: AuthorizationListByAuthorizationProviderNextOptionalParams + options?: AuthorizationListByAuthorizationProviderNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -294,9 +294,9 @@ export class AuthorizationImpl implements Authorization { serviceName, authorizationProviderId, nextLink, - options + options, }, - listByAuthorizationProviderNextOperationSpec + listByAuthorizationProviderNextOperationSpec, ); } } @@ -304,45 +304,43 @@ export class AuthorizationImpl implements Authorization { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationGetHeaders + headersMapper: Mappers.AuthorizationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,27 +349,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationContract, - headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,22 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], @@ -434,22 +429,22 @@ const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationCollection + bodyMapper: Mappers.AuthorizationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -457,8 +452,8 @@ const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts index 021fe8debd36..37c3f55cd045 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -23,13 +23,14 @@ import { AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, AuthorizationAccessPolicyDeleteOptionalParams, - AuthorizationAccessPolicyListByAuthorizationNextResponse + AuthorizationAccessPolicyListByAuthorizationNextResponse, } from "../models"; /// /** Class containing AuthorizationAccessPolicy operations. */ export class AuthorizationAccessPolicyImpl - implements AuthorizationAccessPolicy { + implements AuthorizationAccessPolicy +{ private readonly client: ApiManagementClient; /** @@ -53,14 +54,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByAuthorizationPagingAll( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +92,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationAccessPolicyListByAuthorizationResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +102,7 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +116,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,14 +130,14 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByAuthorizationPagingPage( resourceGroupName, serviceName, authorizationProviderId, authorizationId, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class AuthorizationAccessPolicyImpl serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class AuthorizationAccessPolicyImpl serviceName, authorizationProviderId, authorizationId, - options + options, }, - listByAuthorizationOperationSpec + listByAuthorizationOperationSpec, ); } @@ -184,7 +185,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -193,9 +194,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, authorizationAccessPolicyId, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -216,7 +217,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -226,9 +227,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -250,7 +251,7 @@ export class AuthorizationAccessPolicyImpl authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -260,9 +261,9 @@ export class AuthorizationAccessPolicyImpl authorizationId, authorizationAccessPolicyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,7 +282,7 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId: string, authorizationId: string, nextLink: string, - options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -290,9 +291,9 @@ export class AuthorizationAccessPolicyImpl authorizationProviderId, authorizationId, nextLink, - options + options, }, - listByAuthorizationNextOperationSpec + listByAuthorizationNextOperationSpec, ); } } @@ -300,22 +301,21 @@ export class AuthorizationAccessPolicyImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByAuthorizationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -323,23 +323,22 @@ const listByAuthorizationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders + headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,27 +348,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationAccessPolicyContract, - headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], @@ -380,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +406,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.authorizationProviderId, Parameters.authorizationId, - Parameters.authorizationAccessPolicyId + Parameters.authorizationAccessPolicyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationAccessPolicyCollection + bodyMapper: Mappers.AuthorizationAccessPolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -432,8 +429,8 @@ const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts index 7a86c6edba4f..69ef0fa99edc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Class containing AuthorizationLoginLinks operations. */ @@ -44,7 +44,7 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -53,9 +53,9 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { authorizationProviderId, authorizationId, parameters, - options + options, }, - postOperationSpec + postOperationSpec, ); } } @@ -63,17 +63,16 @@ export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const postOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationLoginResponseContract, - headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], @@ -83,9 +82,9 @@ const postOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.authorizationProviderId, - Parameters.authorizationId + Parameters.authorizationId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts index 603eae55b5fa..6aeeff62958c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -23,7 +23,7 @@ import { AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, AuthorizationProviderDeleteOptionalParams, - AuthorizationProviderListByServiceNextResponse + AuthorizationProviderListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authorizationProviderId, options }, - getOperationSpec + getOperationSpec, ); } @@ -172,7 +172,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -180,9 +180,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -200,7 +200,7 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { serviceName, authorizationProviderId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -225,11 +225,11 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationProviderListByServiceNextOptionalParams + options?: AuthorizationProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -237,44 +237,42 @@ export class AuthorizationProviderImpl implements AuthorizationProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderGetHeaders + headersMapper: Mappers.AuthorizationProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -282,27 +280,26 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationProviderContract, - headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], @@ -311,26 +308,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,29 +334,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authorizationProviderId + Parameters.authorizationProviderId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationProviderCollection + bodyMapper: Mappers.AuthorizationProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 99abc294e940..c3ecda153cf6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -30,7 +30,7 @@ import { AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, AuthorizationServerListSecretsResponse, - AuthorizationServerListByServiceNextResponse + AuthorizationServerListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { public listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AuthorizationServerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class AuthorizationServerImpl implements AuthorizationServer { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { private _listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, authsid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class AuthorizationServerImpl implements AuthorizationServer { resourceGroupName: string, serviceName: string, nextLink: string, - options?: AuthorizationServerListByServiceNextOptionalParams + options?: AuthorizationServerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class AuthorizationServerImpl implements AuthorizationServer { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders + headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerGetHeaders + headersMapper: Mappers.AuthorizationServerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AuthorizationServerContract, - headersMapper: Mappers.AuthorizationServerUpdateHeaders + headersMapper: Mappers.AuthorizationServerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AuthorizationServerSecretsContract, - headersMapper: Mappers.AuthorizationServerListSecretsHeaders + headersMapper: Mappers.AuthorizationServerListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.authsid + Parameters.authsid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AuthorizationServerCollection + bodyMapper: Mappers.AuthorizationServerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index c445f24cedbc..556eab5edd6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -29,7 +29,7 @@ import { BackendUpdateResponse, BackendDeleteOptionalParams, BackendReconnectOptionalParams, - BackendListByServiceNextResponse + BackendListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class BackendImpl implements Backend { public listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BackendListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class BackendImpl implements Backend { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class BackendImpl implements Backend { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class BackendImpl implements Backend { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class BackendImpl implements Backend { private _listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,11 +200,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -225,7 +225,7 @@ export class BackendImpl implements Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -234,9 +234,9 @@ export class BackendImpl implements Backend { backendId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -255,11 +255,11 @@ export class BackendImpl implements Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -276,11 +276,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, backendId, options }, - reconnectOperationSpec + reconnectOperationSpec, ); } @@ -295,11 +295,11 @@ export class BackendImpl implements Backend { resourceGroupName: string, serviceName: string, nextLink: string, - options?: BackendListByServiceNextOptionalParams + options?: BackendListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -307,43 +307,41 @@ export class BackendImpl implements Backend { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.BackendGetEntityTagHeaders + headersMapper: Mappers.BackendGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,23 +349,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendGetHeaders + headersMapper: Mappers.BackendGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -375,85 +372,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendCreateOrUpdateHeaders + headersMapper: Mappers.BackendCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.BackendContract, - headersMapper: Mappers.BackendUpdateHeaders + headersMapper: Mappers.BackendUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -461,52 +455,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const reconnectOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", httpMethod: "POST", responses: { 202: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.backendId + Parameters.backendId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BackendCollection + bodyMapper: Mappers.BackendCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index 4c8a2d9f2f7c..8f9f36634915 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -28,7 +28,7 @@ import { CacheUpdateOptionalParams, CacheUpdateResponse, CacheDeleteOptionalParams, - CacheListByServiceNextResponse + CacheListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CacheImpl implements Cache { public listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, options?: CacheListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CacheListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CacheImpl implements Cache { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CacheImpl implements Cache { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CacheImpl implements Cache { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CacheImpl implements Cache { private _listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,11 +224,11 @@ export class CacheImpl implements Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -247,11 +247,11 @@ export class CacheImpl implements Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, cacheId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -266,11 +266,11 @@ export class CacheImpl implements Cache { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CacheListByServiceNextOptionalParams + options?: CacheListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -278,38 +278,36 @@ export class CacheImpl implements Cache { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CacheGetEntityTagHeaders + headersMapper: Mappers.CacheGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -317,23 +315,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheGetHeaders + headersMapper: Mappers.CacheGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -341,85 +338,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheCreateOrUpdateHeaders + headersMapper: Mappers.CacheCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.CacheContract, - headersMapper: Mappers.CacheUpdateHeaders + headersMapper: Mappers.CacheUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -427,29 +421,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.cacheId + Parameters.cacheId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CacheCollection + bodyMapper: Mappers.CacheCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index e4768349aeb3..d712736f1ab7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -28,7 +28,7 @@ import { CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, CertificateRefreshSecretResponse, - CertificateListByServiceNextResponse + CertificateListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class CertificateImpl implements Certificate { public listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, options?: CertificateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class CertificateImpl implements Certificate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class CertificateImpl implements Certificate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class CertificateImpl implements Certificate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class CertificateImpl implements Certificate { private _listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class CertificateImpl implements Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +242,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, certificateId, options }, - refreshSecretOperationSpec + refreshSecretOperationSpec, ); } @@ -261,11 +261,11 @@ export class CertificateImpl implements Certificate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: CertificateListByServiceNextOptionalParams + options?: CertificateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -273,44 +273,42 @@ export class CertificateImpl implements Certificate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.CertificateGetEntityTagHeaders + headersMapper: Mappers.CertificateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,55 +339,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateCreateOrUpdateHeaders + headersMapper: Mappers.CertificateCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -398,23 +393,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CertificateContract, - headersMapper: Mappers.CertificateRefreshSecretHeaders + headersMapper: Mappers.CertificateRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,29 +416,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.certificateId + Parameters.certificateId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CertificateCollection + bodyMapper: Mappers.CertificateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 3f3cc3eac3b8..431b17e63451 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -25,7 +25,7 @@ import { ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, ContentItemDeleteOptionalParams, - ContentItemListByServiceNextResponse + ContentItemListByServiceNextResponse, } from "../models"; /// @@ -52,13 +52,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, contentTypeId, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, options?: ContentItemListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentItemListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class ContentItemImpl implements ContentItem { resourceGroupName, serviceName, contentTypeId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class ContentItemImpl implements ContentItem { serviceName, contentTypeId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,13 +122,13 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, contentTypeId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class ContentItemImpl implements ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -188,11 +188,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, contentItemId, options }, - getOperationSpec + getOperationSpec, ); } @@ -211,7 +211,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -220,9 +220,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -242,7 +242,7 @@ export class ContentItemImpl implements ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -251,9 +251,9 @@ export class ContentItemImpl implements ContentItem { contentTypeId, contentItemId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -270,11 +270,11 @@ export class ContentItemImpl implements ContentItem { serviceName: string, contentTypeId: string, nextLink: string, - options?: ContentItemListByServiceNextOptionalParams + options?: ContentItemListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -282,16 +282,15 @@ export class ContentItemImpl implements ContentItem { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +298,21 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ContentItemGetEntityTagHeaders + headersMapper: Mappers.ContentItemGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -323,23 +321,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemGetHeaders + headersMapper: Mappers.ContentItemGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,29 +345,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentItemContract, - headersMapper: Mappers.ContentItemCreateOrUpdateHeaders + headersMapper: Mappers.ContentItemCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -378,26 +374,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -406,21 +401,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.contentTypeId, - Parameters.contentItemId + Parameters.contentItemId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentItemCollection + bodyMapper: Mappers.ContentItemCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -428,8 +423,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index e9208395eed7..3d08655a3c14 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -23,7 +23,7 @@ import { ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, ContentTypeDeleteOptionalParams, - ContentTypeListByServiceNextResponse + ContentTypeListByServiceNextResponse, } from "../models"; /// @@ -49,12 +49,12 @@ export class ContentTypeImpl implements ContentType { public listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, options?: ContentTypeListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ContentTypeListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ContentTypeImpl implements ContentType { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -101,7 +101,7 @@ export class ContentTypeImpl implements ContentType { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -113,12 +113,12 @@ export class ContentTypeImpl implements ContentType { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class ContentTypeImpl implements ContentType { private _listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -154,11 +154,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, options }, - getOperationSpec + getOperationSpec, ); } @@ -177,11 +177,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -201,11 +201,11 @@ export class ContentTypeImpl implements ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, contentTypeId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -220,11 +220,11 @@ export class ContentTypeImpl implements ContentType { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ContentTypeListByServiceNextOptionalParams + options?: ContentTypeListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -232,39 +232,37 @@ export class ContentTypeImpl implements ContentType { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeGetHeaders + headersMapper: Mappers.ContentTypeGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -272,55 +270,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ContentTypeContract, - headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders + headersMapper: Mappers.ContentTypeCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,29 +324,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.contentTypeId + Parameters.contentTypeId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ContentTypeCollection + bodyMapper: Mappers.ContentTypeCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index d4a14c240964..77f6c8d6f59c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -21,7 +21,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Class containing DelegationSettings operations. */ @@ -45,11 +45,11 @@ export class DelegationSettingsImpl implements DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -62,11 +62,11 @@ export class DelegationSettingsImpl implements DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -84,11 +84,11 @@ export class DelegationSettingsImpl implements DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -103,11 +103,11 @@ export class DelegationSettingsImpl implements DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -120,11 +120,11 @@ export class DelegationSettingsImpl implements DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } } @@ -132,123 +132,118 @@ export class DelegationSettingsImpl implements DelegationSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders + headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalDelegationSettings, - headersMapper: Mappers.DelegationSettingsGetHeaders + headersMapper: Mappers.DelegationSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalDelegationSettings + bodyMapper: Mappers.PortalDelegationSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PortalSettingValidationKeyContract + bodyMapper: Mappers.PortalSettingValidationKeyContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 8dd8dab2cfc4..ad952848d334 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,7 +27,7 @@ import { DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, DeletedServicesPurgeOptionalParams, - DeletedServicesListBySubscriptionNextResponse + DeletedServicesListBySubscriptionNextResponse, } from "../models"; /// @@ -48,7 +48,7 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ public listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -63,13 +63,13 @@ export class DeletedServicesImpl implements DeletedServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DeletedServicesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeletedServicesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class DeletedServicesImpl implements DeletedServices { } private async *listBySubscriptionPagingAll( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -102,11 +102,11 @@ export class DeletedServicesImpl implements DeletedServices { * @param options The options parameters. */ private _listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -119,11 +119,11 @@ export class DeletedServicesImpl implements DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { serviceName, location, options }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -136,25 +136,24 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -163,8 +162,8 @@ export class DeletedServicesImpl implements DeletedServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -172,20 +171,20 @@ export class DeletedServicesImpl implements DeletedServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { serviceName, location, options }, - spec: purgeOperationSpec + spec: purgeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -200,7 +199,7 @@ export class DeletedServicesImpl implements DeletedServices { async beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise { const poller = await this.beginPurge(serviceName, location, options); return poller.pollUntilDone(); @@ -213,11 +212,11 @@ export class DeletedServicesImpl implements DeletedServices { */ private _listBySubscriptionNext( nextLink: string, - options?: DeletedServicesListBySubscriptionNextOptionalParams + options?: DeletedServicesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -225,47 +224,44 @@ export class DeletedServicesImpl implements DeletedServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServiceContract + bodyMapper: Mappers.DeletedServiceContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const purgeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/deletedservices/{serviceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -273,35 +269,35 @@ const purgeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.serviceName, Parameters.subscriptionId, - Parameters.location + Parameters.location, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DeletedServicesCollection + bodyMapper: Mappers.DeletedServicesCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index d27a987dc82b..25b5fbcec6c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -27,7 +27,7 @@ import { DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, DiagnosticDeleteOptionalParams, - DiagnosticListByServiceNextResponse + DiagnosticListByServiceNextResponse, } from "../models"; /// @@ -52,12 +52,12 @@ export class DiagnosticImpl implements Diagnostic { public listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +84,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, options?: DiagnosticListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiagnosticListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +92,7 @@ export class DiagnosticImpl implements Diagnostic { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,12 +116,12 @@ export class DiagnosticImpl implements Diagnostic { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -136,11 +136,11 @@ export class DiagnosticImpl implements Diagnostic { private _listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -223,7 +223,7 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -232,9 +232,9 @@ export class DiagnosticImpl implements Diagnostic { diagnosticId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -253,11 +253,11 @@ export class DiagnosticImpl implements Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, diagnosticId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -272,11 +272,11 @@ export class DiagnosticImpl implements Diagnostic { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DiagnosticListByServiceNextOptionalParams + options?: DiagnosticListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -284,43 +284,41 @@ export class DiagnosticImpl implements Diagnostic { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DiagnosticGetEntityTagHeaders + headersMapper: Mappers.DiagnosticGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -328,23 +326,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticGetHeaders + headersMapper: Mappers.DiagnosticGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -352,85 +349,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DiagnosticContract, - headersMapper: Mappers.DiagnosticUpdateHeaders + headersMapper: Mappers.DiagnosticUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,29 +432,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.diagnosticId + Parameters.diagnosticId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiagnosticCollection + bodyMapper: Mappers.DiagnosticCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts index 7550ac83335b..411424874fe7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -28,7 +28,7 @@ import { DocumentationUpdateOptionalParams, DocumentationUpdateResponse, DocumentationDeleteOptionalParams, - DocumentationListByServiceNextResponse + DocumentationListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class DocumentationImpl implements Documentation { public listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DocumentationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class DocumentationImpl implements Documentation { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class DocumentationImpl implements Documentation { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class DocumentationImpl implements Documentation { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class DocumentationImpl implements Documentation { private _listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,11 +199,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -224,7 +224,7 @@ export class DocumentationImpl implements Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -233,9 +233,9 @@ export class DocumentationImpl implements Documentation { documentationId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -254,11 +254,11 @@ export class DocumentationImpl implements Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, documentationId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -273,11 +273,11 @@ export class DocumentationImpl implements Documentation { resourceGroupName: string, serviceName: string, nextLink: string, - options?: DocumentationListByServiceNextOptionalParams + options?: DocumentationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -285,43 +285,41 @@ export class DocumentationImpl implements Documentation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.DocumentationGetEntityTagHeaders + headersMapper: Mappers.DocumentationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -329,23 +327,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationGetHeaders + headersMapper: Mappers.DocumentationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -353,85 +350,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.DocumentationContract, - headersMapper: Mappers.DocumentationUpdateHeaders + headersMapper: Mappers.DocumentationUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -439,29 +433,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.documentationId + Parameters.documentationId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DocumentationCollection + bodyMapper: Mappers.DocumentationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index f718843e6496..83bbcbb749df 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -29,7 +29,7 @@ import { EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, EmailTemplateDeleteOptionalParams, - EmailTemplateListByServiceNextResponse + EmailTemplateListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class EmailTemplateImpl implements EmailTemplate { public listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, options?: EmailTemplateListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EmailTemplateListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class EmailTemplateImpl implements EmailTemplate { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class EmailTemplateImpl implements EmailTemplate { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class EmailTemplateImpl implements EmailTemplate { private _listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,7 +221,7 @@ export class EmailTemplateImpl implements EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class EmailTemplateImpl implements EmailTemplate { templateName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class EmailTemplateImpl implements EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -269,11 +269,11 @@ export class EmailTemplateImpl implements EmailTemplate { resourceGroupName: string, serviceName: string, nextLink: string, - options?: EmailTemplateListByServiceNextOptionalParams + options?: EmailTemplateListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -281,43 +281,41 @@ export class EmailTemplateImpl implements EmailTemplate { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.EmailTemplateGetEntityTagHeaders + headersMapper: Mappers.EmailTemplateGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -325,23 +323,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateGetHeaders + headersMapper: Mappers.EmailTemplateGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -349,83 +346,80 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, 201: { - bodyMapper: Mappers.EmailTemplateContract + bodyMapper: Mappers.EmailTemplateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.EmailTemplateContract, - headersMapper: Mappers.EmailTemplateUpdateHeaders + headersMapper: Mappers.EmailTemplateUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -433,29 +427,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.templateName + Parameters.templateName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EmailTemplateCollection + bodyMapper: Mappers.EmailTemplateCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index 490287bf253f..c974ff8de410 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -34,7 +34,14 @@ import { GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, GatewayGenerateTokenResponse, - GatewayListByServiceNextResponse + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, + GatewayListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class GatewayImpl implements Gateway { public listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class GatewayImpl implements Gateway { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class GatewayImpl implements Gateway { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class GatewayImpl implements Gateway { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class GatewayImpl implements Gateway { private _listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -163,11 +170,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -183,11 +190,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - getOperationSpec + getOperationSpec, ); } @@ -205,11 +212,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +237,7 @@ export class GatewayImpl implements Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +246,9 @@ export class GatewayImpl implements Gateway { gatewayId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -260,11 +267,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -280,11 +287,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listKeysOperationSpec + listKeysOperationSpec, ); } @@ -302,11 +309,11 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -324,11 +331,75 @@ export class GatewayImpl implements Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, parameters, options }, - generateTokenOperationSpec + generateTokenOperationSpec, + ); + } + + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, options }, + invalidateDebugCredentialsOperationSpec, + ); + } + + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listDebugCredentialsOperationSpec, + ); + } + + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listTraceOperationSpec, ); } @@ -343,11 +414,11 @@ export class GatewayImpl implements Gateway { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GatewayListByServiceNextOptionalParams + options?: GatewayListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -355,43 +426,41 @@ export class GatewayImpl implements Gateway { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayGetEntityTagHeaders + headersMapper: Mappers.GatewayGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -399,23 +468,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayGetHeaders + headersMapper: Mappers.GatewayGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -423,85 +491,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GatewayContract, - headersMapper: Mappers.GatewayUpdateHeaders + headersMapper: Mappers.GatewayUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -509,23 +574,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.GatewayKeysContract, - headersMapper: Mappers.GatewayListKeysHeaders + headersMapper: Mappers.GatewayListKeysHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -533,77 +597,145 @@ const listKeysOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const generateTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GatewayTokenContract + bodyMapper: Mappers.GatewayTokenContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters48, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const invalidateDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/invalidateDebugCredentials", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listDebugCredentials", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GatewayDebugCredentialsContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters49, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listTraceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listTrace", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCollection + bodyMapper: Mappers.GatewayCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index b355825a6bfe..836f0c669e87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -23,7 +23,7 @@ import { GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, GatewayApiDeleteOptionalParams, - GatewayApiListByServiceNextResponse + GatewayApiListByServiceNextResponse, } from "../models"; /// @@ -51,13 +51,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, options?: GatewayApiListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayApiListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GatewayApiImpl implements GatewayApi { serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,13 +121,13 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -145,11 +145,11 @@ export class GatewayApiImpl implements GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -189,11 +189,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -211,11 +211,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class GatewayApiImpl implements GatewayApi { serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayApiListByServiceNextOptionalParams + options?: GatewayApiListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -245,44 +245,42 @@ export class GatewayApiImpl implements GatewayApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayApiGetEntityTagHeaders + headersMapper: Mappers.GatewayApiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -291,27 +289,26 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -319,22 +316,21 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -343,21 +339,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId1, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -365,8 +361,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index bac861289331..3d68f14f2188 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -25,13 +25,14 @@ import { GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, GatewayCertificateAuthorityDeleteOptionalParams, - GatewayCertificateAuthorityListByServiceNextResponse + GatewayCertificateAuthorityListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayCertificateAuthority operations. */ export class GatewayCertificateAuthorityImpl - implements GatewayCertificateAuthority { + implements GatewayCertificateAuthority +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, options?: GatewayCertificateAuthorityListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayCertificateAuthorityListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayCertificateAuthorityImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayCertificateAuthorityImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayCertificateAuthorityImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -171,11 +172,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -194,11 +195,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, certificateId, options }, - getOperationSpec + getOperationSpec, ); } @@ -219,7 +220,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -228,9 +229,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -252,7 +253,7 @@ export class GatewayCertificateAuthorityImpl gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -261,9 +262,9 @@ export class GatewayCertificateAuthorityImpl gatewayId, certificateId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -281,11 +282,11 @@ export class GatewayCertificateAuthorityImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayCertificateAuthorityListByServiceNextOptionalParams + options?: GatewayCertificateAuthorityListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -293,44 +294,42 @@ export class GatewayCertificateAuthorityImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -339,23 +338,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders + headersMapper: Mappers.GatewayCertificateAuthorityGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -364,29 +362,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayCertificateAuthorityContract, - headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders + headersMapper: Mappers.GatewayCertificateAuthorityCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,26 +391,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -422,21 +418,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.certificateId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayCertificateAuthorityCollection + bodyMapper: Mappers.GatewayCertificateAuthorityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -444,8 +440,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index c65ce1a26b6b..c824b537b81e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -25,13 +25,14 @@ import { GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, GatewayHostnameConfigurationDeleteOptionalParams, - GatewayHostnameConfigurationListByServiceNextResponse + GatewayHostnameConfigurationListByServiceNextResponse, } from "../models"; /// /** Class containing GatewayHostnameConfiguration operations. */ export class GatewayHostnameConfigurationImpl - implements GatewayHostnameConfiguration { + implements GatewayHostnameConfiguration +{ private readonly client: ApiManagementClient; /** @@ -54,13 +55,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, gatewayId, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, options?: GatewayHostnameConfigurationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GatewayHostnameConfigurationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class GatewayHostnameConfigurationImpl resourceGroupName, serviceName, gatewayId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class GatewayHostnameConfigurationImpl serviceName, gatewayId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, gatewayId, - options + options, )) { yield* page; } @@ -148,11 +149,11 @@ export class GatewayHostnameConfigurationImpl resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -172,11 +173,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -195,11 +196,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, options }, - getOperationSpec + getOperationSpec, ); } @@ -220,11 +221,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -246,11 +247,11 @@ export class GatewayHostnameConfigurationImpl gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, hcId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +269,11 @@ export class GatewayHostnameConfigurationImpl serviceName: string, gatewayId: string, nextLink: string, - options?: GatewayHostnameConfigurationListByServiceNextOptionalParams + options?: GatewayHostnameConfigurationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, gatewayId, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,44 +281,42 @@ export class GatewayHostnameConfigurationImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -326,23 +325,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders + headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -351,29 +349,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GatewayHostnameConfigurationContract, - headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -381,26 +378,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -409,21 +405,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.gatewayId, - Parameters.hcId + Parameters.hcId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GatewayHostnameConfigurationCollection + bodyMapper: Mappers.GatewayHostnameConfigurationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -431,8 +427,8 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.gatewayId + Parameters.gatewayId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 9081ec027225..7c386abf85a9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, GlobalSchemaDeleteOptionalParams, - GlobalSchemaListByServiceNextResponse + GlobalSchemaListByServiceNextResponse, } from "../models"; /// @@ -56,12 +56,12 @@ export class GlobalSchemaImpl implements GlobalSchema { public listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -78,9 +78,9 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +88,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GlobalSchemaListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class GlobalSchemaImpl implements GlobalSchema { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +108,7 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +120,12 @@ export class GlobalSchemaImpl implements GlobalSchema { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class GlobalSchemaImpl implements GlobalSchema { private _listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -159,11 +159,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -178,11 +178,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, options }, - getOperationSpec + getOperationSpec, ); } @@ -199,7 +199,7 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -208,21 +208,20 @@ export class GlobalSchemaImpl implements GlobalSchema { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -231,8 +230,8 @@ export class GlobalSchemaImpl implements GlobalSchema { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -240,15 +239,15 @@ export class GlobalSchemaImpl implements GlobalSchema { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, schemaId, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GlobalSchemaCreateOrUpdateResponse, @@ -256,7 +255,7 @@ export class GlobalSchemaImpl implements GlobalSchema { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -275,14 +274,14 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, schemaId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +300,11 @@ export class GlobalSchemaImpl implements GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, schemaId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -320,11 +319,11 @@ export class GlobalSchemaImpl implements GlobalSchema { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GlobalSchemaListByServiceNextOptionalParams + options?: GlobalSchemaListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -332,43 +331,41 @@ export class GlobalSchemaImpl implements GlobalSchema { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders + headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -376,23 +373,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaGetHeaders + headersMapper: Mappers.GlobalSchemaGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -400,63 +396,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.GlobalSchemaContract, - headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,29 +458,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.schemaId + Parameters.schemaId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GlobalSchemaCollection + bodyMapper: Mappers.GlobalSchemaCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts index 1d2fa2cedd2a..ecca0117b086 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -28,7 +28,7 @@ import { GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, GraphQLApiResolverDeleteOptionalParams, - GraphQLApiResolverListByApiNextResponse + GraphQLApiResolverListByApiNextResponse, } from "../models"; /// @@ -56,13 +56,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -91,7 +91,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverListByApiResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -126,13 +126,13 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -150,11 +150,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -173,11 +173,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -196,11 +196,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - getOperationSpec + getOperationSpec, ); } @@ -221,7 +221,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -230,9 +230,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId, resolverId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -256,7 +256,7 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -266,9 +266,9 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { resolverId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -290,11 +290,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -312,11 +312,11 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { serviceName: string, apiId: string, nextLink: string, - options?: GraphQLApiResolverListByApiNextOptionalParams + options?: GraphQLApiResolverListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } } @@ -324,44 +324,42 @@ export class GraphQLApiResolverImpl implements GraphQLApiResolver { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -370,23 +368,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverGetHeaders + headersMapper: Mappers.GraphQLApiResolverGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -395,29 +392,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -425,30 +421,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ResolverContract, - headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -456,26 +451,25 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,30 +478,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResolverCollection + bodyMapper: Mappers.ResolverCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts index 884fac6979f9..d064ae4aeac5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -26,7 +26,7 @@ import { GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, GraphQLApiResolverPolicyDeleteOptionalParams, - GraphQLApiResolverPolicyListByResolverNextResponse + GraphQLApiResolverPolicyListByResolverNextResponse, } from "../models"; /// @@ -57,14 +57,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResolverPagingAll( resourceGroupName, serviceName, apiId, resolverId, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GraphQLApiResolverPolicyListByResolverResponse; let continuationToken = settings?.continuationToken; @@ -105,7 +105,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName, apiId, resolverId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +119,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId, resolverId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -133,14 +133,14 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResolverPagingPage( resourceGroupName, serviceName, apiId, resolverId, - options + options, )) { yield* page; } @@ -161,11 +161,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, options }, - listByResolverOperationSpec + listByResolverOperationSpec, ); } @@ -186,11 +186,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -211,11 +211,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -238,7 +238,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -248,9 +248,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -274,7 +274,7 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -284,9 +284,9 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { resolverId, policyId, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -307,11 +307,11 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { apiId: string, resolverId: string, nextLink: string, - options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, - listByResolverNextOperationSpec + listByResolverNextOperationSpec, ); } } @@ -319,16 +319,15 @@ export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByResolverOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -337,22 +336,21 @@ const listByResolverOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,23 +360,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -388,29 +385,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -419,26 +415,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,31 +443,31 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.policyId, - Parameters.resolverId + Parameters.resolverId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByResolverNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.resolverId + Parameters.apiId, + Parameters.resolverId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d2e53a84fd5e..505db875c5f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -29,7 +29,7 @@ import { GroupUpdateOptionalParams, GroupUpdateResponse, GroupDeleteOptionalParams, - GroupListByServiceNextResponse + GroupListByServiceNextResponse, } from "../models"; /// @@ -54,12 +54,12 @@ export class GroupImpl implements Group { public listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -76,9 +76,9 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, options?: GroupListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupImpl implements Group { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +106,7 @@ export class GroupImpl implements Group { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,12 +118,12 @@ export class GroupImpl implements Group { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class GroupImpl implements Group { private _listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -157,11 +157,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -176,11 +176,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - getOperationSpec + getOperationSpec, ); } @@ -197,11 +197,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class GroupImpl implements Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,11 +243,11 @@ export class GroupImpl implements Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -262,11 +262,11 @@ export class GroupImpl implements Group { resourceGroupName: string, serviceName: string, nextLink: string, - options?: GroupListByServiceNextOptionalParams + options?: GroupListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -274,43 +274,41 @@ export class GroupImpl implements Group { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.GroupGetEntityTagHeaders + headersMapper: Mappers.GroupGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,23 +316,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupGetHeaders + headersMapper: Mappers.GroupGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -342,85 +339,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupCreateOrUpdateHeaders + headersMapper: Mappers.GroupCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.GroupContract, - headersMapper: Mappers.GroupUpdateHeaders + headersMapper: Mappers.GroupUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,29 +422,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index d0e13397ab74..274d17238eb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -23,7 +23,7 @@ import { GroupUserCreateOptionalParams, GroupUserCreateResponse, GroupUserDeleteOptionalParams, - GroupUserListNextResponse + GroupUserListNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, groupId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, options?: GroupUserListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GroupUserListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class GroupUserImpl implements GroupUser { resourceGroupName, serviceName, groupId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class GroupUserImpl implements GroupUser { serviceName, groupId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, groupId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class GroupUserImpl implements GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, options }, - listOperationSpec + listOperationSpec, ); } @@ -164,11 +164,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - createOperationSpec + createOperationSpec, ); } @@ -206,11 +206,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class GroupUserImpl implements GroupUser { serviceName: string, groupId: string, nextLink: string, - options?: GroupUserListNextOptionalParams + options?: GroupUserListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -239,43 +239,41 @@ export class GroupUserImpl implements GroupUser { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -284,25 +282,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, 201: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -311,21 +308,20 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -334,21 +330,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.groupId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -356,8 +352,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index 7718b64cc6b3..2108e12f386d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -32,7 +32,7 @@ import { IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, IdentityProviderListSecretsResponse, - IdentityProviderListByServiceNextResponse + IdentityProviderListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class IdentityProviderImpl implements IdentityProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, options?: IdentityProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IdentityProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class IdentityProviderImpl implements IdentityProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class IdentityProviderImpl implements IdentityProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class IdentityProviderImpl implements IdentityProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -160,11 +160,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -179,11 +179,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,7 +200,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -208,9 +208,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -230,7 +230,7 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -239,9 +239,9 @@ export class IdentityProviderImpl implements IdentityProvider { identityProviderName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -259,7 +259,7 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -267,9 +267,9 @@ export class IdentityProviderImpl implements IdentityProvider { serviceName, identityProviderName, ifMatch, - options + options, }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -284,11 +284,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, identityProviderName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -303,11 +303,11 @@ export class IdentityProviderImpl implements IdentityProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IdentityProviderListByServiceNextOptionalParams + options?: IdentityProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -315,38 +315,36 @@ export class IdentityProviderImpl implements IdentityProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.IdentityProviderGetEntityTagHeaders + headersMapper: Mappers.IdentityProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -354,23 +352,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderGetHeaders + headersMapper: Mappers.IdentityProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,85 +375,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.IdentityProviderContract, - headersMapper: Mappers.IdentityProviderUpdateHeaders + headersMapper: Mappers.IdentityProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -464,23 +458,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.IdentityProviderListSecretsHeaders + headersMapper: Mappers.IdentityProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -488,29 +481,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.identityProviderName + Parameters.identityProviderName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IdentityProviderList + bodyMapper: Mappers.IdentityProviderList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 83434e88bcd2..736526b70087 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -6,6 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; +export * from "./apiManagementGatewaySkus"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +30,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,11 +45,13 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; export * from "./gatewayApi"; export * from "./gatewayCertificateAuthority"; +export * from "./apiManagementGatewayConfigConnection"; export * from "./group"; export * from "./groupUser"; export * from "./identityProvider"; @@ -62,6 +67,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +83,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +94,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +105,40 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspaceBackend"; +export * from "./workspaceCertificate"; +export * from "./workspaceDiagnostic"; +export * from "./workspaceApiDiagnostic"; +export * from "./workspaceLogger"; +export * from "./apiManagementWorkspaceLinks"; +export * from "./apiManagementWorkspaceLink"; +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"; +export * from "./operationStatus"; +export * from "./operationsResults"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts index 55bf4c71ee76..a201a452f89d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -20,7 +20,7 @@ import { IssueListByServiceResponse, IssueGetOptionalParams, IssueGetResponse, - IssueListByServiceNextResponse + IssueListByServiceNextResponse, } from "../models"; /// @@ -45,12 +45,12 @@ export class IssueImpl implements Issue { public listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -67,9 +67,9 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -77,7 +77,7 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, options?: IssueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: IssueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class IssueImpl implements Issue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class IssueImpl implements Issue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -109,12 +109,12 @@ export class IssueImpl implements Issue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -129,11 +129,11 @@ export class IssueImpl implements Issue { private _listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -148,11 +148,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, issueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -167,11 +167,11 @@ export class IssueImpl implements Issue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: IssueListByServiceNextOptionalParams + options?: IssueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -179,44 +179,42 @@ export class IssueImpl implements Issue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IssueContract, - headersMapper: Mappers.IssueGetHeaders + headersMapper: Mappers.IssueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -224,29 +222,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.issueId + Parameters.issueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IssueCollection + bodyMapper: Mappers.IssueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index 626d49673b05..32707a2dbf00 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -28,7 +28,7 @@ import { LoggerUpdateOptionalParams, LoggerUpdateResponse, LoggerDeleteOptionalParams, - LoggerListByServiceNextResponse + LoggerListByServiceNextResponse, } from "../models"; /// @@ -53,12 +53,12 @@ export class LoggerImpl implements Logger { public listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -75,9 +75,9 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, options?: LoggerListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LoggerListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class LoggerImpl implements Logger { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +105,7 @@ export class LoggerImpl implements Logger { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +117,12 @@ export class LoggerImpl implements Logger { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -137,11 +137,11 @@ export class LoggerImpl implements Logger { private _listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -156,11 +156,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -175,11 +175,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -220,7 +220,7 @@ export class LoggerImpl implements Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -229,9 +229,9 @@ export class LoggerImpl implements Logger { loggerId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -249,11 +249,11 @@ export class LoggerImpl implements Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, loggerId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -268,11 +268,11 @@ export class LoggerImpl implements Logger { resourceGroupName: string, serviceName: string, nextLink: string, - options?: LoggerListByServiceNextOptionalParams + options?: LoggerListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -280,43 +280,41 @@ export class LoggerImpl implements Logger { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.LoggerGetEntityTagHeaders + headersMapper: Mappers.LoggerGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -324,23 +322,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerGetHeaders + headersMapper: Mappers.LoggerGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -348,85 +345,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerCreateOrUpdateHeaders + headersMapper: Mappers.LoggerCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.LoggerContract, - headersMapper: Mappers.LoggerUpdateHeaders + headersMapper: Mappers.LoggerUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -434,29 +428,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.loggerId + Parameters.loggerId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.LoggerCollection + bodyMapper: Mappers.LoggerCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index c15754457817..9ab6443797a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,7 +39,7 @@ import { NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, NamedValueRefreshSecretResponse, - NamedValueListByServiceNextResponse + NamedValueListByServiceNextResponse, } from "../models"; /// @@ -64,12 +64,12 @@ export class NamedValueImpl implements NamedValue { public listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -86,9 +86,9 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -96,7 +96,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, options?: NamedValueListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NamedValueListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class NamedValueImpl implements NamedValue { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +116,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -128,12 +128,12 @@ export class NamedValueImpl implements NamedValue { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -148,11 +148,11 @@ export class NamedValueImpl implements NamedValue { private _listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -167,11 +167,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -186,11 +186,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - getOperationSpec + getOperationSpec, ); } @@ -207,7 +207,7 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -216,21 +216,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -239,8 +238,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -248,8 +247,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -260,9 +259,9 @@ export class NamedValueImpl implements NamedValue { serviceName, namedValueId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< NamedValueCreateOrUpdateResponse, @@ -270,7 +269,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -289,14 +288,14 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, namedValueId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -349,8 +347,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< NamedValueUpdateResponse, @@ -381,7 +379,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -403,7 +401,7 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -411,7 +409,7 @@ export class NamedValueImpl implements NamedValue { namedValueId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -430,11 +428,11 @@ export class NamedValueImpl implements NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -449,11 +447,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, namedValueId, options }, - listValueOperationSpec + listValueOperationSpec, ); } @@ -468,7 +466,7 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -477,21 +475,20 @@ export class NamedValueImpl implements NamedValue { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -500,8 +497,8 @@ export class NamedValueImpl implements NamedValue { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -509,15 +506,15 @@ export class NamedValueImpl implements NamedValue { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, namedValueId, options }, - spec: refreshSecretOperationSpec + spec: refreshSecretOperationSpec, }); const poller = await createHttpPoller< NamedValueRefreshSecretResponse, @@ -525,7 +522,7 @@ export class NamedValueImpl implements NamedValue { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -542,13 +539,13 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise { const poller = await this.beginRefreshSecret( resourceGroupName, serviceName, namedValueId, - options + options, ); return poller.pollUntilDone(); } @@ -564,11 +561,11 @@ export class NamedValueImpl implements NamedValue { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NamedValueListByServiceNextOptionalParams + options?: NamedValueListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -576,44 +573,42 @@ export class NamedValueImpl implements NamedValue { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed + Parameters.isKeyVaultRefreshFailed, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.NamedValueGetEntityTagHeaders + headersMapper: Mappers.NamedValueGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -621,23 +616,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueGetHeaders + headersMapper: Mappers.NamedValueGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -645,105 +639,102 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueUpdateHeaders + headersMapper: Mappers.NamedValueUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -751,23 +742,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listValueOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueSecretContract, - headersMapper: Mappers.NamedValueListValueHeaders + headersMapper: Mappers.NamedValueListValueHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -775,35 +765,34 @@ const listValueOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const refreshSecretOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/refreshSecret", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 201: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 202: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, 204: { bodyMapper: Mappers.NamedValueContract, - headersMapper: Mappers.NamedValueRefreshSecretHeaders + headersMapper: Mappers.NamedValueRefreshSecretHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -811,29 +800,29 @@ const refreshSecretOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.namedValueId + Parameters.namedValueId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NamedValueCollection + bodyMapper: Mappers.NamedValueCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 8f9ab94e7fee..847e9546512c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -15,7 +15,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Class containing NetworkStatus operations. */ @@ -40,11 +40,11 @@ export class NetworkStatusImpl implements NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -61,11 +61,11 @@ export class NetworkStatusImpl implements NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, locationName, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } } @@ -73,8 +73,7 @@ export class NetworkStatusImpl implements NetworkStatus { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", httpMethod: "GET", responses: { 200: { @@ -84,37 +83,36 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "NetworkStatusContractByLocation" - } - } - } - } + className: "NetworkStatusContractByLocation", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NetworkStatusContract + bodyMapper: Mappers.NetworkStatusContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -122,8 +120,8 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 330f9607e8cb..420fe329e4ed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -23,7 +23,7 @@ import { NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, NotificationCreateOrUpdateResponse, - NotificationListByServiceNextResponse + NotificationListByServiceNextResponse, } from "../models"; /// @@ -48,12 +48,12 @@ export class NotificationImpl implements Notification { public listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, options?: NotificationListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: NotificationListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class NotificationImpl implements Notification { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -100,7 +100,7 @@ export class NotificationImpl implements Notification { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,12 +112,12 @@ export class NotificationImpl implements Notification { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class NotificationImpl implements Notification { private _listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -151,11 +151,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +170,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -189,11 +189,11 @@ export class NotificationImpl implements Notification { resourceGroupName: string, serviceName: string, nextLink: string, - options?: NotificationListByServiceNextOptionalParams + options?: NotificationListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -201,38 +201,36 @@ export class NotificationImpl implements Notification { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -240,22 +238,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NotificationContract + bodyMapper: Mappers.NotificationContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -263,29 +260,29 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept, Parameters.ifMatch], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NotificationCollection + bodyMapper: Mappers.NotificationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 5532326268f3..4ffa289f9a94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -19,12 +19,13 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientEmail operations. */ export class NotificationRecipientEmailImpl - implements NotificationRecipientEmail { + implements NotificationRecipientEmail +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientEmailImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientEmailImpl serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, email, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientEmailImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientEmailCollection + bodyMapper: Mappers.RecipientEmailCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, 201: { - bodyMapper: Mappers.RecipientEmailContract + bodyMapper: Mappers.RecipientEmailContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.notificationName, - Parameters.email + Parameters.email, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index ff459bec71fd..2d9c8cb5f5c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -19,12 +19,13 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Class containing NotificationRecipientUser operations. */ export class NotificationRecipientUserImpl - implements NotificationRecipientUser { + implements NotificationRecipientUser +{ private readonly client: ApiManagementClient; /** @@ -46,11 +47,11 @@ export class NotificationRecipientUserImpl resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, options }, - listByNotificationOperationSpec + listByNotificationOperationSpec, ); } @@ -67,11 +68,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -88,11 +89,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -109,11 +110,11 @@ export class NotificationRecipientUserImpl serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, userId, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -121,16 +122,15 @@ export class NotificationRecipientUserImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByNotificationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecipientUserCollection + bodyMapper: Mappers.RecipientUserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -138,21 +138,20 @@ const listByNotificationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "HEAD", responses: { 204: {}, 404: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -161,25 +160,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, 201: { - bodyMapper: Mappers.RecipientUserContract + bodyMapper: Mappers.RecipientUserContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +186,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -211,8 +208,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.notificationName + Parameters.notificationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 6f214aac252c..6b17b44f5b61 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -30,7 +30,7 @@ import { OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, OpenIdConnectProviderListSecretsResponse, - OpenIdConnectProviderListByServiceNextResponse + OpenIdConnectProviderListByServiceNextResponse, } from "../models"; /// @@ -55,12 +55,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { public listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -77,9 +77,9 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -87,7 +87,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, options?: OpenIdConnectProviderListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OpenIdConnectProviderListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,12 +119,12 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -139,11 +139,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { private _listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -158,11 +158,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -177,11 +177,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - getOperationSpec + getOperationSpec, ); } @@ -198,11 +198,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -222,11 +222,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -263,11 +263,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, opid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -282,11 +282,11 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { resourceGroupName: string, serviceName: string, nextLink: string, - options?: OpenIdConnectProviderListByServiceNextOptionalParams + options?: OpenIdConnectProviderListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -294,43 +294,41 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders + headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -338,23 +336,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderGetHeaders + headersMapper: Mappers.OpenIdConnectProviderGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -362,85 +359,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OpenidConnectProviderContract, - headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders + headersMapper: Mappers.OpenIdConnectProviderUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -448,23 +442,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ClientSecretContract, - headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders + headersMapper: Mappers.OpenIdConnectProviderListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -472,29 +465,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.opid + Parameters.opid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OpenIdConnectProviderCollection + bodyMapper: Mappers.OpenIdConnectProviderCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 91d1fdf3b4ec..ffe3bb290b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -18,7 +18,7 @@ import { OperationListByTagsNextOptionalParams, OperationListByTagsOptionalParams, OperationListByTagsResponse, - OperationListByTagsNextResponse + OperationListByTagsNextResponse, } from "../models"; /// @@ -46,13 +46,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -70,9 +70,9 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -81,7 +81,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, options?: OperationListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -103,7 +103,7 @@ export class OperationOperationsImpl implements OperationOperations { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -116,13 +116,13 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class OperationOperationsImpl implements OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -162,11 +162,11 @@ export class OperationOperationsImpl implements OperationOperations { serviceName: string, apiId: string, nextLink: string, - options?: OperationListByTagsNextOptionalParams + options?: OperationListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -174,53 +174,52 @@ export class OperationOperationsImpl implements OperationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedOperations + Parameters.includeNotTaggedOperations, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationStatus.ts new file mode 100644 index 000000000000..9aa20950e499 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationStatus.ts @@ -0,0 +1,71 @@ +/* + * 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 { OperationStatus } 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 { + OperationStatusGetOptionalParams, + OperationStatusGetResponse, +} from "../models"; + +/** Class containing OperationStatus operations. */ +export class OperationStatusImpl implements OperationStatus { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class OperationStatus class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Returns the current status of an async operation. + * @param location The name of the Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationStatusGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { location, operationId, options }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationStatuses/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.operationId1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationsResults.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationsResults.ts new file mode 100644 index 000000000000..e8430174e5a0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationsResults.ts @@ -0,0 +1,72 @@ +/* + * 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 { OperationsResults } 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 { + OperationsResultsGetOptionalParams, + OperationsResultsGetResponse, +} from "../models"; + +/** Class containing OperationsResults operations. */ +export class OperationsResultsImpl implements OperationsResults { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class OperationsResults class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Returns operation results for long running operations executing DELETE or PATCH on the resource. + * @param location The name of the Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { location, operationId, options }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: {}, + 202: { + headersMapper: Mappers.OperationsResultsGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.operationId1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index 5ac8f335aa65..b3114f1e912b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Class containing OutboundNetworkDependenciesEndpoints operations. */ export class OutboundNetworkDependenciesEndpointsImpl - implements OutboundNetworkDependenciesEndpoints { + implements OutboundNetworkDependenciesEndpoints +{ private readonly client: ApiManagementClient; /** @@ -38,11 +39,11 @@ export class OutboundNetworkDependenciesEndpointsImpl listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -50,24 +51,23 @@ export class OutboundNetworkDependenciesEndpointsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointList + bodyMapper: Mappers.OutboundEnvironmentEndpointList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index d278cdfc55fc..6f04d710333f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Policy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + PolicyListByServiceNextOptionalParams, PolicyListByServiceOptionalParams, PolicyListByServiceResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, + PolicyListByServiceNextResponse, } from "../models"; +/// /** Class containing Policy operations. */ export class PolicyImpl implements Policy { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PolicyImpl implements Policy { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams + options?: PolicyListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all the Global Policy definitions of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PolicyImpl implements Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -105,11 +194,11 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -127,11 +216,30 @@ export class PolicyImpl implements Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -139,38 +247,36 @@ export class PolicyImpl implements Policy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyGetEntityTagHeaders + headersMapper: Mappers.PolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -178,23 +284,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyGetHeaders + headersMapper: Mappers.PolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -202,55 +307,53 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.PolicyCreateOrUpdateHeaders + headersMapper: Mappers.PolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -258,8 +361,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.policyId + Parameters.policyId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index 2f563e88f50e..0a3f565cf433 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Class containing PolicyDescription operations. */ @@ -37,11 +37,11 @@ export class PolicyDescriptionImpl implements PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PolicyDescriptionImpl implements PolicyDescription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyDescriptionCollection + bodyMapper: Mappers.PolicyDescriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.scope1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts index b6d25f5fb6b7..c00e9afa93ec 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PolicyFragment } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -14,24 +16,27 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + PolicyFragmentContract, + PolicyFragmentListByServiceNextOptionalParams, PolicyFragmentListByServiceOptionalParams, PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, + PolicyFragmentListByServiceNextResponse, } from "../models"; +/// /** Class containing PolicyFragment operations. */ export class PolicyFragmentImpl implements PolicyFragment { private readonly client: ApiManagementClient; @@ -50,14 +55,98 @@ export class PolicyFragmentImpl implements PolicyFragment { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -72,11 +161,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -91,11 +180,11 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - getOperationSpec + getOperationSpec, ); } @@ -112,7 +201,7 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -121,21 +210,20 @@ export class PolicyFragmentImpl implements PolicyFragment { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -144,8 +232,8 @@ export class PolicyFragmentImpl implements PolicyFragment { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -153,15 +241,15 @@ export class PolicyFragmentImpl implements PolicyFragment { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, serviceName, id, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PolicyFragmentCreateOrUpdateResponse, @@ -169,7 +257,7 @@ export class PolicyFragmentImpl implements PolicyFragment { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -188,14 +276,14 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, id, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -214,11 +302,11 @@ export class PolicyFragmentImpl implements PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +321,30 @@ export class PolicyFragmentImpl implements PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, id, options }, - listReferencesOperationSpec + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -245,44 +352,42 @@ export class PolicyFragmentImpl implements PolicyFragment { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyFragmentCollection + bodyMapper: Mappers.PolicyFragmentCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -290,23 +395,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentGetHeaders + headersMapper: Mappers.PolicyFragmentGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format2], urlParameters: [ @@ -314,63 +418,61 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PolicyFragmentContract, - headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -378,31 +480,51 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listReferencesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ResourceCollection + bodyMapper: Mappers.ResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.id + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts new file mode 100644 index 000000000000..ddbe05147f5a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestriction.ts @@ -0,0 +1,454 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { PolicyRestriction } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyRestrictionContract, + PolicyRestrictionListByServiceNextOptionalParams, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionListByServiceResponse, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, + PolicyRestrictionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing PolicyRestriction operations. */ +export class PolicyRestrictionImpl implements PolicyRestriction { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestriction class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PolicyRestrictionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + policyRestrictionId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, policyRestrictionId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyRestrictionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyRestrictionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters66, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionContract, + headersMapper: Mappers.PolicyRestrictionUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters67, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyRestrictions/{policyRestrictionId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyRestrictionId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyRestrictionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts new file mode 100644 index 000000000000..5ca7ac842d9f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyRestrictionValidations.ts @@ -0,0 +1,161 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PolicyRestrictionValidations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Class containing PolicyRestrictionValidations operations. */ +export class PolicyRestrictionValidationsImpl + implements PolicyRestrictionValidations +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyRestrictionValidations class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: byServiceOperationSpec, + }); + const poller = await createHttpPoller< + PolicyRestrictionValidationsByServiceResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise { + const poller = await this.beginByService( + resourceGroupName, + serviceName, + options, + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const byServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/validatePolicies", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract, + }, + 201: { + bodyMapper: Mappers.OperationResultContract, + }, + 202: { + bodyMapper: Mappers.OperationResultContract, + }, + 204: { + bodyMapper: Mappers.OperationResultContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts index 4c13b4be9ea9..aa47d5b69d40 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -6,25 +6,30 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PortalConfig } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PortalConfigContract, + PortalConfigListByServiceNextOptionalParams, PortalConfigListByServiceOptionalParams, PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, + PortalConfigListByServiceNextResponse, } from "../models"; +/// /** Class containing PortalConfig operations. */ export class PortalConfigImpl implements PortalConfig { private readonly client: ApiManagementClient; @@ -43,14 +48,98 @@ export class PortalConfigImpl implements PortalConfig { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams + options?: PortalConfigListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: PortalConfigListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -65,11 +154,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -84,11 +173,11 @@ export class PortalConfigImpl implements PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalConfigId, options }, - getOperationSpec + getOperationSpec, ); } @@ -108,7 +197,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -117,9 +206,9 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -139,7 +228,7 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -148,9 +237,28 @@ export class PortalConfigImpl implements PortalConfig { portalConfigId, ifMatch, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PortalConfigListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, ); } } @@ -158,38 +266,36 @@ export class PortalConfigImpl implements PortalConfig { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalConfigCollection + bodyMapper: Mappers.PortalConfigCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalConfigGetEntityTagHeaders + headersMapper: Mappers.PortalConfigGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +303,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalConfigContract, - headersMapper: Mappers.PortalConfigGetHeaders + headersMapper: Mappers.PortalConfigGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -221,66 +326,85 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalConfigContract + bodyMapper: Mappers.PortalConfigContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalConfigId + Parameters.portalConfigId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 06c82783efdc..e3b9939f9d7b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -16,7 +16,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, PortalRevisionUpdateResponse, - PortalRevisionListByServiceNextResponse + PortalRevisionListByServiceNextResponse, } from "../models"; /// @@ -57,12 +57,12 @@ export class PortalRevisionImpl implements PortalRevision { public listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +79,9 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +89,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, options?: PortalRevisionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PortalRevisionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -97,7 +97,7 @@ export class PortalRevisionImpl implements PortalRevision { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -109,7 +109,7 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +121,12 @@ export class PortalRevisionImpl implements PortalRevision { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -141,11 +141,11 @@ export class PortalRevisionImpl implements PortalRevision { private _listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +181,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, portalRevisionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -213,21 +213,20 @@ export class PortalRevisionImpl implements PortalRevision { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -236,8 +235,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -245,8 +244,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -257,9 +256,9 @@ export class PortalRevisionImpl implements PortalRevision { serviceName, portalRevisionId, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionCreateOrUpdateResponse, @@ -267,7 +266,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -288,14 +287,14 @@ export class PortalRevisionImpl implements PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, portalRevisionId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -317,7 +316,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -326,21 +325,20 @@ export class PortalRevisionImpl implements PortalRevision { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -349,8 +347,8 @@ export class PortalRevisionImpl implements PortalRevision { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -358,8 +356,8 @@ export class PortalRevisionImpl implements PortalRevision { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,9 +369,9 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PortalRevisionUpdateResponse, @@ -381,7 +379,7 @@ export class PortalRevisionImpl implements PortalRevision { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -404,7 +402,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -412,7 +410,7 @@ export class PortalRevisionImpl implements PortalRevision { portalRevisionId, ifMatch, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -428,11 +426,11 @@ export class PortalRevisionImpl implements PortalRevision { resourceGroupName: string, serviceName: string, nextLink: string, - options?: PortalRevisionListByServiceNextOptionalParams + options?: PortalRevisionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -440,43 +438,41 @@ export class PortalRevisionImpl implements PortalRevision { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.PortalRevisionGetEntityTagHeaders + headersMapper: Mappers.PortalRevisionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -484,23 +480,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionGetHeaders + headersMapper: Mappers.PortalRevisionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -508,109 +503,107 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders + headersMapper: Mappers.PortalRevisionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 201: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 202: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, 204: { bodyMapper: Mappers.PortalRevisionContract, - headersMapper: Mappers.PortalRevisionUpdateHeaders + headersMapper: Mappers.PortalRevisionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.portalRevisionId + Parameters.portalRevisionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalRevisionCollection + bodyMapper: Mappers.PortalRevisionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index da437e49d95b..cfce53e2cbc8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Class containing PortalSettings operations. */ @@ -37,11 +37,11 @@ export class PortalSettingsImpl implements PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } } @@ -49,24 +49,23 @@ export class PortalSettingsImpl implements PortalSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PortalSettingsCollection + bodyMapper: Mappers.PortalSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index e8e90e2250a0..1f916bc3350b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -15,7 +15,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,13 +31,14 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: ApiManagementClient; /** @@ -57,12 +58,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -79,9 +80,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, options?: PrivateEndpointConnectionListByServiceOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByServiceResponse; result = await this._listByService(resourceGroupName, serviceName, options); @@ -99,12 +100,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -119,11 +120,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -138,16 +139,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - getByNameOperationSpec + getByNameOperationSpec, ); } @@ -164,7 +165,7 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -196,8 +196,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -217,16 +217,16 @@ export class PrivateEndpointConnectionOperationsImpl serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -245,14 +245,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, - options + options, ); return poller.pollUntilDone(); } @@ -268,25 +268,24 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -295,8 +294,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,8 +303,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -315,13 +314,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -338,13 +337,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, serviceName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -358,11 +357,11 @@ export class PrivateEndpointConnectionOperationsImpl listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listPrivateLinkResourcesOperationSpec + listPrivateLinkResourcesOperationSpec, ); } @@ -377,11 +376,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, privateLinkSubResourceName, options }, - getPrivateLinkResourceOperationSpec + getPrivateLinkResourceOperationSpec, ); } } @@ -389,38 +388,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByNameOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -428,31 +425,30 @@ const getByNameOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.privateEndpointConnectionRequest, queryParameters: [Parameters.apiVersion], @@ -461,15 +457,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -477,8 +472,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -486,44 +481,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.PrivateLinkResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/privateLinkResources/{privateLinkSubResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,8 +524,8 @@ const getPrivateLinkResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.privateLinkSubResourceName + Parameters.privateLinkSubResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index cd7bdd87c103..313c94313956 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -33,7 +33,7 @@ import { ProductUpdateResponse, ProductDeleteOptionalParams, ProductListByServiceNextResponse, - ProductListByTagsNextResponse + ProductListByTagsNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class ProductImpl implements Product { public listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class ProductImpl implements Product { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class ProductImpl implements Product { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,12 +142,12 @@ export class ProductImpl implements Product { public listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTagsPagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -164,9 +164,9 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -174,7 +174,7 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, options?: ProductListByTagsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductListByTagsResponse; let continuationToken = settings?.continuationToken; @@ -190,7 +190,7 @@ export class ProductImpl implements Product { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -202,12 +202,12 @@ export class ProductImpl implements Product { private async *listByTagsPagingAll( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTagsPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -222,11 +222,11 @@ export class ProductImpl implements Product { private _listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -241,11 +241,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -260,11 +260,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -281,11 +281,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -305,7 +305,7 @@ export class ProductImpl implements Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -314,9 +314,9 @@ export class ProductImpl implements Product { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -334,11 +334,11 @@ export class ProductImpl implements Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -351,11 +351,11 @@ export class ProductImpl implements Product { private _listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByTagsOperationSpec + listByTagsOperationSpec, ); } @@ -370,11 +370,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByServiceNextOptionalParams + options?: ProductListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } @@ -389,11 +389,11 @@ export class ProductImpl implements Product { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ProductListByTagsNextOptionalParams + options?: ProductListByTagsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTagsNextOperationSpec + listByTagsNextOperationSpec, ); } } @@ -401,45 +401,43 @@ export class ProductImpl implements Product { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, Parameters.tags, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductGetEntityTagHeaders + headersMapper: Mappers.ProductGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -447,23 +445,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductGetHeaders + headersMapper: Mappers.ProductGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -471,85 +468,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductCreateOrUpdateHeaders + headersMapper: Mappers.ProductCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.ProductContract, - headersMapper: Mappers.ProductUpdateHeaders + headersMapper: Mappers.ProductUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], urlParameters: [ @@ -557,78 +551,77 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedProducts + Parameters.includeNotTaggedProducts, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProductCollection + bodyMapper: Mappers.ProductCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTagsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index 46a14b1d5042..045f6fb2e626 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -23,7 +23,7 @@ import { ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, ProductApiDeleteOptionalParams, - ProductApiListByProductNextResponse + ProductApiListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, options?: ProductApiListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductApiListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductApiImpl implements ProductApi { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductApiImpl implements ProductApi { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductApiImpl implements ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -165,11 +165,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -187,11 +187,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -209,11 +209,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, apiId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -230,11 +230,11 @@ export class ProductApiImpl implements ProductApi { serviceName: string, productId: string, nextLink: string, - options?: ProductApiListByProductNextOptionalParams + options?: ProductApiListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -242,42 +242,40 @@ export class ProductApiImpl implements ProductApi { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -286,25 +284,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, 201: { - bodyMapper: Mappers.ApiContract + bodyMapper: Mappers.ApiContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -313,21 +310,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -336,21 +332,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApiCollection + bodyMapper: Mappers.ApiCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -358,8 +354,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts new file mode 100644 index 000000000000..23ef809717c1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductNextOptionalParams, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkListByProductResponse, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, + ProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductApiLink operations. */ +export class ProductApiLinkImpl implements ProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.ProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 5425cb6d2633..8286cdfdff55 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -23,7 +23,7 @@ import { ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, ProductGroupDeleteOptionalParams, - ProductGroupListByProductNextResponse + ProductGroupListByProductNextResponse, } from "../models"; /// @@ -50,13 +50,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -74,9 +74,9 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -85,7 +85,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, options?: ProductGroupListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductGroupListByProductResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -107,7 +107,7 @@ export class ProductGroupImpl implements ProductGroup { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,13 +120,13 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -143,11 +143,11 @@ export class ProductGroupImpl implements ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -164,11 +164,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - checkEntityExistsOperationSpec + checkEntityExistsOperationSpec, ); } @@ -185,11 +185,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -206,11 +206,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, groupId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -227,11 +227,11 @@ export class ProductGroupImpl implements ProductGroup { serviceName: string, productId: string, nextLink: string, - options?: ProductGroupListByProductNextOptionalParams + options?: ProductGroupListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } } @@ -239,42 +239,40 @@ export class ProductGroupImpl implements ProductGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkEntityExistsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "HEAD", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -283,25 +281,24 @@ const checkEntityExistsOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, 201: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -310,21 +307,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -333,21 +329,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.productId, - Parameters.groupId + Parameters.groupId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -355,8 +351,8 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts new file mode 100644 index 000000000000..b7371d4610d4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductNextOptionalParams, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkListByProductResponse, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, + ProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing ProductGroupLink operations. */ +export class ProductGroupLinkImpl implements ProductGroupLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.ProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 265d5f5708b5..a2117e2344a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ProductPolicy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + ProductPolicyListByProductNextOptionalParams, ProductPolicyListByProductOptionalParams, ProductPolicyListByProductResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, + ProductPolicyListByProductNextResponse, } from "../models"; +/// /** Class containing ProductPolicy operations. */ export class ProductPolicyImpl implements ProductPolicy { private readonly client: ApiManagementClient; @@ -44,15 +49,108 @@ export class ProductPolicyImpl implements ProductPolicy { * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ - listByProduct( + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ProductPolicyListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams + options?: ProductPolicyListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -69,11 +167,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -90,11 +188,11 @@ export class ProductPolicyImpl implements ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, options }, - getOperationSpec + getOperationSpec, ); } @@ -113,7 +211,7 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -122,9 +220,9 @@ export class ProductPolicyImpl implements ProductPolicy { productId, policyId, parameters, - options + options, }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -144,11 +242,32 @@ export class ProductPolicyImpl implements ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, policyId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductPolicyListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec, ); } } @@ -156,16 +275,15 @@ export class ProductPolicyImpl implements ProductPolicy { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PolicyCollection + bodyMapper: Mappers.PolicyCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -173,22 +291,21 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductPolicyGetEntityTagHeaders + headersMapper: Mappers.ProductPolicyGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -197,23 +314,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyGetHeaders + headersMapper: Mappers.ProductPolicyGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.format], urlParameters: [ @@ -222,29 +338,28 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.PolicyContract, - headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -252,26 +367,25 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +394,30 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.policyId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + ], + headerParameters: [Parameters.accept], + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts index b602e9ea6996..5270414b4860 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -18,7 +18,7 @@ import { ProductSubscriptionsListNextOptionalParams, ProductSubscriptionsListOptionalParams, ProductSubscriptionsListResponse, - ProductSubscriptionsListNextResponse + ProductSubscriptionsListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, options?: ProductSubscriptionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductSubscriptionsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { serviceName: string, productId: string, nextLink: string, - options?: ProductSubscriptionsListNextOptionalParams + options?: ProductSubscriptionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts index 48c1fc393861..5058a99f9cea 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -22,7 +22,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Class containing ProductWiki operations. */ @@ -48,11 +48,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -67,11 +67,11 @@ export class ProductWikiImpl implements ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,11 +88,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -112,7 +112,7 @@ export class ProductWikiImpl implements ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -121,9 +121,9 @@ export class ProductWikiImpl implements ProductWiki { productId, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -141,11 +141,11 @@ export class ProductWikiImpl implements ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } } @@ -153,16 +153,15 @@ export class ProductWikiImpl implements ProductWiki { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.ProductWikiGetEntityTagHeaders + headersMapper: Mappers.ProductWikiGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -170,23 +169,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiGetHeaders + headersMapper: Mappers.ProductWikiGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -194,85 +192,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.WikiContract, - headersMapper: Mappers.ProductWikiUpdateHeaders + headersMapper: Mappers.ProductWikiUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -280,8 +275,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts index eb425ad22260..3491fa42090a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -18,7 +18,7 @@ import { ProductWikisListNextOptionalParams, ProductWikisListOptionalParams, ProductWikisListResponse, - ProductWikisListNextResponse + ProductWikisListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, options?: ProductWikisListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProductWikisListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class ProductWikisImpl implements ProductWikis { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class ProductWikisImpl implements ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class ProductWikisImpl implements ProductWikis { serviceName: string, productId: string, nextLink: string, - options?: ProductWikisListNextOptionalParams + options?: ProductWikisListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,33 +171,32 @@ export class ProductWikisImpl implements ProductWikis { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListHeaders + headersMapper: Mappers.ProductWikisListHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", @@ -205,11 +204,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.WikiCollection, - headersMapper: Mappers.ProductWikisListNextHeaders + headersMapper: Mappers.ProductWikisListNextHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -217,8 +216,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index 136caaa802f2..a4a3280e84f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -16,7 +16,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Class containing QuotaByCounterKeys operations. */ @@ -46,11 +46,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -71,11 +71,11 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, quotaCounterKey, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } } @@ -83,16 +83,15 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -100,33 +99,32 @@ const listByServiceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterCollection + bodyMapper: Mappers.QuotaCounterCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index bd18bc65745b..a37367a92300 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -16,7 +16,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Class containing QuotaByPeriodKeys operations. */ @@ -48,7 +48,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -56,9 +56,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { serviceName, quotaCounterKey, quotaPeriodKey, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -80,7 +80,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -89,9 +89,9 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { quotaCounterKey, quotaPeriodKey, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } } @@ -99,16 +99,15 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -117,24 +116,23 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuotaCounterContract + bodyMapper: Mappers.QuotaCounterContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -142,9 +140,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index b0ccf6b4bde2..417fbdefe36b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -18,7 +18,7 @@ import { RegionListByServiceNextOptionalParams, RegionListByServiceOptionalParams, RegionListByServiceResponse, - RegionListByServiceNextResponse + RegionListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class RegionImpl implements Region { public listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, options?: RegionListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RegionListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class RegionImpl implements Region { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class RegionImpl implements Region { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class RegionImpl implements Region { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class RegionImpl implements Region { private _listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class RegionImpl implements Region { resourceGroupName: string, serviceName: string, nextLink: string, - options?: RegionListByServiceNextOptionalParams + options?: RegionListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,45 +158,44 @@ export class RegionImpl implements Region { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RegionListResult + bodyMapper: Mappers.RegionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 34ec22b941f4..d7000eb7b2ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -45,7 +45,7 @@ import { ReportsListByProductNextResponse, ReportsListByGeoNextResponse, ReportsListBySubscriptionNextResponse, - ReportsListByTimeNextResponse + ReportsListByTimeNextResponse, } from "../models"; /// @@ -72,13 +72,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -96,9 +96,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -107,7 +107,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByApiResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +116,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +128,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -141,13 +141,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -176,13 +176,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByUserPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -200,9 +200,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -211,7 +211,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByUserOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByUserResponse; let continuationToken = settings?.continuationToken; @@ -220,7 +220,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -232,7 +232,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -245,13 +245,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByUserPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -279,13 +279,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -303,9 +303,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -314,7 +314,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -323,7 +323,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -335,7 +335,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -348,13 +348,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -382,13 +382,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -406,9 +406,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -417,7 +417,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByProductResponse; let continuationToken = settings?.continuationToken; @@ -426,7 +426,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -438,7 +438,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -451,13 +451,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -485,13 +485,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGeoPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -509,9 +509,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -520,7 +520,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByGeoOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByGeoResponse; let continuationToken = settings?.continuationToken; @@ -529,7 +529,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -541,7 +541,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -554,13 +554,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGeoPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -588,13 +588,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -612,9 +612,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -623,7 +623,7 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -632,7 +632,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, filter, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -644,7 +644,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -657,13 +657,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -695,14 +695,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByTimePagingAll( resourceGroupName, serviceName, filter, interval, - options + options, ); return { next() { @@ -721,9 +721,9 @@ export class ReportsImpl implements Reports { filter, interval, options, - settings + settings, ); - } + }, }; } @@ -733,7 +733,7 @@ export class ReportsImpl implements Reports { filter: string, interval: string, options?: ReportsListByTimeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByTimeResponse; let continuationToken = settings?.continuationToken; @@ -743,7 +743,7 @@ export class ReportsImpl implements Reports { serviceName, filter, interval, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -755,7 +755,7 @@ export class ReportsImpl implements Reports { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -769,14 +769,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByTimePagingPage( resourceGroupName, serviceName, filter, interval, - options + options, )) { yield* page; } @@ -797,13 +797,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRequestPagingAll( resourceGroupName, serviceName, filter, - options + options, ); return { next() { @@ -821,9 +821,9 @@ export class ReportsImpl implements Reports { serviceName, filter, options, - settings + settings, ); - } + }, }; } @@ -832,14 +832,14 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, options?: ReportsListByRequestOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: ReportsListByRequestResponse; result = await this._listByRequest( resourceGroupName, serviceName, filter, - options + options, ); yield result.value || []; } @@ -848,13 +848,13 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRequestPagingPage( resourceGroupName, serviceName, filter, - options + options, )) { yield* page; } @@ -871,11 +871,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -902,11 +902,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByUserOperationSpec + listByUserOperationSpec, ); } @@ -932,11 +932,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -962,11 +962,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -992,11 +992,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByGeoOperationSpec + listByGeoOperationSpec, ); } @@ -1022,11 +1022,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -1056,11 +1056,11 @@ export class ReportsImpl implements Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, interval, options }, - listByTimeOperationSpec + listByTimeOperationSpec, ); } @@ -1079,11 +1079,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, filter, options }, - listByRequestOperationSpec + listByRequestOperationSpec, ); } @@ -1098,11 +1098,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByApiNextOptionalParams + options?: ReportsListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -1117,11 +1117,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByUserNextOptionalParams + options?: ReportsListByUserNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByUserNextOperationSpec + listByUserNextOperationSpec, ); } @@ -1136,11 +1136,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByOperationNextOptionalParams + options?: ReportsListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -1155,11 +1155,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByProductNextOptionalParams + options?: ReportsListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -1174,11 +1174,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByGeoNextOptionalParams + options?: ReportsListByGeoNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByGeoNextOperationSpec + listByGeoNextOperationSpec, ); } @@ -1193,11 +1193,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListBySubscriptionNextOptionalParams + options?: ReportsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -1212,11 +1212,11 @@ export class ReportsImpl implements Reports { resourceGroupName: string, serviceName: string, nextLink: string, - options?: ReportsListByTimeNextOptionalParams + options?: ReportsListByTimeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByTimeNextOperationSpec + listByTimeNextOperationSpec, ); } } @@ -1224,372 +1224,364 @@ export class ReportsImpl implements Reports { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, Parameters.orderby, Parameters.filter1, - Parameters.interval + Parameters.interval, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRequestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RequestReportCollection + bodyMapper: Mappers.RequestReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 + Parameters.filter1, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByUserNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGeoNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByTimeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ReportCollection + bodyMapper: Mappers.ReportCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 81c16f759dd7..09d13c058ecf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -19,7 +19,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignInSettings operations. */ @@ -43,11 +43,11 @@ export class SignInSettingsImpl implements SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignInSettingsImpl implements SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignInSettingsImpl implements SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignInSettingsImpl implements SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignInSettingsImpl implements SignInSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignInSettingsGetEntityTagHeaders + headersMapper: Mappers.SignInSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSigninSettings, - headersMapper: Mappers.SignInSettingsGetHeaders + headersMapper: Mappers.SignInSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSigninSettings + bodyMapper: Mappers.PortalSigninSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index fa8160735c81..39b3726e0f83 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -19,7 +19,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Class containing SignUpSettings operations. */ @@ -43,11 +43,11 @@ export class SignUpSettingsImpl implements SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -60,11 +60,11 @@ export class SignUpSettingsImpl implements SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -82,11 +82,11 @@ export class SignUpSettingsImpl implements SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -101,11 +101,11 @@ export class SignUpSettingsImpl implements SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } } @@ -113,101 +113,97 @@ export class SignUpSettingsImpl implements SignUpSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders + headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PortalSignupSettings, - headersMapper: Mappers.SignUpSettingsGetHeaders + headersMapper: Mappers.SignUpSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PortalSignupSettings + bodyMapper: Mappers.PortalSignupSettings, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 040781d07df3..acab052c805b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -33,7 +33,7 @@ import { SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, SubscriptionListSecretsResponse, - SubscriptionListNextResponse + SubscriptionListNextResponse, } from "../models"; /// @@ -58,7 +58,7 @@ export class SubscriptionImpl implements Subscription { public list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, serviceName, options); return { @@ -76,9 +76,9 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +86,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, options?: SubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +102,7 @@ export class SubscriptionImpl implements Subscription { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +114,12 @@ export class SubscriptionImpl implements Subscription { private async *listPagingAll( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -134,11 +134,11 @@ export class SubscriptionImpl implements Subscription { private _list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -154,11 +154,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -174,11 +174,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -196,11 +196,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -221,11 +221,11 @@ export class SubscriptionImpl implements Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -244,11 +244,11 @@ export class SubscriptionImpl implements Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -264,11 +264,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -284,11 +284,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -304,11 +304,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, sid, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -323,11 +323,11 @@ export class SubscriptionImpl implements Subscription { resourceGroupName: string, serviceName: string, nextLink: string, - options?: SubscriptionListNextOptionalParams + options?: SubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -335,43 +335,41 @@ export class SubscriptionImpl implements Subscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.SubscriptionGetEntityTagHeaders + headersMapper: Mappers.SubscriptionGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -379,23 +377,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionGetHeaders + headersMapper: Mappers.SubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -403,93 +400,90 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters79, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.SubscriptionUpdateHeaders + headersMapper: Mappers.SubscriptionUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters80, queryParameters: [ Parameters.apiVersion, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -497,20 +491,19 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -518,20 +511,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -539,23 +531,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.SubscriptionKeysContract, - headersMapper: Mappers.SubscriptionListSecretsHeaders + headersMapper: Mappers.SubscriptionListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -563,29 +554,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 1cd000ec1f2f..5c1c0f183eef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -61,7 +61,7 @@ import { TagListByOperationNextResponse, TagListByApiNextResponse, TagListByProductNextResponse, - TagListByServiceNextResponse + TagListByServiceNextResponse, } from "../models"; /// @@ -92,14 +92,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByOperationPagingAll( resourceGroupName, serviceName, apiId, operationId, - options + options, ); return { next() { @@ -118,9 +118,9 @@ export class TagImpl implements Tag { apiId, operationId, options, - settings + settings, ); - } + }, }; } @@ -130,7 +130,7 @@ export class TagImpl implements Tag { apiId: string, operationId: string, options?: TagListByOperationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByOperationResponse; let continuationToken = settings?.continuationToken; @@ -140,7 +140,7 @@ export class TagImpl implements Tag { serviceName, apiId, operationId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -154,7 +154,7 @@ export class TagImpl implements Tag { apiId, operationId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -168,14 +168,14 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByOperationPagingPage( resourceGroupName, serviceName, apiId, operationId, - options + options, )) { yield* page; } @@ -193,13 +193,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByApiPagingAll( resourceGroupName, serviceName, apiId, - options + options, ); return { next() { @@ -217,9 +217,9 @@ export class TagImpl implements Tag { serviceName, apiId, options, - settings + settings, ); - } + }, }; } @@ -228,7 +228,7 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, options?: TagListByApiOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByApiResponse; let continuationToken = settings?.continuationToken; @@ -237,7 +237,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, apiId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class TagImpl implements Tag { serviceName, apiId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -263,13 +263,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByApiPagingPage( resourceGroupName, serviceName, apiId, - options + options, )) { yield* page; } @@ -286,13 +286,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByProductPagingAll( resourceGroupName, serviceName, productId, - options + options, ); return { next() { @@ -310,9 +310,9 @@ export class TagImpl implements Tag { serviceName, productId, options, - settings + settings, ); - } + }, }; } @@ -321,7 +321,7 @@ export class TagImpl implements Tag { serviceName: string, productId: string, options?: TagListByProductOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByProductResponse; let continuationToken = settings?.continuationToken; @@ -330,7 +330,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, productId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -343,7 +343,7 @@ export class TagImpl implements Tag { serviceName, productId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,13 +356,13 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByProductPagingPage( resourceGroupName, serviceName, productId, - options + options, )) { yield* page; } @@ -377,12 +377,12 @@ export class TagImpl implements Tag { public listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -399,9 +399,9 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -409,7 +409,7 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, options?: TagListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -417,7 +417,7 @@ export class TagImpl implements Tag { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -429,7 +429,7 @@ export class TagImpl implements Tag { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -441,12 +441,12 @@ export class TagImpl implements Tag { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -467,11 +467,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, options }, - listByOperationOperationSpec + listByOperationOperationSpec, ); } @@ -492,11 +492,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getEntityStateByOperationOperationSpec + getEntityStateByOperationOperationSpec, ); } @@ -517,11 +517,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - getByOperationOperationSpec + getByOperationOperationSpec, ); } @@ -542,11 +542,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - assignToOperationOperationSpec + assignToOperationOperationSpec, ); } @@ -567,11 +567,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, tagId, options }, - detachFromOperationOperationSpec + detachFromOperationOperationSpec, ); } @@ -587,11 +587,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, options }, - listByApiOperationSpec + listByApiOperationSpec, ); } @@ -609,11 +609,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getEntityStateByApiOperationSpec + getEntityStateByApiOperationSpec, ); } @@ -631,11 +631,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - getByApiOperationSpec + getByApiOperationSpec, ); } @@ -653,11 +653,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - assignToApiOperationSpec + assignToApiOperationSpec, ); } @@ -675,11 +675,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, options }, - detachFromApiOperationSpec + detachFromApiOperationSpec, ); } @@ -694,11 +694,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, options }, - listByProductOperationSpec + listByProductOperationSpec, ); } @@ -715,11 +715,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getEntityStateByProductOperationSpec + getEntityStateByProductOperationSpec, ); } @@ -736,11 +736,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - getByProductOperationSpec + getByProductOperationSpec, ); } @@ -757,11 +757,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - assignToProductOperationSpec + assignToProductOperationSpec, ); } @@ -778,11 +778,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, tagId, options }, - detachFromProductOperationSpec + detachFromProductOperationSpec, ); } @@ -795,11 +795,11 @@ export class TagImpl implements Tag { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -814,11 +814,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getEntityStateOperationSpec + getEntityStateOperationSpec, ); } @@ -833,11 +833,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, options }, - getOperationSpec + getOperationSpec, ); } @@ -854,11 +854,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -878,11 +878,11 @@ export class TagImpl implements Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -900,11 +900,11 @@ export class TagImpl implements Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, tagId, ifMatch, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -925,11 +925,11 @@ export class TagImpl implements Tag { apiId: string, operationId: string, nextLink: string, - options?: TagListByOperationNextOptionalParams + options?: TagListByOperationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, operationId, nextLink, options }, - listByOperationNextOperationSpec + listByOperationNextOperationSpec, ); } @@ -947,11 +947,11 @@ export class TagImpl implements Tag { serviceName: string, apiId: string, nextLink: string, - options?: TagListByApiNextOptionalParams + options?: TagListByApiNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, nextLink, options }, - listByApiNextOperationSpec + listByApiNextOperationSpec, ); } @@ -968,11 +968,11 @@ export class TagImpl implements Tag { serviceName: string, productId: string, nextLink: string, - options?: TagListByProductNextOptionalParams + options?: TagListByProductNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, productId, nextLink, options }, - listByProductNextOperationSpec + listByProductNextOperationSpec, ); } @@ -987,11 +987,11 @@ export class TagImpl implements Tag { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagListByServiceNextOptionalParams + options?: TagListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -999,22 +999,21 @@ export class TagImpl implements Tag { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, @@ -1022,22 +1021,21 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.operationId + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByOperationHeaders + headersMapper: Mappers.TagGetEntityStateByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1047,23 +1045,22 @@ const getEntityStateByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByOperationHeaders + headersMapper: Mappers.TagGetByOperationHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1073,25 +1070,24 @@ const getByOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1101,21 +1097,20 @@ const assignToOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromOperationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1125,50 +1120,48 @@ const detachFromOperationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.apiId, Parameters.operationId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId + Parameters.apiId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByApiHeaders + headersMapper: Mappers.TagGetEntityStateByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1177,23 +1170,22 @@ const getEntityStateByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByApiHeaders + headersMapper: Mappers.TagGetByApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1202,27 +1194,26 @@ const getByApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagAssignToApiHeaders + headersMapper: Mappers.TagAssignToApiHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1231,21 +1222,20 @@ const assignToApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromApiOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1254,50 +1244,48 @@ const detachFromApiOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.apiId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByProductHeaders + headersMapper: Mappers.TagGetEntityStateByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1306,23 +1294,22 @@ const getEntityStateByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByProductHeaders + headersMapper: Mappers.TagGetByProductHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1331,25 +1318,24 @@ const getByProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assignToProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1358,21 +1344,20 @@ const assignToProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const detachFromProductOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1381,50 +1366,48 @@ const detachFromProductOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.tagId, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.scope + Parameters.scope, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TagGetEntityStateHeaders + headersMapper: Mappers.TagGetEntityStateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1432,23 +1415,22 @@ const getEntityStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetHeaders + headersMapper: Mappers.TagGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1456,85 +1438,82 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagCreateOrUpdateHeaders + headersMapper: Mappers.TagCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagUpdateHeaders + headersMapper: Mappers.TagUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1542,66 +1521,66 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.tagId + Parameters.tagId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const listByOperationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.apiId, Parameters.nextLink, - Parameters.operationId + Parameters.apiId, + Parameters.operationId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByApiNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, + Parameters.nextLink, Parameters.apiId, - Parameters.nextLink ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByProductNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -1609,29 +1588,29 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.productId + Parameters.productId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagCollection + bodyMapper: Mappers.TagCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts new file mode 100644 index 000000000000..9b17c214fee1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts @@ -0,0 +1,368 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + TagApiLinkListByProductNextOptionalParams, + TagApiLinkListByProductOptionalParams, + TagApiLinkListByProductResponse, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, + TagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagApiLink operations. */ +export class TagApiLinkImpl implements TagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.TagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + 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..c31daaef8256 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductNextOptionalParams, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkListByProductResponse, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, + TagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagOperationLink operations. */ +export class TagOperationLinkImpl implements TagOperationLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.TagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + 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..e03e001db0c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts @@ -0,0 +1,375 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + TagProductLinkListByProductNextOptionalParams, + TagProductLinkListByProductOptionalParams, + TagProductLinkListByProductResponse, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, + TagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing TagProductLink operations. */ +export class TagProductLinkImpl implements TagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: TagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.TagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index 1a0a0f0a8cb1..90b82f470edb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -18,7 +18,7 @@ import { TagResourceListByServiceNextOptionalParams, TagResourceListByServiceOptionalParams, TagResourceListByServiceResponse, - TagResourceListByServiceNextResponse + TagResourceListByServiceNextResponse, } from "../models"; /// @@ -43,12 +43,12 @@ export class TagResourceImpl implements TagResource { public listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -65,9 +65,9 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -75,7 +75,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TagResourceListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class TagResourceImpl implements TagResource { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -95,7 +95,7 @@ export class TagResourceImpl implements TagResource { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,12 +107,12 @@ export class TagResourceImpl implements TagResource { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -127,11 +127,11 @@ export class TagResourceImpl implements TagResource { private _listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -146,11 +146,11 @@ export class TagResourceImpl implements TagResource { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TagResourceListByServiceNextOptionalParams + options?: TagResourceListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -158,50 +158,49 @@ export class TagResourceImpl implements TagResource { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.TagResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index ab0c13bb24d9..cdb5a1f8164c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -33,7 +33,7 @@ import { TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, TenantAccessListSecretsResponse, - TenantAccessListByServiceNextResponse + TenantAccessListByServiceNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class TenantAccessImpl implements TenantAccess { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, options?: TenantAccessListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantAccessListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class TenantAccessImpl implements TenantAccess { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class TenantAccessImpl implements TenantAccess { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -142,11 +142,11 @@ export class TenantAccessImpl implements TenantAccess { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -161,11 +161,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -180,11 +180,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -204,7 +204,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -213,9 +213,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - createOperationSpec + createOperationSpec, ); } @@ -235,7 +235,7 @@ export class TenantAccessImpl implements TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -244,9 +244,9 @@ export class TenantAccessImpl implements TenantAccess { accessName, ifMatch, parameters, - options + options, }, - updateOperationSpec + updateOperationSpec, ); } @@ -261,11 +261,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -280,11 +280,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } @@ -299,11 +299,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - listSecretsOperationSpec + listSecretsOperationSpec, ); } @@ -318,11 +318,11 @@ export class TenantAccessImpl implements TenantAccess { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantAccessListByServiceNextOptionalParams + options?: TenantAccessListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -330,38 +330,36 @@ export class TenantAccessImpl implements TenantAccess { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.TenantAccessGetEntityTagHeaders + headersMapper: Mappers.TenantAccessGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -369,23 +367,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessGetHeaders + headersMapper: Mappers.TenantAccessGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -393,80 +390,77 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessCreateHeaders + headersMapper: Mappers.TenantAccessCreateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.AccessInformationContract, - headersMapper: Mappers.TenantAccessUpdateHeaders + headersMapper: Mappers.TenantAccessUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,20 +468,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -495,23 +488,22 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSecretsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AccessInformationSecretsContract, - headersMapper: Mappers.TenantAccessListSecretsHeaders + headersMapper: Mappers.TenantAccessListSecretsHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +511,29 @@ const listSecretsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessInformationCollection + bodyMapper: Mappers.AccessInformationCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9d7f1db29713..413bb95fd927 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Class containing TenantAccessGit operations. */ @@ -40,11 +40,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regeneratePrimaryKeyOperationSpec + regeneratePrimaryKeyOperationSpec, ); } @@ -59,11 +59,11 @@ export class TenantAccessGitImpl implements TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, accessName, options }, - regenerateSecondaryKeyOperationSpec + regenerateSecondaryKeyOperationSpec, ); } } @@ -71,14 +71,13 @@ export class TenantAccessGitImpl implements TenantAccessGit { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -86,20 +85,19 @@ const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -107,8 +105,8 @@ const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.accessName + Parameters.accessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 15867ab82145..308696020943 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -14,7 +14,7 @@ import { ApiManagementClient } from "../apiManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Class containing TenantConfiguration operations. */ @@ -57,7 +57,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -66,21 +66,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -89,8 +88,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -98,8 +97,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -110,9 +109,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: deployOperationSpec + spec: deployOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationDeployResponse, @@ -120,7 +119,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -140,14 +139,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise { const poller = await this.beginDeploy( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -166,7 +165,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -175,21 +174,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -198,8 +196,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -207,8 +205,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -219,9 +217,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: saveOperationSpec + spec: saveOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationSaveResponse, @@ -229,7 +227,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -249,14 +247,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise { const poller = await this.beginSave( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -275,7 +273,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -284,21 +282,20 @@ export class TenantConfigurationImpl implements TenantConfiguration { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -307,8 +304,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -316,8 +313,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -328,9 +325,9 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName, configurationName, parameters, - options + options, }, - spec: validateOperationSpec + spec: validateOperationSpec, }); const poller = await createHttpPoller< TenantConfigurationValidateResponse, @@ -338,7 +335,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -358,14 +355,14 @@ export class TenantConfigurationImpl implements TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise { const poller = await this.beginValidate( resourceGroupName, serviceName, configurationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -382,11 +379,11 @@ export class TenantConfigurationImpl implements TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, configurationName, options }, - getSyncStateOperationSpec + getSyncStateOperationSpec, ); } } @@ -394,118 +391,114 @@ export class TenantConfigurationImpl implements TenantConfiguration { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const saveOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 201: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 202: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, 204: { - bodyMapper: Mappers.OperationResultContract + bodyMapper: Mappers.OperationResultContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getSyncStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantConfigurationSyncStateContract + bodyMapper: Mappers.TenantConfigurationSyncStateContract, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -513,8 +506,8 @@ const getSyncStateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index b46350a3c9ab..399eab1d9a20 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -21,7 +21,7 @@ import { SettingsTypeName, TenantSettingsGetOptionalParams, TenantSettingsGetResponse, - TenantSettingsListByServiceNextResponse + TenantSettingsListByServiceNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class TenantSettingsImpl implements TenantSettings { public listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, options?: TenantSettingsListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantSettingsListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class TenantSettingsImpl implements TenantSettings { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +98,7 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class TenantSettingsImpl implements TenantSettings { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -130,11 +130,11 @@ export class TenantSettingsImpl implements TenantSettings { private _listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -149,11 +149,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, settingsType, options }, - getOperationSpec + getOperationSpec, ); } @@ -168,11 +168,11 @@ export class TenantSettingsImpl implements TenantSettings { resourceGroupName: string, serviceName: string, nextLink: string, - options?: TenantSettingsListByServiceNextOptionalParams + options?: TenantSettingsListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -180,39 +180,37 @@ export class TenantSettingsImpl implements TenantSettings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/settings/{settingsType}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TenantSettingsContract, - headersMapper: Mappers.TenantSettingsGetHeaders + headersMapper: Mappers.TenantSettingsGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +218,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.settingsType + Parameters.settingsType, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.TenantSettingsCollection + bodyMapper: Mappers.TenantSettingsCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 8aa6945fedab..e8668df10220 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { UserContract, UserListByServiceNextOptionalParams, @@ -29,12 +35,13 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, UserGetSharedAccessTokenResponse, - UserListByServiceNextResponse + UserListByServiceNextResponse, } from "../models"; /// @@ -59,12 +66,12 @@ export class UserImpl implements User { public listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByServicePagingAll( resourceGroupName, serviceName, - options + options, ); return { next() { @@ -81,9 +88,9 @@ export class UserImpl implements User { resourceGroupName, serviceName, options, - settings + settings, ); - } + }, }; } @@ -91,7 +98,7 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, options?: UserListByServiceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserListByServiceResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +106,7 @@ export class UserImpl implements User { result = await this._listByService( resourceGroupName, serviceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +118,7 @@ export class UserImpl implements User { resourceGroupName, serviceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,12 +130,12 @@ export class UserImpl implements User { private async *listByServicePagingAll( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByServicePagingPage( resourceGroupName, serviceName, - options + options, )) { yield* page; } @@ -143,11 +150,11 @@ export class UserImpl implements User { private _listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, options }, - listByServiceOperationSpec + listByServiceOperationSpec, ); } @@ -162,11 +169,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getEntityTagOperationSpec + getEntityTagOperationSpec, ); } @@ -181,11 +188,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - getOperationSpec + getOperationSpec, ); } @@ -202,11 +209,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -226,11 +233,11 @@ export class UserImpl implements User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, ifMatch, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -243,17 +250,94 @@ export class UserImpl implements User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, userId, ifMatch, options }, - deleteOperationSpec + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, userId, ifMatch, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + UserDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + serviceName, + userId, + ifMatch, + options, ); + return poller.pollUntilDone(); } /** @@ -268,11 +352,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - generateSsoUrlOperationSpec + generateSsoUrlOperationSpec, ); } @@ -289,11 +373,11 @@ export class UserImpl implements User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, parameters, options }, - getSharedAccessTokenOperationSpec + getSharedAccessTokenOperationSpec, ); } @@ -308,11 +392,11 @@ export class UserImpl implements User { resourceGroupName: string, serviceName: string, nextLink: string, - options?: UserListByServiceNextOptionalParams + options?: UserListByServiceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, nextLink, options }, - listByServiceNextOperationSpec + listByServiceNextOperationSpec, ); } } @@ -320,44 +404,42 @@ export class UserImpl implements User { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByServiceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandGroups + Parameters.expandGroups, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getEntityTagOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "HEAD", responses: { 200: { - headersMapper: Mappers.UserGetEntityTagHeaders + headersMapper: Mappers.UserGetEntityTagHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -365,23 +447,22 @@ const getEntityTagOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserGetHeaders + headersMapper: Mappers.UserGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -389,113 +470,119 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, 201: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserCreateOrUpdateHeaders + headersMapper: Mappers.UserCreateOrUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.UserContract, - headersMapper: Mappers.UserUpdateHeaders + headersMapper: Mappers.UserUpdateHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters89, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [ Parameters.accept, Parameters.contentType, - Parameters.ifMatch1 + Parameters.ifMatch1, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 201: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 202: { + headersMapper: Mappers.UserDeleteHeaders, + }, + 204: { + headersMapper: Mappers.UserDeleteHeaders, + }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.deleteSubscriptions, Parameters.notify, - Parameters.appType + Parameters.appType, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.ifMatch1], - serializer + serializer, }; const generateSsoUrlOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GenerateSsoUrlResult + bodyMapper: Mappers.GenerateSsoUrlResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -503,54 +590,53 @@ const generateSsoUrlOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.UserTokenResult + bodyMapper: Mappers.UserTokenResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters90, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserCollection + bodyMapper: Mappers.UserCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 0a9175427c03..de788e094561 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -36,11 +36,11 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - sendOperationSpec + sendOperationSpec, ); } } @@ -48,14 +48,13 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const sendOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.appType], urlParameters: [ @@ -63,8 +62,8 @@ const sendOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 1627954cbe7a..4d2615917173 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -18,7 +18,7 @@ import { UserGroupListNextOptionalParams, UserGroupListOptionalParams, UserGroupListResponse, - UserGroupListNextResponse + UserGroupListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, options?: UserGroupListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserGroupListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserGroupImpl implements UserGroup { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserGroupImpl implements UserGroup { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserGroupImpl implements UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserGroupImpl implements UserGroup { serviceName: string, userId: string, nextLink: string, - options?: UserGroupListNextOptionalParams + options?: UserGroupListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,43 +171,42 @@ export class UserGroupImpl implements UserGroup { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GroupCollection + bodyMapper: Mappers.GroupCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -215,8 +214,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index 4ff92b553f94..e2449d1ab725 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -18,7 +18,7 @@ import { UserIdentitiesListNextOptionalParams, UserIdentitiesListOptionalParams, UserIdentitiesListResponse, - UserIdentitiesListNextResponse + UserIdentitiesListNextResponse, } from "../models"; /// @@ -45,13 +45,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -69,9 +69,9 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -80,7 +80,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, options?: UserIdentitiesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserIdentitiesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -102,7 +102,7 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,13 +115,13 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -138,11 +138,11 @@ export class UserIdentitiesImpl implements UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class UserIdentitiesImpl implements UserIdentities { serviceName: string, userId: string, nextLink: string, - options?: UserIdentitiesListNextOptionalParams + options?: UserIdentitiesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class UserIdentitiesImpl implements UserIdentities { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -188,21 +187,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UserIdentityCollection + bodyMapper: Mappers.UserIdentityCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -210,8 +209,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 8e4838abc76a..c5e7f97ed503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -20,7 +20,7 @@ import { UserSubscriptionListResponse, UserSubscriptionGetOptionalParams, UserSubscriptionGetResponse, - UserSubscriptionListNextResponse + UserSubscriptionListNextResponse, } from "../models"; /// @@ -47,13 +47,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, serviceName, userId, - options + options, ); return { next() { @@ -71,9 +71,9 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, options?: UserSubscriptionListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UserSubscriptionListResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +91,7 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName, serviceName, userId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -104,7 +104,7 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName, userId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,13 +117,13 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, serviceName, userId, - options + options, )) { yield* page; } @@ -140,11 +140,11 @@ export class UserSubscriptionImpl implements UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, options }, - listOperationSpec + listOperationSpec, ); } @@ -162,11 +162,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, sid, options }, - getOperationSpec + getOperationSpec, ); } @@ -183,11 +183,11 @@ export class UserSubscriptionImpl implements UserSubscription { serviceName: string, userId: string, nextLink: string, - options?: UserSubscriptionListNextOptionalParams + options?: UserSubscriptionListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, userId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -195,45 +195,43 @@ export class UserSubscriptionImpl implements UserSubscription { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ + Parameters.apiVersion, Parameters.filter, Parameters.top, Parameters.skip, - Parameters.apiVersion ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SubscriptionContract, - headersMapper: Mappers.UserSubscriptionGetHeaders + headersMapper: Mappers.UserSubscriptionGetHeaders, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -242,21 +240,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.userId, - Parameters.sid + Parameters.sid, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SubscriptionCollection + bodyMapper: Mappers.SubscriptionCollection, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -264,8 +262,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.userId + Parameters.userId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts new file mode 100644 index 000000000000..3a00ab912a01 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts @@ -0,0 +1,460 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Workspace } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceContract, + WorkspaceListByServiceNextOptionalParams, + WorkspaceListByServiceOptionalParams, + WorkspaceListByServiceResponse, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, + WorkspaceListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing Workspace operations. */ +export class WorkspaceImpl implements Workspace { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Workspace class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + )) { + yield* page; + } + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getOperationSpec, + ); + } + + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: WorkspaceListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters92, + 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.parameters92, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts new file mode 100644 index 000000000000..1483fe0faf89 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts @@ -0,0 +1,610 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApi } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiContract, + WorkspaceApiListByServiceNextOptionalParams, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiListByServiceResponse, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, + WorkspaceApiListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApi operations. */ +export class WorkspaceApiImpl implements WorkspaceApi { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApi class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiDiagnostic.ts new file mode 100644 index 000000000000..b4d1926de742 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiDiagnostic.ts @@ -0,0 +1,561 @@ +/* + * 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 { WorkspaceApiDiagnostic } 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 { + DiagnosticContract, + WorkspaceApiDiagnosticListByWorkspaceNextOptionalParams, + WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + WorkspaceApiDiagnosticListByWorkspaceResponse, + WorkspaceApiDiagnosticGetEntityTagOptionalParams, + WorkspaceApiDiagnosticGetEntityTagResponse, + WorkspaceApiDiagnosticGetOptionalParams, + WorkspaceApiDiagnosticGetResponse, + WorkspaceApiDiagnosticCreateOrUpdateOptionalParams, + WorkspaceApiDiagnosticCreateOrUpdateResponse, + DiagnosticUpdateContract, + WorkspaceApiDiagnosticUpdateOptionalParams, + WorkspaceApiDiagnosticUpdateResponse, + WorkspaceApiDiagnosticDeleteOptionalParams, + WorkspaceApiDiagnosticListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiDiagnostic operations. */ +export class WorkspaceApiDiagnosticImpl implements WorkspaceApiDiagnostic { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiDiagnostic class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all diagnostics 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 listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + 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.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiDiagnosticListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all diagnostics 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 _listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Diagnostic 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 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 diagnosticId Diagnostic 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, + diagnosticId: string, + options?: WorkspaceApiDiagnosticGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + diagnosticId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Diagnostic 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 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 diagnosticId Diagnostic 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, + diagnosticId: string, + options?: WorkspaceApiDiagnosticGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + diagnosticId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new Diagnostic 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 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 diagnosticId Diagnostic 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, + apiId: string, + diagnosticId: string, + parameters: DiagnosticContract, + options?: WorkspaceApiDiagnosticCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + diagnosticId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the Diagnostic 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 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 diagnosticId Diagnostic 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 Diagnostic Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + diagnosticId: string, + ifMatch: string, + parameters: DiagnosticUpdateContract, + options?: WorkspaceApiDiagnosticUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + diagnosticId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified Diagnostic 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 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 diagnosticId Diagnostic 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, + diagnosticId: string, + ifMatch: string, + options?: WorkspaceApiDiagnosticDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + diagnosticId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiDiagnosticListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/diagnostics", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/diagnostics/{diagnosticId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiDiagnosticGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/diagnostics/{diagnosticId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceApiDiagnosticGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/diagnostics/{diagnosticId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceApiDiagnosticCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceApiDiagnosticCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.diagnosticId, + 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}/diagnostics/{diagnosticId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceApiDiagnosticUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.diagnosticId, + 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}/diagnostics/{diagnosticId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCollection, + }, + 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/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts new file mode 100644 index 000000000000..d4c52b37dd4b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceApiExport } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Class containing WorkspaceApiExport operations. */ +export class WorkspaceApiExportImpl implements WorkspaceApiExport { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiExport class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + format, + exportParam, + options, + }, + getOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiExportResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.format1, + Parameters.exportParam, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts new file mode 100644 index 000000000000..3d921074cedc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts @@ -0,0 +1,570 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + OperationContract, + WorkspaceApiOperationListByApiNextOptionalParams, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationListByApiResponse, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, + WorkspaceApiOperationListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperation operations. */ +export class WorkspaceApiOperationImpl implements WorkspaceApiOperation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiOperationListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..d7be73a7482f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts @@ -0,0 +1,542 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperationPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + WorkspaceApiOperationPolicyListByOperationResponse, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, + WorkspaceApiOperationPolicyListByOperationNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiOperationPolicy operations. */ +export class WorkspaceApiOperationPolicyImpl + implements WorkspaceApiOperationPolicy +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperationPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + public listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByOperationPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + settings, + ); + }, + }; + } + + private async *listByOperationPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiOperationPolicyListByOperationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByOperation( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByOperationNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByOperationPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + private _listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + }, + listByOperationOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByOperationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param nextLink The nextLink from the previous successful call to the ListByOperation method. + * @param options The options parameters. + */ + private _listByOperationNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + nextLink: string, + options?: WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + nextLink, + options, + }, + listByOperationNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByOperationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByOperationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts new file mode 100644 index 000000000000..d68857c8a415 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts @@ -0,0 +1,473 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiNextOptionalParams, + WorkspaceApiPolicyListByApiOptionalParams, + WorkspaceApiPolicyListByApiResponse, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, + WorkspaceApiPolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiPolicy operations. */ +export class WorkspaceApiPolicyImpl implements WorkspaceApiPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiPolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiPolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts new file mode 100644 index 000000000000..c1f2a4f0eb09 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts @@ -0,0 +1,564 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRelease } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceNextOptionalParams, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseListByServiceResponse, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, + WorkspaceApiReleaseListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRelease operations. */ +export class WorkspaceApiReleaseImpl implements WorkspaceApiRelease { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRelease class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiReleaseListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiReleaseListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiReleaseGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts new file mode 100644 index 000000000000..543ebe72485f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts @@ -0,0 +1,239 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRevision } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceNextOptionalParams, + WorkspaceApiRevisionListByServiceOptionalParams, + WorkspaceApiRevisionListByServiceResponse, + WorkspaceApiRevisionListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiRevision operations. */ +export class WorkspaceApiRevisionImpl implements WorkspaceApiRevision { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRevision class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiRevisionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiRevisionListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/revisions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts new file mode 100644 index 000000000000..08f7a072e641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts @@ -0,0 +1,578 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiNextOptionalParams, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaListByApiResponse, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, + WorkspaceApiSchemaListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiSchema operations. */ +export class WorkspaceApiSchemaImpl implements WorkspaceApiSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiSchemaListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + )) { + yield* page; + } + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiSchemaListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..a0eff3085cd2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts @@ -0,0 +1,514 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiVersionSet } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceNextOptionalParams, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetListByServiceResponse, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, + WorkspaceApiVersionSetListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceApiVersionSet operations. */ +export class WorkspaceApiVersionSetImpl implements WorkspaceApiVersionSet { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiVersionSet class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceApiVersionSetListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiVersionSetListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiVersionSetGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceBackend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceBackend.ts new file mode 100644 index 000000000000..fe95219b5a5e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceBackend.ts @@ -0,0 +1,514 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceBackend } 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 { + BackendContract, + WorkspaceBackendListByWorkspaceNextOptionalParams, + WorkspaceBackendListByWorkspaceOptionalParams, + WorkspaceBackendListByWorkspaceResponse, + WorkspaceBackendGetEntityTagOptionalParams, + WorkspaceBackendGetEntityTagResponse, + WorkspaceBackendGetOptionalParams, + WorkspaceBackendGetResponse, + WorkspaceBackendCreateOrUpdateOptionalParams, + WorkspaceBackendCreateOrUpdateResponse, + BackendUpdateParameters, + WorkspaceBackendUpdateOptionalParams, + WorkspaceBackendUpdateResponse, + WorkspaceBackendDeleteOptionalParams, + WorkspaceBackendListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceBackend operations. */ +export class WorkspaceBackendImpl implements WorkspaceBackend { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceBackend class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of backends in 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 options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceBackendListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + 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.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceBackendListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceBackendListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceBackendListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of backends in 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 options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceBackendListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the backend 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 backendId Identifier of the Backend entity. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + backendId: string, + options?: WorkspaceBackendGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, backendId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the backend 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 backendId Identifier of the Backend entity. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + backendId: string, + options?: WorkspaceBackendGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, backendId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + parameters: BackendContract, + options?: WorkspaceBackendCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + backendId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates an existing backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + ifMatch: string, + parameters: BackendUpdateParameters, + options?: WorkspaceBackendUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + backendId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + ifMatch: string, + options?: WorkspaceBackendDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + backendId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceBackendListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackendCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceBackendGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.backendId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.WorkspaceBackendGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.backendId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/backends/{backendId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.WorkspaceBackendCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.WorkspaceBackendCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.backendId, + 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}/backends/{backendId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.WorkspaceBackendUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters30, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.backendId, + 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}/backends/{backendId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.backendId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.BackendCollection, + }, + 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/workspaceCertificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceCertificate.ts new file mode 100644 index 000000000000..71fadc45a3ce --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceCertificate.ts @@ -0,0 +1,496 @@ +/* + * 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 { WorkspaceCertificate } 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 { + CertificateContract, + WorkspaceCertificateListByWorkspaceNextOptionalParams, + WorkspaceCertificateListByWorkspaceOptionalParams, + WorkspaceCertificateListByWorkspaceResponse, + WorkspaceCertificateGetEntityTagOptionalParams, + WorkspaceCertificateGetEntityTagResponse, + WorkspaceCertificateGetOptionalParams, + WorkspaceCertificateGetResponse, + CertificateCreateOrUpdateParameters, + WorkspaceCertificateCreateOrUpdateOptionalParams, + WorkspaceCertificateCreateOrUpdateResponse, + WorkspaceCertificateDeleteOptionalParams, + WorkspaceCertificateRefreshSecretOptionalParams, + WorkspaceCertificateRefreshSecretResponse, + WorkspaceCertificateListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceCertificate operations. */ +export class WorkspaceCertificateImpl implements WorkspaceCertificate { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceCertificate class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of all certificates in 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 options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceCertificateListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + 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.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceCertificateListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceCertificateListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceCertificateListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of all certificates in 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 options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceCertificateListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the certificate 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 certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, certificateId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the certificate 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 certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, certificateId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the certificate being used for authentication with the backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. 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, + certificateId: string, + parameters: CertificateCreateOrUpdateParameters, + options?: WorkspaceCertificateCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + certificateId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes specific certificate. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. 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, + certificateId: string, + ifMatch: string, + options?: WorkspaceCertificateDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + certificateId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * From KeyVault, Refresh the certificate being used for authentication with the backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + refreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateRefreshSecretOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, certificateId, options }, + refreshSecretOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceCertificateListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/certificates", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.isKeyVaultRefreshFailed, + ], + 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}/certificates/{certificateId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceCertificateGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.certificateId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/certificates/{certificateId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.WorkspaceCertificateGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.certificateId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/certificates/{certificateId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.WorkspaceCertificateCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.WorkspaceCertificateCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.certificateId, + 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}/certificates/{certificateId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.certificateId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const refreshSecretOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/certificates/{certificateId}/refreshSecret", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.WorkspaceCertificateRefreshSecretHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.certificateId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection, + }, + 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/workspaceDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceDiagnostic.ts new file mode 100644 index 000000000000..a3d8fae3380b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceDiagnostic.ts @@ -0,0 +1,514 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceDiagnostic } 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 { + DiagnosticContract, + WorkspaceDiagnosticListByWorkspaceNextOptionalParams, + WorkspaceDiagnosticListByWorkspaceOptionalParams, + WorkspaceDiagnosticListByWorkspaceResponse, + WorkspaceDiagnosticGetEntityTagOptionalParams, + WorkspaceDiagnosticGetEntityTagResponse, + WorkspaceDiagnosticGetOptionalParams, + WorkspaceDiagnosticGetResponse, + WorkspaceDiagnosticCreateOrUpdateOptionalParams, + WorkspaceDiagnosticCreateOrUpdateResponse, + DiagnosticUpdateContract, + WorkspaceDiagnosticUpdateOptionalParams, + WorkspaceDiagnosticUpdateResponse, + WorkspaceDiagnosticDeleteOptionalParams, + WorkspaceDiagnosticListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceDiagnostic operations. */ +export class WorkspaceDiagnosticImpl implements WorkspaceDiagnostic { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceDiagnostic class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all diagnostics in 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 options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceDiagnosticListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + 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.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceDiagnosticListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceDiagnosticListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceDiagnosticListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all diagnostics in 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 options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceDiagnosticListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Diagnostic 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + options?: WorkspaceDiagnosticGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, diagnosticId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Diagnostic 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + options?: WorkspaceDiagnosticGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, diagnosticId, options }, + getOperationSpec, + ); + } + + /** + * Creates a new Diagnostic 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 diagnosticId Diagnostic 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, + diagnosticId: string, + parameters: DiagnosticContract, + options?: WorkspaceDiagnosticCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + diagnosticId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the Diagnostic 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 diagnosticId Diagnostic 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 Diagnostic Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + ifMatch: string, + parameters: DiagnosticUpdateContract, + options?: WorkspaceDiagnosticUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + diagnosticId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified Diagnostic. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param diagnosticId Diagnostic 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, + diagnosticId: string, + ifMatch: string, + options?: WorkspaceDiagnosticDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + diagnosticId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceDiagnosticListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/diagnostics", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/diagnostics/{diagnosticId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceDiagnosticGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/diagnostics/{diagnosticId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceDiagnosticGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/diagnostics/{diagnosticId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceDiagnosticCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceDiagnosticCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.diagnosticId, + 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}/diagnostics/{diagnosticId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.WorkspaceDiagnosticUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters91, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.diagnosticId, + 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}/diagnostics/{diagnosticId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.diagnosticId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCollection, + }, + 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..4e2531a61aed --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts @@ -0,0 +1,540 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGlobalSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceNextOptionalParams, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaListByServiceResponse, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, + WorkspaceGlobalSchemaListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGlobalSchema operations. */ +export class WorkspaceGlobalSchemaImpl implements WorkspaceGlobalSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGlobalSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGlobalSchemaListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getOperationSpec, + ); + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceGlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGlobalSchemaListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGlobalSchemaGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters78, + 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..665d8a8733d1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts @@ -0,0 +1,510 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroup } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + GroupContract, + WorkspaceGroupListByServiceNextOptionalParams, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupListByServiceResponse, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, + WorkspaceGroupListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroup operations. */ +export class WorkspaceGroupImpl implements WorkspaceGroup { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroup class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGroupListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGroupGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters55, + 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.parameters56, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts new file mode 100644 index 000000000000..0946a15eea35 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts @@ -0,0 +1,396 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroupUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + UserContract, + WorkspaceGroupUserListNextOptionalParams, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserListResponse, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, + WorkspaceGroupUserListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceGroupUser operations. */ +export class WorkspaceGroupUserImpl implements WorkspaceGroupUser { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroupUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceGroupUserListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + groupId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + listOperationSpec, + ); + } + + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + createOperationSpec, + ); + } + + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + nextLink: string, + options?: WorkspaceGroupUserListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + nextLink, + options, + }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.UserContract, + }, + 201: { + bodyMapper: Mappers.UserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.groupId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceLogger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceLogger.ts new file mode 100644 index 000000000000..d1e52891737e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceLogger.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 { WorkspaceLogger } 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 { + LoggerContract, + WorkspaceLoggerListByWorkspaceNextOptionalParams, + WorkspaceLoggerListByWorkspaceOptionalParams, + WorkspaceLoggerListByWorkspaceResponse, + WorkspaceLoggerGetEntityTagOptionalParams, + WorkspaceLoggerGetEntityTagResponse, + WorkspaceLoggerGetOptionalParams, + WorkspaceLoggerGetResponse, + WorkspaceLoggerCreateOrUpdateOptionalParams, + WorkspaceLoggerCreateOrUpdateResponse, + LoggerUpdateContract, + WorkspaceLoggerUpdateOptionalParams, + WorkspaceLoggerUpdateResponse, + WorkspaceLoggerDeleteOptionalParams, + WorkspaceLoggerListByWorkspaceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceLogger operations. */ +export class WorkspaceLoggerImpl implements WorkspaceLogger { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceLogger class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of loggers in 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 options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceLoggerListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + 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.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceLoggerListByWorkspaceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceLoggerListByWorkspaceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByWorkspace( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceLoggerListByWorkspaceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of loggers in 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 options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceLoggerListByWorkspaceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByWorkspaceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the logger 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 loggerId Logger identifier. Must be unique in the API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + options?: WorkspaceLoggerGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, loggerId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the logger 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 loggerId Logger identifier. Must be unique in the API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + options?: WorkspaceLoggerGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, loggerId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + parameters: LoggerContract, + options?: WorkspaceLoggerCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + loggerId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates an existing logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @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 + * 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, + loggerId: string, + ifMatch: string, + parameters: LoggerUpdateContract, + options?: WorkspaceLoggerUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + loggerId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @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 + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + ifMatch: string, + options?: WorkspaceLoggerDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + loggerId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceLoggerListByWorkspaceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByWorkspaceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/loggers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LoggerCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/loggers/{loggerId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceLoggerGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.loggerId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/loggers/{loggerId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.WorkspaceLoggerGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.loggerId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/loggers/{loggerId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.WorkspaceLoggerCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.WorkspaceLoggerCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.loggerId, + 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}/loggers/{loggerId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.WorkspaceLoggerUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters60, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.loggerId, + 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}/loggers/{loggerId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.loggerId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LoggerCollection, + }, + 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/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts new file mode 100644 index 000000000000..901aa1b8c7b2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts @@ -0,0 +1,901 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNamedValue } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceNextOptionalParams, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueListByServiceResponse, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, + WorkspaceNamedValueListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNamedValue operations. */ +export class WorkspaceNamedValueImpl implements WorkspaceNamedValue { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNamedValue class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNamedValueListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + listValueOperationSpec, + ); + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options, + }, + spec: refreshSecretOperationSpec, + }); + const poller = await createHttpPoller< + WorkspaceNamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise { + const poller = await this.beginRefreshSecret( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNamedValueListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.isKeyVaultRefreshFailed1, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceNamedValueGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters61, + 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.parameters62, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listValueOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/listValue", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueSecretContract, + headersMapper: Mappers.WorkspaceNamedValueListValueHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const refreshSecretOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/refreshSecret", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts new file mode 100644 index 000000000000..0363e1931f75 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts @@ -0,0 +1,326 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNotification } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationContract, + WorkspaceNotificationListByServiceNextOptionalParams, + WorkspaceNotificationListByServiceOptionalParams, + WorkspaceNotificationListByServiceResponse, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, + WorkspaceNotificationListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceNotification operations. */ +export class WorkspaceNotificationImpl implements WorkspaceNotification { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotification class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceNotificationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + getOperationSpec, + ); + } + + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNotificationListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..98bc5518b9f1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,258 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientEmail } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientEmail operations. */ +export class WorkspaceNotificationRecipientEmailImpl + implements WorkspaceNotificationRecipientEmail +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientEmail class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailContract, + }, + 201: { + bodyMapper: Mappers.RecipientEmailContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..cfcfafd84e1e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts @@ -0,0 +1,258 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientUser operations. */ +export class WorkspaceNotificationRecipientUserImpl + implements WorkspaceNotificationRecipientUser +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options, + }, + listByNotificationOperationSpec, + ); + } + + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + checkEntityExistsOperationSpec, + ); + } + + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserContract, + }, + 201: { + bodyMapper: Mappers.RecipientUserContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts new file mode 100644 index 000000000000..e7ae38d41bf2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts @@ -0,0 +1,437 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspacePolicyListByApiNextOptionalParams, + WorkspacePolicyListByApiOptionalParams, + WorkspacePolicyListByApiResponse, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, + WorkspacePolicyListByApiNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicy operations. */ +export class WorkspacePolicyImpl implements WorkspacePolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByApiOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyListByApiNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByApiNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts new file mode 100644 index 000000000000..90d0ebfea7c2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts @@ -0,0 +1,579 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceNextOptionalParams, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentListByServiceResponse, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, + WorkspacePolicyFragmentListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspacePolicyFragment operations. */ +export class WorkspacePolicyFragmentImpl implements WorkspacePolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspacePolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + WorkspacePolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + listReferencesOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyFragmentListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.orderby, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyFragmentGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters65, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.top, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts new file mode 100644 index 000000000000..60dd01adff60 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts @@ -0,0 +1,511 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProduct } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductContract, + WorkspaceProductListByServiceNextOptionalParams, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductListByServiceResponse, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, + WorkspaceProductListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProduct operations. */ +export class WorkspaceProductImpl implements WorkspaceProduct { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProduct class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getOperationSpec, + ); + } + + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceProductListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandGroups, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters73, + 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.parameters74, + 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..83678a396775 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts @@ -0,0 +1,427 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductNextOptionalParams, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkListByProductResponse, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, + WorkspaceProductApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductApiLink operations. */ +export class WorkspaceProductApiLinkImpl implements WorkspaceProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.WorkspaceProductApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters75, + 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..db39796fe8a7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts @@ -0,0 +1,429 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductNextOptionalParams, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkListByProductResponse, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, + WorkspaceProductGroupLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceProductGroupLink operations. */ +export class WorkspaceProductGroupLinkImpl + implements WorkspaceProductGroupLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductGroupLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options, + }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.WorkspaceProductGroupLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts new file mode 100644 index 000000000000..5b19618edec6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts @@ -0,0 +1,325 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceProductPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Class containing WorkspaceProductPolicy operations. */ +export class WorkspaceProductPolicyImpl implements WorkspaceProductPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec, + ); + } + + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getEntityTagOperationSpec, + ); + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options, + }, + getOperationSpec, + ); + } + + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + ifMatch, + options, + }, + deleteOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductPolicyGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts new file mode 100644 index 000000000000..e6fe01019d38 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts @@ -0,0 +1,650 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceSubscription } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SubscriptionContract, + WorkspaceSubscriptionListNextOptionalParams, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionListResponse, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, + WorkspaceSubscriptionListNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceSubscription operations. */ +export class WorkspaceSubscriptionImpl implements WorkspaceSubscription { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceSubscription class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceSubscriptionListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listOperationSpec, + ); + } + + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getEntityTagOperationSpec, + ); + } + + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, parameters, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + sid, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regeneratePrimaryKeyOperationSpec, + ); + } + + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regenerateSecondaryKeyOperationSpec, + ); + } + + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + listSecretsOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceSubscriptionListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceSubscriptionGetEntityTagHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters79, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.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.parameters80, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regeneratePrimaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regenerateSecondaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract, + headersMapper: Mappers.WorkspaceSubscriptionListSecretsHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts new file mode 100644 index 000000000000..38eeb0339933 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts @@ -0,0 +1,503 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTag } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagContract, + WorkspaceTagListByServiceNextOptionalParams, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagListByServiceResponse, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, + WorkspaceTagListByServiceNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTag operations. */ +export class WorkspaceTagImpl implements WorkspaceTag { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTag class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings, + ); + }, + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec, + ); + } + + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getEntityStateOperationSpec, + ); + } + + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getOperationSpec, + ); + } + + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + ifMatch, + parameters, + options, + }, + updateOperationSpec, + ); + } + + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, ifMatch, options }, + deleteOperationSpec, + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceTagListByServiceNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.scope, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEntityStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceTagGetEntityStateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + ], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagUpdateHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1, + ], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer, +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts new file mode 100644 index 000000000000..885defa3b193 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts @@ -0,0 +1,420 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductNextOptionalParams, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkListByProductResponse, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, + WorkspaceTagApiLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagApiLink operations. */ +export class WorkspaceTagApiLinkImpl implements WorkspaceTagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagApiLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.WorkspaceTagApiLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters81, + 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..4b5818231f1a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts @@ -0,0 +1,422 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductNextOptionalParams, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkListByProductResponse, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, + WorkspaceTagOperationLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagOperationLink operations. */ +export class WorkspaceTagOperationLinkImpl + implements WorkspaceTagOperationLink +{ + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagOperationLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.WorkspaceTagOperationLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters82, + 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..7966cbb5f12d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts @@ -0,0 +1,420 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductNextOptionalParams, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkListByProductResponse, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, + WorkspaceTagProductLinkListByProductNextResponse, +} from "../models"; + +/// +/** Class containing WorkspaceTagProductLink operations. */ +export class WorkspaceTagProductLinkImpl implements WorkspaceTagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings, + ); + }, + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: WorkspaceTagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec, + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + getOperationSpec, + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + parameters, + options, + }, + createOrUpdateOperationSpec, + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options, + }, + deleteOperationSpec, + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagProductLinkListByProductNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top, + Parameters.skip, + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.WorkspaceTagProductLinkGetHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.parameters83, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts new file mode 100644 index 000000000000..1446ef8bbfa7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/allPolicies.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AllPoliciesContract, + AllPoliciesListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a AllPolicies. */ +export interface AllPolicies { + /** + * Status of all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AllPoliciesListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index 0ff932cdd76b..e5c557585318 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -23,7 +23,8 @@ import { ApiUpdateContract, ApiUpdateOptionalParams, ApiUpdateResponse, - ApiDeleteOptionalParams + ApiDeleteOptionalParams, + ApiDeleteResponse, } from "../models"; /// @@ -38,7 +39,7 @@ export interface Api { listByService( resourceGroupName: string, serviceName: string, - options?: ApiListByServiceOptionalParams + options?: ApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. @@ -49,7 +50,7 @@ export interface Api { listByTags( resourceGroupName: string, serviceName: string, - options?: ApiListByTagsOptionalParams + options?: ApiListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. @@ -63,7 +64,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetEntityTagOptionalParams + options?: ApiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API specified by its identifier. @@ -77,7 +78,7 @@ export interface Api { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiGetOptionalParams + options?: ApiGetOptionalParams, ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. @@ -93,7 +94,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -114,7 +115,7 @@ export interface Api { serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, - options?: ApiCreateOrUpdateOptionalParams + options?: ApiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specified API of the API Management service instance. @@ -133,7 +134,7 @@ export interface Api { apiId: string, ifMatch: string, parameters: ApiUpdateContract, - options?: ApiUpdateOptionalParams + options?: ApiUpdateOptionalParams, ): Promise; /** * Deletes the specified API of the API Management service instance. @@ -145,11 +146,30 @@ export interface Api { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, - options?: ApiDeleteOptionalParams - ): Promise; + options?: ApiDeleteOptionalParams, + ): Promise< + SimplePollerLike, ApiDeleteResponse> + >; + /** + * Deletes the specified API of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiDeleteOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index d369a59d6f66..4e0c775171d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -18,7 +18,7 @@ import { ApiDiagnosticCreateOrUpdateResponse, ApiDiagnosticUpdateOptionalParams, ApiDiagnosticUpdateResponse, - ApiDiagnosticDeleteOptionalParams + ApiDiagnosticDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiDiagnostic { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiDiagnosticListByServiceOptionalParams + options?: ApiDiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetEntityTagOptionalParams + options?: ApiDiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. @@ -67,7 +67,7 @@ export interface ApiDiagnostic { serviceName: string, apiId: string, diagnosticId: string, - options?: ApiDiagnosticGetOptionalParams + options?: ApiDiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. @@ -85,7 +85,7 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, parameters: DiagnosticContract, - options?: ApiDiagnosticCreateOrUpdateOptionalParams + options?: ApiDiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. @@ -106,7 +106,7 @@ export interface ApiDiagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: ApiDiagnosticUpdateOptionalParams + options?: ApiDiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic from an API. @@ -125,6 +125,6 @@ export interface ApiDiagnostic { apiId: string, diagnosticId: string, ifMatch: string, - options?: ApiDiagnosticDeleteOptionalParams + options?: ApiDiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index 1efcf25c77c1..bfb1f814ac47 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -10,7 +10,7 @@ import { ExportFormat, ExportApi, ApiExportGetOptionalParams, - ApiExportGetResponse + ApiExportGetResponse, } from "../models"; /** Interface representing a ApiExport. */ @@ -23,7 +23,7 @@ export interface ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ @@ -33,6 +33,6 @@ export interface ApiExport { apiId: string, format: ExportFormat, exportParam: ExportApi, - options?: ApiExportGetOptionalParams + options?: ApiExportGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index ca2f0189336a..989d93b9f05c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -19,7 +19,7 @@ import { IssueUpdateContract, ApiIssueUpdateOptionalParams, ApiIssueUpdateResponse, - ApiIssueDeleteOptionalParams + ApiIssueDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiIssue { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiIssueListByServiceOptionalParams + options?: ApiIssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetEntityTagOptionalParams + options?: ApiIssueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. @@ -66,7 +66,7 @@ export interface ApiIssue { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueGetOptionalParams + options?: ApiIssueGetOptionalParams, ): Promise; /** * Creates a new Issue for an API or updates an existing one. @@ -83,7 +83,7 @@ export interface ApiIssue { apiId: string, issueId: string, parameters: IssueContract, - options?: ApiIssueCreateOrUpdateOptionalParams + options?: ApiIssueCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing issue for an API. @@ -103,7 +103,7 @@ export interface ApiIssue { issueId: string, ifMatch: string, parameters: IssueUpdateContract, - options?: ApiIssueUpdateOptionalParams + options?: ApiIssueUpdateOptionalParams, ): Promise; /** * Deletes the specified Issue from an API. @@ -121,6 +121,6 @@ export interface ApiIssue { apiId: string, issueId: string, ifMatch: string, - options?: ApiIssueDeleteOptionalParams + options?: ApiIssueDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index b6e147b842e3..45df060008d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -16,7 +16,7 @@ import { ApiIssueAttachmentGetResponse, ApiIssueAttachmentCreateOrUpdateOptionalParams, ApiIssueAttachmentCreateOrUpdateResponse, - ApiIssueAttachmentDeleteOptionalParams + ApiIssueAttachmentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueAttachment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueAttachmentListByServiceOptionalParams + options?: ApiIssueAttachmentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetEntityTagOptionalParams + options?: ApiIssueAttachmentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueAttachment { apiId: string, issueId: string, attachmentId: string, - options?: ApiIssueAttachmentGetOptionalParams + options?: ApiIssueAttachmentGetOptionalParams, ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, parameters: IssueAttachmentContract, - options?: ApiIssueAttachmentCreateOrUpdateOptionalParams + options?: ApiIssueAttachmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueAttachment { issueId: string, attachmentId: string, ifMatch: string, - options?: ApiIssueAttachmentDeleteOptionalParams + options?: ApiIssueAttachmentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 4d86b68407ce..2780903400cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -16,7 +16,7 @@ import { ApiIssueCommentGetResponse, ApiIssueCommentCreateOrUpdateOptionalParams, ApiIssueCommentCreateOrUpdateResponse, - ApiIssueCommentDeleteOptionalParams + ApiIssueCommentDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiIssueComment { serviceName: string, apiId: string, issueId: string, - options?: ApiIssueCommentListByServiceOptionalParams + options?: ApiIssueCommentListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. @@ -52,7 +52,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetEntityTagOptionalParams + options?: ApiIssueCommentGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. @@ -69,7 +69,7 @@ export interface ApiIssueComment { apiId: string, issueId: string, commentId: string, - options?: ApiIssueCommentGetOptionalParams + options?: ApiIssueCommentGetOptionalParams, ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. @@ -88,7 +88,7 @@ export interface ApiIssueComment { issueId: string, commentId: string, parameters: IssueCommentContract, - options?: ApiIssueCommentCreateOrUpdateOptionalParams + options?: ApiIssueCommentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified comment from an Issue. @@ -108,6 +108,6 @@ export interface ApiIssueComment { issueId: string, commentId: string, ifMatch: string, - options?: ApiIssueCommentDeleteOptionalParams + options?: ApiIssueCommentDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts new file mode 100644 index 000000000000..ed236615f408 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGateway.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApiManagementGatewayResource, + ApiManagementGatewayListByResourceGroupOptionalParams, + ApiManagementGatewayListOptionalParams, + ApiManagementGatewayCreateOrUpdateOptionalParams, + ApiManagementGatewayCreateOrUpdateResponse, + ApiManagementGatewayUpdateParameters, + ApiManagementGatewayUpdateOptionalParams, + ApiManagementGatewayUpdateResponse, + ApiManagementGatewayGetOptionalParams, + ApiManagementGatewayGetResponse, + ApiManagementGatewayDeleteOptionalParams, + ApiManagementGatewayDeleteResponse, +} from "../models"; + +/// +/** Interface representing a ApiManagementGateway. */ +export interface ApiManagementGateway { + /** + * List all API Management gateways within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: ApiManagementGatewayListByResourceGroupOptionalParams, + ): PagedAsyncIterableIterator; + /** + * List all API Management gateways within a subscription. + * @param options The options parameters. + */ + list( + options?: ApiManagementGatewayListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayCreateOrUpdateResponse + > + >; + /** + * Creates or updates an API Management gateway. This is long running operation and could take several + * minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayResource, + options?: ApiManagementGatewayCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayUpdateResponse + > + >; + /** + * Updates an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + parameters: ApiManagementGatewayUpdateParameters, + options?: ApiManagementGatewayUpdateOptionalParams, + ): Promise; + /** + * Gets an API Management gateway resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayGetOptionalParams, + ): Promise; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayDeleteResponse + > + >; + /** + * Deletes an existing API Management gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewayConfigConnection.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewayConfigConnection.ts new file mode 100644 index 000000000000..d69986759f14 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewayConfigConnection.ts @@ -0,0 +1,125 @@ +/* + * 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 { + ApiManagementGatewayConfigConnectionResource, + ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ApiManagementGatewayConfigConnectionGetOptionalParams, + ApiManagementGatewayConfigConnectionGetResponse, + ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ApiManagementGatewayConfigConnectionCreateOrUpdateResponse, + ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ApiManagementGatewayConfigConnectionDeleteResponse, +} from "../models"; + +/// +/** Interface representing a ApiManagementGatewayConfigConnection. */ +export interface ApiManagementGatewayConfigConnection { + /** + * List all API Management gateway config connections within a gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + listByGateway( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewayConfigConnectionListByGatewayOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets an API Management gateway config connection resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + options?: ApiManagementGatewayConfigConnectionGetOptionalParams, + ): Promise; + /** + * Creates or updates an API Management gateway config connection. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway config connection + * operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + parameters: ApiManagementGatewayConfigConnectionResource, + options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayConfigConnectionCreateOrUpdateResponse + > + >; + /** + * Creates or updates an API Management gateway config connection. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param parameters Parameters supplied to the CreateOrUpdate API Management gateway config connection + * operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + parameters: ApiManagementGatewayConfigConnectionResource, + options?: ApiManagementGatewayConfigConnectionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes an existing API Management gateway config connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @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. + */ + beginDelete( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + ifMatch: string, + options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementGatewayConfigConnectionDeleteResponse + > + >; + /** + * Deletes an existing API Management gateway config connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param configConnectionName The name of the API Management gateway config connection. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + gatewayName: string, + configConnectionName: string, + ifMatch: string, + options?: ApiManagementGatewayConfigConnectionDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewaySkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewaySkus.ts new file mode 100644 index 000000000000..8e3a7f1fcb19 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementGatewaySkus.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GatewayResourceSkuResult, + ApiManagementGatewaySkusListAvailableSkusOptionalParams, +} from "../models"; + +/// +/** Interface representing a ApiManagementGatewaySkus. */ +export interface ApiManagementGatewaySkus { + /** + * Gets all available SKU for a given API Management gateway + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param gatewayName The name of the API Management gateway. + * @param options The options parameters. + */ + listAvailableSkus( + resourceGroupName: string, + gatewayName: string, + options?: ApiManagementGatewaySkusListAvailableSkusOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts index e13d81ae1a56..a6e10b76627f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Operation, - ApiManagementOperationsListOptionalParams + ApiManagementOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementOperations { * @param options The options parameters. */ list( - options?: ApiManagementOperationsListOptionalParams + options?: ApiManagementOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index 947d8acdd1d3..32c6e2e421a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -35,7 +35,7 @@ import { ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ApiManagementServiceGetDomainOwnershipIdentifierResponse, ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, } from "../models"; /// @@ -48,14 +48,14 @@ export interface ApiManagementService { */ listByResourceGroup( resourceGroupName: string, - options?: ApiManagementServiceListByResourceGroupOptionalParams + options?: ApiManagementServiceListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all API Management services within an Azure subscription. * @param options The options parameters. */ list( - options?: ApiManagementServiceListOptionalParams + options?: ApiManagementServiceListOptionalParams, ): PagedAsyncIterableIterator; /** * Restores a backup of an API Management service created using the ApiManagementService_Backup @@ -70,7 +70,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceRestoreOptionalParams + options?: ApiManagementServiceRestoreOptionalParams, ): Promise; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long @@ -104,7 +104,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -123,7 +123,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, - options?: ApiManagementServiceBackupOptionalParams + options?: ApiManagementServiceBackupOptionalParams, ): Promise; /** * Creates or updates an API Management service. This is long running operation and could take several @@ -137,7 +137,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -156,7 +156,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, - options?: ApiManagementServiceCreateOrUpdateOptionalParams + options?: ApiManagementServiceCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing API Management service. @@ -169,7 +169,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, - options?: ApiManagementServiceUpdateOptionalParams + options?: ApiManagementServiceUpdateOptionalParams, ): Promise; /** * Gets an API Management service resource description. @@ -198,7 +198,7 @@ export interface ApiManagementService { get( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetOptionalParams + options?: ApiManagementServiceGetOptionalParams, ): Promise; /** * Deletes an existing API Management service. @@ -209,7 +209,7 @@ export interface ApiManagementService { beginDelete( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise, void>>; /** * Deletes an existing API Management service. @@ -220,7 +220,7 @@ export interface ApiManagementService { beginDeleteAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceDeleteOptionalParams + options?: ApiManagementServiceDeleteOptionalParams, ): Promise; /** * Upgrades an API Management service to the Stv2 platform. For details refer to @@ -233,7 +233,7 @@ export interface ApiManagementService { beginMigrateToStv2( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -251,7 +251,7 @@ export interface ApiManagementService { beginMigrateToStv2AndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceMigrateToStv2OptionalParams + options?: ApiManagementServiceMigrateToStv2OptionalParams, ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. @@ -262,7 +262,7 @@ export interface ApiManagementService { getSsoToken( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceGetSsoTokenOptionalParams + options?: ApiManagementServiceGetSsoTokenOptionalParams, ): Promise; /** * Checks availability and correctness of a name for an API Management service. @@ -271,14 +271,14 @@ export interface ApiManagementService { */ checkNameAvailability( parameters: ApiManagementServiceCheckNameAvailabilityParameters, - options?: ApiManagementServiceCheckNameAvailabilityOptionalParams + options?: ApiManagementServiceCheckNameAvailabilityOptionalParams, ): Promise; /** * Get the custom domain ownership identifier for an API Management service. * @param options The options parameters. */ getDomainOwnershipIdentifier( - options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams + options?: ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams, ): Promise; /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS @@ -290,12 +290,10 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdates( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise< SimplePollerLike< - OperationState< - ApiManagementServiceApplyNetworkConfigurationUpdatesResponse - >, + OperationState, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse > >; @@ -309,6 +307,6 @@ export interface ApiManagementService { beginApplyNetworkConfigurationUpdatesAndWait( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 49efcda76ba3..c92f84eb53b3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceSkuResult, - ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface ApiManagementServiceSkus { listAvailableServiceSkus( resourceGroupName: string, serviceName: string, - options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams + options?: ApiManagementServiceSkusListAvailableServiceSkusOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts index c5459f44cbf1..dc636c3177e9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementSkus.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiManagementSku, - ApiManagementSkusListOptionalParams + ApiManagementSkusListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ApiManagementSkus { * @param options The options parameters. */ list( - options?: ApiManagementSkusListOptionalParams + options?: ApiManagementSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLink.ts new file mode 100644 index 000000000000..e92eae293721 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLink.ts @@ -0,0 +1,30 @@ +/* + * 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 { + ApiManagementWorkspaceLinkGetOptionalParams, + ApiManagementWorkspaceLinkGetResponse, +} from "../models"; + +/** Interface representing a ApiManagementWorkspaceLink. */ +export interface ApiManagementWorkspaceLink { + /** + * Gets an API Management WorkspaceLink resource description. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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?: ApiManagementWorkspaceLinkGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLinks.ts new file mode 100644 index 000000000000..b8101bd51e52 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementWorkspaceLinks.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiManagementWorkspaceLinksResource, + ApiManagementWorkspaceLinksListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a ApiManagementWorkspaceLinks. */ +export interface ApiManagementWorkspaceLinks { + /** + * List all API Management workspaceLinks for a 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. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementWorkspaceLinksListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index bfe69dd00983..5af6820df308 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -19,7 +19,7 @@ import { OperationUpdateContract, ApiOperationUpdateOptionalParams, ApiOperationUpdateResponse, - ApiOperationDeleteOptionalParams + ApiOperationDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiOperation { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiOperationListByApiOptionalParams + options?: ApiOperationListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. @@ -54,7 +54,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetEntityTagOptionalParams + options?: ApiOperationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the API Operation specified by its identifier. @@ -71,7 +71,7 @@ export interface ApiOperation { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationGetOptionalParams + options?: ApiOperationGetOptionalParams, ): Promise; /** * Creates a new operation in the API or updates an existing one. @@ -90,7 +90,7 @@ export interface ApiOperation { apiId: string, operationId: string, parameters: OperationContract, - options?: ApiOperationCreateOrUpdateOptionalParams + options?: ApiOperationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the operation in the API specified by its identifier. @@ -112,7 +112,7 @@ export interface ApiOperation { operationId: string, ifMatch: string, parameters: OperationUpdateContract, - options?: ApiOperationUpdateOptionalParams + options?: ApiOperationUpdateOptionalParams, ): Promise; /** * Deletes the specified operation in the API. @@ -132,6 +132,6 @@ export interface ApiOperation { apiId: string, operationId: string, ifMatch: string, - options?: ApiOperationDeleteOptionalParams + options?: ApiOperationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 224a85a7e194..4942f9730382 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiOperationPolicyCreateOrUpdateOptionalParams, ApiOperationPolicyCreateOrUpdateResponse, - ApiOperationPolicyDeleteOptionalParams + ApiOperationPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiOperationPolicy. */ @@ -37,7 +37,7 @@ export interface ApiOperationPolicy { serviceName: string, apiId: string, operationId: string, - options?: ApiOperationPolicyListByOperationOptionalParams + options?: ApiOperationPolicyListByOperationOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. @@ -56,7 +56,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetEntityTagOptionalParams + options?: ApiOperationPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API Operation level. @@ -75,7 +75,7 @@ export interface ApiOperationPolicy { apiId: string, operationId: string, policyId: PolicyIdName, - options?: ApiOperationPolicyGetOptionalParams + options?: ApiOperationPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API Operation level. @@ -96,7 +96,7 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiOperationPolicyCreateOrUpdateOptionalParams + options?: ApiOperationPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api Operation. @@ -118,6 +118,6 @@ export interface ApiOperationPolicy { operationId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiOperationPolicyDeleteOptionalParams + options?: ApiOperationPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 3d54b954c30e..49a714f937d0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -17,7 +17,7 @@ import { PolicyContract, ApiPolicyCreateOrUpdateOptionalParams, ApiPolicyCreateOrUpdateResponse, - ApiPolicyDeleteOptionalParams + ApiPolicyDeleteOptionalParams, } from "../models"; /** Interface representing a ApiPolicy. */ @@ -34,7 +34,7 @@ export interface ApiPolicy { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiPolicyListByApiOptionalParams + options?: ApiPolicyListByApiOptionalParams, ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. @@ -50,7 +50,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetEntityTagOptionalParams + options?: ApiPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the API level. @@ -66,7 +66,7 @@ export interface ApiPolicy { serviceName: string, apiId: string, policyId: PolicyIdName, - options?: ApiPolicyGetOptionalParams + options?: ApiPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the API. @@ -84,7 +84,7 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ApiPolicyCreateOrUpdateOptionalParams + options?: ApiPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Api. @@ -103,6 +103,6 @@ export interface ApiPolicy { apiId: string, policyId: PolicyIdName, ifMatch: string, - options?: ApiPolicyDeleteOptionalParams + options?: ApiPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index d83bdb058e0a..9c7081e8f3c2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -23,6 +23,6 @@ export interface ApiProduct { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiProductListByApisOptionalParams + options?: ApiProductListByApisOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 15d74409908a..0787e4a5c4a6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -18,7 +18,7 @@ import { ApiReleaseCreateOrUpdateResponse, ApiReleaseUpdateOptionalParams, ApiReleaseUpdateResponse, - ApiReleaseDeleteOptionalParams + ApiReleaseDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface ApiRelease { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiReleaseListByServiceOptionalParams + options?: ApiReleaseListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. @@ -53,7 +53,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetEntityTagOptionalParams + options?: ApiReleaseGetEntityTagOptionalParams, ): Promise; /** * Returns the details of an API release. @@ -69,7 +69,7 @@ export interface ApiRelease { serviceName: string, apiId: string, releaseId: string, - options?: ApiReleaseGetOptionalParams + options?: ApiReleaseGetOptionalParams, ): Promise; /** * Creates a new Release for the API. @@ -87,7 +87,7 @@ export interface ApiRelease { apiId: string, releaseId: string, parameters: ApiReleaseContract, - options?: ApiReleaseCreateOrUpdateOptionalParams + options?: ApiReleaseCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the release of the API specified by its identifier. @@ -108,7 +108,7 @@ export interface ApiRelease { releaseId: string, ifMatch: string, parameters: ApiReleaseContract, - options?: ApiReleaseUpdateOptionalParams + options?: ApiReleaseUpdateOptionalParams, ): Promise; /** * Deletes the specified release in the API. @@ -127,6 +127,6 @@ export interface ApiRelease { apiId: string, releaseId: string, ifMatch: string, - options?: ApiReleaseDeleteOptionalParams + options?: ApiReleaseDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 8264f54d3f06..30f68ef261cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApiRevisionContract, - ApiRevisionListByServiceOptionalParams + ApiRevisionListByServiceOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ApiRevision { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiRevisionListByServiceOptionalParams + options?: ApiRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 2a2b5c2c807c..d0a2fb7647d5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -17,7 +17,7 @@ import { ApiSchemaGetResponse, ApiSchemaCreateOrUpdateOptionalParams, ApiSchemaCreateOrUpdateResponse, - ApiSchemaDeleteOptionalParams + ApiSchemaDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface ApiSchema { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiSchemaListByApiOptionalParams + options?: ApiSchemaListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. @@ -51,7 +51,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetEntityTagOptionalParams + options?: ApiSchemaGetEntityTagOptionalParams, ): Promise; /** * Get the schema configuration at the API level. @@ -67,7 +67,7 @@ export interface ApiSchema { serviceName: string, apiId: string, schemaId: string, - options?: ApiSchemaGetOptionalParams + options?: ApiSchemaGetOptionalParams, ): Promise; /** * Creates or updates schema configuration for the API. @@ -85,7 +85,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface ApiSchema { apiId: string, schemaId: string, parameters: SchemaContract, - options?: ApiSchemaCreateOrUpdateOptionalParams + options?: ApiSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the schema configuration at the Api. @@ -127,6 +127,6 @@ export interface ApiSchema { apiId: string, schemaId: string, ifMatch: string, - options?: ApiSchemaDeleteOptionalParams + options?: ApiSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index cd4303cd42c1..51efd0cdf9f6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -17,7 +17,7 @@ import { TagDescriptionCreateParameters, ApiTagDescriptionCreateOrUpdateOptionalParams, ApiTagDescriptionCreateOrUpdateResponse, - ApiTagDescriptionDeleteOptionalParams + ApiTagDescriptionDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface ApiTagDescription { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiTagDescriptionListByServiceOptionalParams + options?: ApiTagDescriptionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -53,7 +53,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetEntityTagOptionalParams + options?: ApiTagDescriptionGetEntityTagOptionalParams, ): Promise; /** * Get Tag description in scope of API @@ -70,7 +70,7 @@ export interface ApiTagDescription { serviceName: string, apiId: string, tagDescriptionId: string, - options?: ApiTagDescriptionGetOptionalParams + options?: ApiTagDescriptionGetOptionalParams, ): Promise; /** * Create/Update tag description in scope of the Api. @@ -89,7 +89,7 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, parameters: TagDescriptionCreateParameters, - options?: ApiTagDescriptionCreateOrUpdateOptionalParams + options?: ApiTagDescriptionCreateOrUpdateOptionalParams, ): Promise; /** * Delete tag description for the Api. @@ -109,6 +109,6 @@ export interface ApiTagDescription { apiId: string, tagDescriptionId: string, ifMatch: string, - options?: ApiTagDescriptionDeleteOptionalParams + options?: ApiTagDescriptionDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 4a5912de1735..404a612fc4c6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -19,7 +19,7 @@ import { ApiVersionSetUpdateParameters, ApiVersionSetUpdateOptionalParams, ApiVersionSetUpdateResponse, - ApiVersionSetDeleteOptionalParams + ApiVersionSetDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApiVersionSet { listByService( resourceGroupName: string, serviceName: string, - options?: ApiVersionSetListByServiceOptionalParams + options?: ApiVersionSetListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. @@ -48,7 +48,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetEntityTagOptionalParams + options?: ApiVersionSetGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. @@ -62,7 +62,7 @@ export interface ApiVersionSet { resourceGroupName: string, serviceName: string, versionSetId: string, - options?: ApiVersionSetGetOptionalParams + options?: ApiVersionSetGetOptionalParams, ): Promise; /** * Creates or Updates a Api Version Set. @@ -78,7 +78,7 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, parameters: ApiVersionSetContract, - options?: ApiVersionSetCreateOrUpdateOptionalParams + options?: ApiVersionSetCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. @@ -97,7 +97,7 @@ export interface ApiVersionSet { versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, - options?: ApiVersionSetUpdateOptionalParams + options?: ApiVersionSetUpdateOptionalParams, ): Promise; /** * Deletes specific Api Version Set. @@ -114,6 +114,6 @@ export interface ApiVersionSet { serviceName: string, versionSetId: string, ifMatch: string, - options?: ApiVersionSetDeleteOptionalParams + options?: ApiVersionSetDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts index 5d6bcdf9565c..60e6ace34d87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ApiWikiUpdateOptionalParams, ApiWikiUpdateResponse, - ApiWikiDeleteOptionalParams + ApiWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ApiWiki. */ @@ -33,7 +33,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetEntityTagOptionalParams + options?: ApiWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for an API specified by its identifier. @@ -46,7 +46,7 @@ export interface ApiWiki { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikiGetOptionalParams + options?: ApiWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for an API or updates an existing one. @@ -61,7 +61,7 @@ export interface ApiWiki { serviceName: string, apiId: string, parameters: WikiContract, - options?: ApiWikiCreateOrUpdateOptionalParams + options?: ApiWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for an API specified by its identifier. @@ -79,7 +79,7 @@ export interface ApiWiki { apiId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ApiWikiUpdateOptionalParams + options?: ApiWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from an API. @@ -95,6 +95,6 @@ export interface ApiWiki { serviceName: string, apiId: string, ifMatch: string, - options?: ApiWikiDeleteOptionalParams + options?: ApiWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts index b86f924bee02..5ae29595e2bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -23,6 +23,6 @@ export interface ApiWikis { resourceGroupName: string, serviceName: string, apiId: string, - options?: ApiWikisListOptionalParams + options?: ApiWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts index 015f10f04d61..99f546d87562 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -17,7 +17,7 @@ import { AuthorizationDeleteOptionalParams, AuthorizationConfirmConsentCodeRequestContract, AuthorizationConfirmConsentCodeOptionalParams, - AuthorizationConfirmConsentCodeResponse + AuthorizationConfirmConsentCodeResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Authorization { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationListByAuthorizationProviderOptionalParams + options?: AuthorizationListByAuthorizationProviderOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization specified by its identifier. @@ -49,7 +49,7 @@ export interface Authorization { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationGetOptionalParams + options?: AuthorizationGetOptionalParams, ): Promise; /** * Creates or updates authorization. @@ -66,7 +66,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, - options?: AuthorizationCreateOrUpdateOptionalParams + options?: AuthorizationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Authorization from the Authorization provider. @@ -84,7 +84,7 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, ifMatch: string, - options?: AuthorizationDeleteOptionalParams + options?: AuthorizationDeleteOptionalParams, ): Promise; /** * Confirm valid consent code to suppress Authorizations anti-phishing page. @@ -101,6 +101,6 @@ export interface Authorization { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, - options?: AuthorizationConfirmConsentCodeOptionalParams + options?: AuthorizationConfirmConsentCodeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts index 9bbf78ae39d7..482999bbbebd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -14,7 +14,7 @@ import { AuthorizationAccessPolicyGetResponse, AuthorizationAccessPolicyCreateOrUpdateOptionalParams, AuthorizationAccessPolicyCreateOrUpdateResponse, - AuthorizationAccessPolicyDeleteOptionalParams + AuthorizationAccessPolicyDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface AuthorizationAccessPolicy { serviceName: string, authorizationProviderId: string, authorizationId: string, - options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization access policy specified by its identifier. @@ -50,7 +50,7 @@ export interface AuthorizationAccessPolicy { authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, - options?: AuthorizationAccessPolicyGetOptionalParams + options?: AuthorizationAccessPolicyGetOptionalParams, ): Promise; /** * Creates or updates Authorization Access Policy. @@ -69,7 +69,7 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, - options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific access policy from the Authorization. @@ -89,6 +89,6 @@ export interface AuthorizationAccessPolicy { authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, - options?: AuthorizationAccessPolicyDeleteOptionalParams + options?: AuthorizationAccessPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts index bcfc0be03fe5..7097a1fd22f1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts @@ -9,7 +9,7 @@ import { AuthorizationLoginRequestContract, AuthorizationLoginLinksPostOptionalParams, - AuthorizationLoginLinksPostResponse + AuthorizationLoginLinksPostResponse, } from "../models"; /** Interface representing a AuthorizationLoginLinks. */ @@ -29,6 +29,6 @@ export interface AuthorizationLoginLinks { authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, - options?: AuthorizationLoginLinksPostOptionalParams + options?: AuthorizationLoginLinksPostOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts index 1b2c64bf2296..44ed1cf0b9a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -14,7 +14,7 @@ import { AuthorizationProviderGetResponse, AuthorizationProviderCreateOrUpdateOptionalParams, AuthorizationProviderCreateOrUpdateResponse, - AuthorizationProviderDeleteOptionalParams + AuthorizationProviderDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface AuthorizationProvider { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationProviderListByServiceOptionalParams + options?: AuthorizationProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the authorization provider specified by its identifier. @@ -42,7 +42,7 @@ export interface AuthorizationProvider { resourceGroupName: string, serviceName: string, authorizationProviderId: string, - options?: AuthorizationProviderGetOptionalParams + options?: AuthorizationProviderGetOptionalParams, ): Promise; /** * Creates or updates authorization provider. @@ -57,7 +57,7 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, - options?: AuthorizationProviderCreateOrUpdateOptionalParams + options?: AuthorizationProviderCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific authorization provider from the API Management service instance. @@ -73,6 +73,6 @@ export interface AuthorizationProvider { serviceName: string, authorizationProviderId: string, ifMatch: string, - options?: AuthorizationProviderDeleteOptionalParams + options?: AuthorizationProviderDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index d70ac4bcaccc..ea99c93bbb92 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -21,7 +21,7 @@ import { AuthorizationServerUpdateResponse, AuthorizationServerDeleteOptionalParams, AuthorizationServerListSecretsOptionalParams, - AuthorizationServerListSecretsResponse + AuthorizationServerListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface AuthorizationServer { listByService( resourceGroupName: string, serviceName: string, - options?: AuthorizationServerListByServiceOptionalParams + options?: AuthorizationServerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. @@ -49,7 +49,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetEntityTagOptionalParams + options?: AuthorizationServerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the authorization server specified by its identifier. @@ -62,7 +62,7 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerGetOptionalParams + options?: AuthorizationServerGetOptionalParams, ): Promise; /** * Creates new authorization server or updates an existing authorization server. @@ -77,7 +77,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, parameters: AuthorizationServerContract, - options?: AuthorizationServerCreateOrUpdateOptionalParams + options?: AuthorizationServerCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the authorization server specified by its identifier. @@ -95,7 +95,7 @@ export interface AuthorizationServer { authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, - options?: AuthorizationServerUpdateOptionalParams + options?: AuthorizationServerUpdateOptionalParams, ): Promise; /** * Deletes specific authorization server instance. @@ -111,7 +111,7 @@ export interface AuthorizationServer { serviceName: string, authsid: string, ifMatch: string, - options?: AuthorizationServerDeleteOptionalParams + options?: AuthorizationServerDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the authorization server. @@ -124,6 +124,6 @@ export interface AuthorizationServer { resourceGroupName: string, serviceName: string, authsid: string, - options?: AuthorizationServerListSecretsOptionalParams + options?: AuthorizationServerListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index 40e8e927c666..dd64fd3a3614 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -20,7 +20,7 @@ import { BackendUpdateOptionalParams, BackendUpdateResponse, BackendDeleteOptionalParams, - BackendReconnectOptionalParams + BackendReconnectOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Backend { listByService( resourceGroupName: string, serviceName: string, - options?: BackendListByServiceOptionalParams + options?: BackendListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. @@ -49,7 +49,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetEntityTagOptionalParams + options?: BackendGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the backend specified by its identifier. @@ -63,7 +63,7 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendGetOptionalParams + options?: BackendGetOptionalParams, ): Promise; /** * Creates or Updates a backend. @@ -79,7 +79,7 @@ export interface Backend { serviceName: string, backendId: string, parameters: BackendContract, - options?: BackendCreateOrUpdateOptionalParams + options?: BackendCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing backend. @@ -98,7 +98,7 @@ export interface Backend { backendId: string, ifMatch: string, parameters: BackendUpdateParameters, - options?: BackendUpdateOptionalParams + options?: BackendUpdateOptionalParams, ): Promise; /** * Deletes the specified backend. @@ -115,7 +115,7 @@ export interface Backend { serviceName: string, backendId: string, ifMatch: string, - options?: BackendDeleteOptionalParams + options?: BackendDeleteOptionalParams, ): Promise; /** * Notifies the API Management gateway to create a new connection to the backend after the specified @@ -130,6 +130,6 @@ export interface Backend { resourceGroupName: string, serviceName: string, backendId: string, - options?: BackendReconnectOptionalParams + options?: BackendReconnectOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 8572de9ad24a..0b9d6ff4d319 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -19,7 +19,7 @@ import { CacheUpdateParameters, CacheUpdateOptionalParams, CacheUpdateResponse, - CacheDeleteOptionalParams + CacheDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Cache { listByService( resourceGroupName: string, serviceName: string, - options?: CacheListByServiceOptionalParams + options?: CacheListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. @@ -48,7 +48,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetEntityTagOptionalParams + options?: CacheGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Cache specified by its identifier. @@ -62,7 +62,7 @@ export interface Cache { resourceGroupName: string, serviceName: string, cacheId: string, - options?: CacheGetOptionalParams + options?: CacheGetOptionalParams, ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. @@ -78,7 +78,7 @@ export interface Cache { serviceName: string, cacheId: string, parameters: CacheContract, - options?: CacheCreateOrUpdateOptionalParams + options?: CacheCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the cache specified by its identifier. @@ -97,7 +97,7 @@ export interface Cache { cacheId: string, ifMatch: string, parameters: CacheUpdateParameters, - options?: CacheUpdateOptionalParams + options?: CacheUpdateOptionalParams, ): Promise; /** * Deletes specific Cache. @@ -114,6 +114,6 @@ export interface Cache { serviceName: string, cacheId: string, ifMatch: string, - options?: CacheDeleteOptionalParams + options?: CacheDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 1cf2f8298d79..d3649fddae31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -19,7 +19,7 @@ import { CertificateCreateOrUpdateResponse, CertificateDeleteOptionalParams, CertificateRefreshSecretOptionalParams, - CertificateRefreshSecretResponse + CertificateRefreshSecretResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Certificate { listByService( resourceGroupName: string, serviceName: string, - options?: CertificateListByServiceOptionalParams + options?: CertificateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. @@ -48,7 +48,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetEntityTagOptionalParams + options?: CertificateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the certificate specified by its identifier. @@ -62,7 +62,7 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. @@ -78,7 +78,7 @@ export interface Certificate { serviceName: string, certificateId: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOrUpdateOptionalParams + options?: CertificateCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific certificate. @@ -95,7 +95,7 @@ export interface Certificate { serviceName: string, certificateId: string, ifMatch: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. @@ -109,6 +109,6 @@ export interface Certificate { resourceGroupName: string, serviceName: string, certificateId: string, - options?: CertificateRefreshSecretOptionalParams + options?: CertificateRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index d6db18227d54..655c94bad43e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -16,7 +16,7 @@ import { ContentItemGetResponse, ContentItemCreateOrUpdateOptionalParams, ContentItemCreateOrUpdateResponse, - ContentItemDeleteOptionalParams + ContentItemDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface ContentItem { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentItemListByServiceOptionalParams + options?: ContentItemListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the entity state (ETag) version of the developer portal's content item specified by its @@ -49,7 +49,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetEntityTagOptionalParams + options?: ContentItemGetEntityTagOptionalParams, ): Promise; /** * Returns the developer portal's content item specified by its identifier. @@ -64,7 +64,7 @@ export interface ContentItem { serviceName: string, contentTypeId: string, contentItemId: string, - options?: ContentItemGetOptionalParams + options?: ContentItemGetOptionalParams, ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. @@ -81,7 +81,7 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, parameters: ContentItemContract, - options?: ContentItemCreateOrUpdateOptionalParams + options?: ContentItemCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content item. @@ -99,6 +99,6 @@ export interface ContentItem { contentTypeId: string, contentItemId: string, ifMatch: string, - options?: ContentItemDeleteOptionalParams + options?: ContentItemDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 68c247315096..6bd0baad3cf2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -14,7 +14,7 @@ import { ContentTypeGetResponse, ContentTypeCreateOrUpdateOptionalParams, ContentTypeCreateOrUpdateResponse, - ContentTypeDeleteOptionalParams + ContentTypeDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface ContentType { listByService( resourceGroupName: string, serviceName: string, - options?: ContentTypeListByServiceOptionalParams + options?: ContentTypeListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the developer portal's content type. Content types describe content items' @@ -44,7 +44,7 @@ export interface ContentType { resourceGroupName: string, serviceName: string, contentTypeId: string, - options?: ContentTypeGetOptionalParams + options?: ContentTypeGetOptionalParams, ): Promise; /** * Creates or updates the developer portal's content type. Content types describe content items' @@ -61,7 +61,7 @@ export interface ContentType { serviceName: string, contentTypeId: string, parameters: ContentTypeContract, - options?: ContentTypeCreateOrUpdateOptionalParams + options?: ContentTypeCreateOrUpdateOptionalParams, ): Promise; /** * Removes the specified developer portal's content type. Content types describe content items' @@ -79,6 +79,6 @@ export interface ContentType { serviceName: string, contentTypeId: string, ifMatch: string, - options?: ContentTypeDeleteOptionalParams + options?: ContentTypeDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 650d46f719ba..f20143fd5128 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -16,7 +16,7 @@ import { DelegationSettingsCreateOrUpdateOptionalParams, DelegationSettingsCreateOrUpdateResponse, DelegationSettingsListSecretsOptionalParams, - DelegationSettingsListSecretsResponse + DelegationSettingsListSecretsResponse, } from "../models"; /** Interface representing a DelegationSettings. */ @@ -30,7 +30,7 @@ export interface DelegationSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetEntityTagOptionalParams + options?: DelegationSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Delegation Settings for the Portal. @@ -41,7 +41,7 @@ export interface DelegationSettings { get( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsGetOptionalParams + options?: DelegationSettingsGetOptionalParams, ): Promise; /** * Update Delegation settings. @@ -57,7 +57,7 @@ export interface DelegationSettings { serviceName: string, ifMatch: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsUpdateOptionalParams + options?: DelegationSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Delegation settings. @@ -70,7 +70,7 @@ export interface DelegationSettings { resourceGroupName: string, serviceName: string, parameters: PortalDelegationSettings, - options?: DelegationSettingsCreateOrUpdateOptionalParams + options?: DelegationSettingsCreateOrUpdateOptionalParams, ): Promise; /** * Gets the secret validation key of the DelegationSettings. @@ -81,6 +81,6 @@ export interface DelegationSettings { listSecrets( resourceGroupName: string, serviceName: string, - options?: DelegationSettingsListSecretsOptionalParams + options?: DelegationSettingsListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index fda32ab5743c..e015a6dfebb8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -13,7 +13,7 @@ import { DeletedServicesListBySubscriptionOptionalParams, DeletedServicesGetByNameOptionalParams, DeletedServicesGetByNameResponse, - DeletedServicesPurgeOptionalParams + DeletedServicesPurgeOptionalParams, } from "../models"; /// @@ -24,7 +24,7 @@ export interface DeletedServices { * @param options The options parameters. */ listBySubscription( - options?: DeletedServicesListBySubscriptionOptionalParams + options?: DeletedServicesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Get soft-deleted Api Management Service by name. @@ -35,7 +35,7 @@ export interface DeletedServices { getByName( serviceName: string, location: string, - options?: DeletedServicesGetByNameOptionalParams + options?: DeletedServicesGetByNameOptionalParams, ): Promise; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -46,7 +46,7 @@ export interface DeletedServices { beginPurge( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). @@ -57,6 +57,6 @@ export interface DeletedServices { beginPurgeAndWait( serviceName: string, location: string, - options?: DeletedServicesPurgeOptionalParams + options?: DeletedServicesPurgeOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a33338aa2633..ac5f976b6d6e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -18,7 +18,7 @@ import { DiagnosticCreateOrUpdateResponse, DiagnosticUpdateOptionalParams, DiagnosticUpdateResponse, - DiagnosticDeleteOptionalParams + DiagnosticDeleteOptionalParams, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Diagnostic { listByService( resourceGroupName: string, serviceName: string, - options?: DiagnosticListByServiceOptionalParams + options?: DiagnosticListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. @@ -47,7 +47,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetEntityTagOptionalParams + options?: DiagnosticGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. @@ -61,7 +61,7 @@ export interface Diagnostic { resourceGroupName: string, serviceName: string, diagnosticId: string, - options?: DiagnosticGetOptionalParams + options?: DiagnosticGetOptionalParams, ): Promise; /** * Creates a new Diagnostic or updates an existing one. @@ -77,7 +77,7 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, parameters: DiagnosticContract, - options?: DiagnosticCreateOrUpdateOptionalParams + options?: DiagnosticCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. @@ -96,7 +96,7 @@ export interface Diagnostic { diagnosticId: string, ifMatch: string, parameters: DiagnosticContract, - options?: DiagnosticUpdateOptionalParams + options?: DiagnosticUpdateOptionalParams, ): Promise; /** * Deletes the specified Diagnostic. @@ -113,6 +113,6 @@ export interface Diagnostic { serviceName: string, diagnosticId: string, ifMatch: string, - options?: DiagnosticDeleteOptionalParams + options?: DiagnosticDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts index 6a9cc7551419..6b51f610c784 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -19,7 +19,7 @@ import { DocumentationUpdateContract, DocumentationUpdateOptionalParams, DocumentationUpdateResponse, - DocumentationDeleteOptionalParams + DocumentationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Documentation { listByService( resourceGroupName: string, serviceName: string, - options?: DocumentationListByServiceOptionalParams + options?: DocumentationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Documentation by its identifier. @@ -48,7 +48,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetEntityTagOptionalParams + options?: DocumentationGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Documentation specified by its identifier. @@ -62,7 +62,7 @@ export interface Documentation { resourceGroupName: string, serviceName: string, documentationId: string, - options?: DocumentationGetOptionalParams + options?: DocumentationGetOptionalParams, ): Promise; /** * Creates a new Documentation or updates an existing one. @@ -78,7 +78,7 @@ export interface Documentation { serviceName: string, documentationId: string, parameters: DocumentationContract, - options?: DocumentationCreateOrUpdateOptionalParams + options?: DocumentationCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Documentation for an API specified by its identifier. @@ -97,7 +97,7 @@ export interface Documentation { documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, - options?: DocumentationUpdateOptionalParams + options?: DocumentationUpdateOptionalParams, ): Promise; /** * Deletes the specified Documentation from an API. @@ -114,6 +114,6 @@ export interface Documentation { serviceName: string, documentationId: string, ifMatch: string, - options?: DocumentationDeleteOptionalParams + options?: DocumentationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index daa6c97bed59..c02ce23721de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -20,7 +20,7 @@ import { EmailTemplateCreateOrUpdateResponse, EmailTemplateUpdateOptionalParams, EmailTemplateUpdateResponse, - EmailTemplateDeleteOptionalParams + EmailTemplateDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface EmailTemplate { listByService( resourceGroupName: string, serviceName: string, - options?: EmailTemplateListByServiceOptionalParams + options?: EmailTemplateListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. @@ -48,7 +48,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetEntityTagOptionalParams + options?: EmailTemplateGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the email template specified by its identifier. @@ -61,7 +61,7 @@ export interface EmailTemplate { resourceGroupName: string, serviceName: string, templateName: TemplateName, - options?: EmailTemplateGetOptionalParams + options?: EmailTemplateGetOptionalParams, ): Promise; /** * Updates an Email Template. @@ -76,7 +76,7 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateCreateOrUpdateOptionalParams + options?: EmailTemplateCreateOrUpdateOptionalParams, ): Promise; /** * Updates API Management email template @@ -94,7 +94,7 @@ export interface EmailTemplate { templateName: TemplateName, ifMatch: string, parameters: EmailTemplateUpdateParameters, - options?: EmailTemplateUpdateOptionalParams + options?: EmailTemplateUpdateOptionalParams, ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. @@ -110,6 +110,6 @@ export interface EmailTemplate { serviceName: string, templateName: TemplateName, ifMatch: string, - options?: EmailTemplateDeleteOptionalParams + options?: EmailTemplateDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 00a5b5b809c8..e8cd7bd29474 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -25,7 +25,14 @@ import { GatewayRegenerateKeyOptionalParams, GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, - GatewayGenerateTokenResponse + GatewayGenerateTokenResponse, + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, } from "../models"; /// @@ -40,7 +47,7 @@ export interface Gateway { listByService( resourceGroupName: string, serviceName: string, - options?: GatewayListByServiceOptionalParams + options?: GatewayListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. @@ -54,7 +61,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetEntityTagOptionalParams + options?: GatewayGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Gateway specified by its identifier. @@ -68,7 +75,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayGetOptionalParams + options?: GatewayGetOptionalParams, ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. @@ -84,7 +91,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayContract, - options?: GatewayCreateOrUpdateOptionalParams + options?: GatewayCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the gateway specified by its identifier. @@ -103,7 +110,7 @@ export interface Gateway { gatewayId: string, ifMatch: string, parameters: GatewayContract, - options?: GatewayUpdateOptionalParams + options?: GatewayUpdateOptionalParams, ): Promise; /** * Deletes specific Gateway. @@ -120,7 +127,7 @@ export interface Gateway { serviceName: string, gatewayId: string, ifMatch: string, - options?: GatewayDeleteOptionalParams + options?: GatewayDeleteOptionalParams, ): Promise; /** * Retrieves gateway keys. @@ -134,7 +141,7 @@ export interface Gateway { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayListKeysOptionalParams + options?: GatewayListKeysOptionalParams, ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. @@ -150,7 +157,7 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, - options?: GatewayRegenerateKeyOptionalParams + options?: GatewayRegenerateKeyOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. @@ -166,6 +173,52 @@ export interface Gateway { serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, - options?: GatewayGenerateTokenOptionalParams + options?: GatewayGenerateTokenOptionalParams, ): Promise; + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams, + ): Promise; + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams, + ): Promise; + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams, + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 40fbda7aec7f..7bc1699b7211 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -14,7 +14,7 @@ import { GatewayApiGetEntityTagResponse, GatewayApiCreateOrUpdateOptionalParams, GatewayApiCreateOrUpdateResponse, - GatewayApiDeleteOptionalParams + GatewayApiDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GatewayApi { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayApiListByServiceOptionalParams + options?: GatewayApiListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. @@ -48,7 +48,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiGetEntityTagOptionalParams + options?: GatewayApiGetEntityTagOptionalParams, ): Promise; /** * Adds an API to the specified Gateway. @@ -64,7 +64,7 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiCreateOrUpdateOptionalParams + options?: GatewayApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified Gateway. @@ -80,6 +80,6 @@ export interface GatewayApi { serviceName: string, gatewayId: string, apiId: string, - options?: GatewayApiDeleteOptionalParams + options?: GatewayApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 8295474134eb..7f809b4acaed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -16,7 +16,7 @@ import { GatewayCertificateAuthorityGetResponse, GatewayCertificateAuthorityCreateOrUpdateOptionalParams, GatewayCertificateAuthorityCreateOrUpdateResponse, - GatewayCertificateAuthorityDeleteOptionalParams + GatewayCertificateAuthorityDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayCertificateAuthority { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayCertificateAuthorityListByServiceOptionalParams + options?: GatewayCertificateAuthorityListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. @@ -51,7 +51,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetEntityTagOptionalParams + options?: GatewayCertificateAuthorityGetEntityTagOptionalParams, ): Promise; /** * Get assigned Gateway Certificate Authority details. @@ -68,7 +68,7 @@ export interface GatewayCertificateAuthority { serviceName: string, gatewayId: string, certificateId: string, - options?: GatewayCertificateAuthorityGetOptionalParams + options?: GatewayCertificateAuthorityGetOptionalParams, ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. @@ -87,7 +87,7 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, parameters: GatewayCertificateAuthorityContract, - options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams + options?: GatewayCertificateAuthorityCreateOrUpdateOptionalParams, ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. @@ -107,6 +107,6 @@ export interface GatewayCertificateAuthority { gatewayId: string, certificateId: string, ifMatch: string, - options?: GatewayCertificateAuthorityDeleteOptionalParams + options?: GatewayCertificateAuthorityDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index 51859ce26a5e..efdb121fa283 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -16,7 +16,7 @@ import { GatewayHostnameConfigurationGetResponse, GatewayHostnameConfigurationCreateOrUpdateOptionalParams, GatewayHostnameConfigurationCreateOrUpdateResponse, - GatewayHostnameConfigurationDeleteOptionalParams + GatewayHostnameConfigurationDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GatewayHostnameConfiguration { resourceGroupName: string, serviceName: string, gatewayId: string, - options?: GatewayHostnameConfigurationListByServiceOptionalParams + options?: GatewayHostnameConfigurationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway @@ -52,7 +52,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetEntityTagOptionalParams + options?: GatewayHostnameConfigurationGetEntityTagOptionalParams, ): Promise; /** * Get details of a hostname configuration @@ -69,7 +69,7 @@ export interface GatewayHostnameConfiguration { serviceName: string, gatewayId: string, hcId: string, - options?: GatewayHostnameConfigurationGetOptionalParams + options?: GatewayHostnameConfigurationGetOptionalParams, ): Promise; /** * Creates of updates hostname configuration for a Gateway. @@ -88,7 +88,7 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, parameters: GatewayHostnameConfigurationContract, - options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams + options?: GatewayHostnameConfigurationCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. @@ -108,6 +108,6 @@ export interface GatewayHostnameConfiguration { gatewayId: string, hcId: string, ifMatch: string, - options?: GatewayHostnameConfigurationDeleteOptionalParams + options?: GatewayHostnameConfigurationDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index a41c3a8d9396..511e5515ecd0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -17,7 +17,7 @@ import { GlobalSchemaGetResponse, GlobalSchemaCreateOrUpdateOptionalParams, GlobalSchemaCreateOrUpdateResponse, - GlobalSchemaDeleteOptionalParams + GlobalSchemaDeleteOptionalParams, } from "../models"; /// @@ -32,7 +32,7 @@ export interface GlobalSchema { listByService( resourceGroupName: string, serviceName: string, - options?: GlobalSchemaListByServiceOptionalParams + options?: GlobalSchemaListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. @@ -45,7 +45,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetEntityTagOptionalParams + options?: GlobalSchemaGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Schema specified by its identifier. @@ -58,7 +58,7 @@ export interface GlobalSchema { resourceGroupName: string, serviceName: string, schemaId: string, - options?: GlobalSchemaGetOptionalParams + options?: GlobalSchemaGetOptionalParams, ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. @@ -73,7 +73,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -93,7 +93,7 @@ export interface GlobalSchema { serviceName: string, schemaId: string, parameters: GlobalSchemaContract, - options?: GlobalSchemaCreateOrUpdateOptionalParams + options?: GlobalSchemaCreateOrUpdateOptionalParams, ): Promise; /** * Deletes specific Schema. @@ -109,6 +109,6 @@ export interface GlobalSchema { serviceName: string, schemaId: string, ifMatch: string, - options?: GlobalSchemaDeleteOptionalParams + options?: GlobalSchemaDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts index a26be7a75349..c8073f73a737 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts @@ -19,7 +19,7 @@ import { ResolverUpdateContract, GraphQLApiResolverUpdateOptionalParams, GraphQLApiResolverUpdateResponse, - GraphQLApiResolverDeleteOptionalParams + GraphQLApiResolverDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GraphQLApiResolver { resourceGroupName: string, serviceName: string, apiId: string, - options?: GraphQLApiResolverListByApiOptionalParams + options?: GraphQLApiResolverListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. @@ -54,7 +54,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetEntityTagOptionalParams + options?: GraphQLApiResolverGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the GraphQL API Resolver specified by its identifier. @@ -71,7 +71,7 @@ export interface GraphQLApiResolver { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverGetOptionalParams + options?: GraphQLApiResolverGetOptionalParams, ): Promise; /** * Creates a new resolver in the GraphQL API or updates an existing one. @@ -90,7 +90,7 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, parameters: ResolverContract, - options?: GraphQLApiResolverCreateOrUpdateOptionalParams + options?: GraphQLApiResolverCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the resolver in the GraphQL API specified by its identifier. @@ -112,7 +112,7 @@ export interface GraphQLApiResolver { resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, - options?: GraphQLApiResolverUpdateOptionalParams + options?: GraphQLApiResolverUpdateOptionalParams, ): Promise; /** * Deletes the specified resolver in the GraphQL API. @@ -132,6 +132,6 @@ export interface GraphQLApiResolver { apiId: string, resolverId: string, ifMatch: string, - options?: GraphQLApiResolverDeleteOptionalParams + options?: GraphQLApiResolverDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts index d2bba1d665a9..23c4f07a637b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts @@ -17,7 +17,7 @@ import { GraphQLApiResolverPolicyGetResponse, GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, GraphQLApiResolverPolicyCreateOrUpdateResponse, - GraphQLApiResolverPolicyDeleteOptionalParams + GraphQLApiResolverPolicyDeleteOptionalParams, } from "../models"; /// @@ -38,7 +38,7 @@ export interface GraphQLApiResolverPolicy { serviceName: string, apiId: string, resolverId: string, - options?: GraphQLApiResolverPolicyListByResolverOptionalParams + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. @@ -57,7 +57,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the GraphQL API Resolver level. @@ -76,7 +76,7 @@ export interface GraphQLApiResolverPolicy { apiId: string, resolverId: string, policyId: PolicyIdName, - options?: GraphQLApiResolverPolicyGetOptionalParams + options?: GraphQLApiResolverPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the GraphQL API Resolver level. @@ -97,7 +97,7 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the GraphQL Api Resolver. @@ -119,6 +119,6 @@ export interface GraphQLApiResolverPolicy { resolverId: string, policyId: PolicyIdName, ifMatch: string, - options?: GraphQLApiResolverPolicyDeleteOptionalParams + options?: GraphQLApiResolverPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index 2be3ae28bb90..6297f6f8ca32 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -20,7 +20,7 @@ import { GroupUpdateParameters, GroupUpdateOptionalParams, GroupUpdateResponse, - GroupDeleteOptionalParams + GroupDeleteOptionalParams, } from "../models"; /// @@ -35,7 +35,7 @@ export interface Group { listByService( resourceGroupName: string, serviceName: string, - options?: GroupListByServiceOptionalParams + options?: GroupListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. @@ -48,7 +48,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetEntityTagOptionalParams + options?: GroupGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the group specified by its identifier. @@ -61,7 +61,7 @@ export interface Group { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupGetOptionalParams + options?: GroupGetOptionalParams, ): Promise; /** * Creates or Updates a group. @@ -76,7 +76,7 @@ export interface Group { serviceName: string, groupId: string, parameters: GroupCreateParameters, - options?: GroupCreateOrUpdateOptionalParams + options?: GroupCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the group specified by its identifier. @@ -94,7 +94,7 @@ export interface Group { groupId: string, ifMatch: string, parameters: GroupUpdateParameters, - options?: GroupUpdateOptionalParams + options?: GroupUpdateOptionalParams, ): Promise; /** * Deletes specific group of the API Management service instance. @@ -110,6 +110,6 @@ export interface Group { serviceName: string, groupId: string, ifMatch: string, - options?: GroupDeleteOptionalParams + options?: GroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 3eb645744d60..162629423d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -14,7 +14,7 @@ import { GroupUserCheckEntityExistsResponse, GroupUserCreateOptionalParams, GroupUserCreateResponse, - GroupUserDeleteOptionalParams + GroupUserDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface GroupUser { resourceGroupName: string, serviceName: string, groupId: string, - options?: GroupUserListOptionalParams + options?: GroupUserListOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. @@ -46,7 +46,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCheckEntityExistsOptionalParams + options?: GroupUserCheckEntityExistsOptionalParams, ): Promise; /** * Add existing user to existing group @@ -61,7 +61,7 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserCreateOptionalParams + options?: GroupUserCreateOptionalParams, ): Promise; /** * Remove existing user from existing group. @@ -76,6 +76,6 @@ export interface GroupUser { serviceName: string, groupId: string, userId: string, - options?: GroupUserDeleteOptionalParams + options?: GroupUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index c5317c014fbb..9ba22c9c2ddd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -23,7 +23,7 @@ import { IdentityProviderUpdateResponse, IdentityProviderDeleteOptionalParams, IdentityProviderListSecretsOptionalParams, - IdentityProviderListSecretsResponse + IdentityProviderListSecretsResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface IdentityProvider { listByService( resourceGroupName: string, serviceName: string, - options?: IdentityProviderListByServiceOptionalParams + options?: IdentityProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. @@ -51,7 +51,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetEntityTagOptionalParams + options?: IdentityProviderGetEntityTagOptionalParams, ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. @@ -64,7 +64,7 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderGetOptionalParams + options?: IdentityProviderGetOptionalParams, ): Promise; /** * Creates or Updates the IdentityProvider configuration. @@ -79,7 +79,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, parameters: IdentityProviderCreateContract, - options?: IdentityProviderCreateOrUpdateOptionalParams + options?: IdentityProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing IdentityProvider configuration. @@ -97,7 +97,7 @@ export interface IdentityProvider { identityProviderName: IdentityProviderType, ifMatch: string, parameters: IdentityProviderUpdateParameters, - options?: IdentityProviderUpdateOptionalParams + options?: IdentityProviderUpdateOptionalParams, ): Promise; /** * Deletes the specified identity provider configuration. @@ -113,7 +113,7 @@ export interface IdentityProvider { serviceName: string, identityProviderName: IdentityProviderType, ifMatch: string, - options?: IdentityProviderDeleteOptionalParams + options?: IdentityProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the Identity Provider. @@ -126,6 +126,6 @@ export interface IdentityProvider { resourceGroupName: string, serviceName: string, identityProviderName: IdentityProviderType, - options?: IdentityProviderListSecretsOptionalParams + options?: IdentityProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 83434e88bcd2..736526b70087 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -6,6 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./allPolicies"; +export * from "./apiManagementGateway"; +export * from "./apiManagementGatewaySkus"; export * from "./api"; export * from "./apiRevision"; export * from "./apiRelease"; @@ -27,11 +30,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,11 +45,13 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; export * from "./gatewayApi"; export * from "./gatewayCertificateAuthority"; +export * from "./apiManagementGatewayConfigConnection"; export * from "./group"; export * from "./groupUser"; export * from "./identityProvider"; @@ -62,6 +67,8 @@ export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; export * from "./policyFragment"; +export * from "./policyRestriction"; +export * from "./policyRestrictionValidations"; export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; @@ -76,6 +83,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +94,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +105,40 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspaceBackend"; +export * from "./workspaceCertificate"; +export * from "./workspaceDiagnostic"; +export * from "./workspaceApiDiagnostic"; +export * from "./workspaceLogger"; +export * from "./apiManagementWorkspaceLinks"; +export * from "./apiManagementWorkspaceLink"; +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"; +export * from "./operationStatus"; +export * from "./operationsResults"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts index 9b26a41c56f2..d4370f79dbb0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -11,7 +11,7 @@ import { IssueContract, IssueListByServiceOptionalParams, IssueGetOptionalParams, - IssueGetResponse + IssueGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface Issue { listByService( resourceGroupName: string, serviceName: string, - options?: IssueListByServiceOptionalParams + options?: IssueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets API Management issue details @@ -39,6 +39,6 @@ export interface Issue { resourceGroupName: string, serviceName: string, issueId: string, - options?: IssueGetOptionalParams + options?: IssueGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index 8ec31d0af0c0..a8aed0d4894f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -19,7 +19,7 @@ import { LoggerUpdateContract, LoggerUpdateOptionalParams, LoggerUpdateResponse, - LoggerDeleteOptionalParams + LoggerDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Logger { listByService( resourceGroupName: string, serviceName: string, - options?: LoggerListByServiceOptionalParams + options?: LoggerListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. @@ -47,7 +47,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetEntityTagOptionalParams + options?: LoggerGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the logger specified by its identifier. @@ -60,7 +60,7 @@ export interface Logger { resourceGroupName: string, serviceName: string, loggerId: string, - options?: LoggerGetOptionalParams + options?: LoggerGetOptionalParams, ): Promise; /** * Creates or Updates a logger. @@ -75,7 +75,7 @@ export interface Logger { serviceName: string, loggerId: string, parameters: LoggerContract, - options?: LoggerCreateOrUpdateOptionalParams + options?: LoggerCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing logger. @@ -93,7 +93,7 @@ export interface Logger { loggerId: string, ifMatch: string, parameters: LoggerUpdateContract, - options?: LoggerUpdateOptionalParams + options?: LoggerUpdateOptionalParams, ): Promise; /** * Deletes the specified logger. @@ -109,6 +109,6 @@ export interface Logger { serviceName: string, loggerId: string, ifMatch: string, - options?: LoggerDeleteOptionalParams + options?: LoggerDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index d325fdb15112..45a6ab1142de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -25,7 +25,7 @@ import { NamedValueListValueOptionalParams, NamedValueListValueResponse, NamedValueRefreshSecretOptionalParams, - NamedValueRefreshSecretResponse + NamedValueRefreshSecretResponse, } from "../models"; /// @@ -40,7 +40,7 @@ export interface NamedValue { listByService( resourceGroupName: string, serviceName: string, - options?: NamedValueListByServiceOptionalParams + options?: NamedValueListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. @@ -53,7 +53,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetEntityTagOptionalParams + options?: NamedValueGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the named value specified by its identifier. @@ -66,7 +66,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueGetOptionalParams + options?: NamedValueGetOptionalParams, ): Promise; /** * Creates or updates named value. @@ -81,7 +81,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -101,7 +101,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, - options?: NamedValueCreateOrUpdateOptionalParams + options?: NamedValueCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific named value. @@ -119,7 +119,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -142,7 +142,7 @@ export interface NamedValue { namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, - options?: NamedValueUpdateOptionalParams + options?: NamedValueUpdateOptionalParams, ): Promise; /** * Deletes specific named value from the API Management service instance. @@ -158,7 +158,7 @@ export interface NamedValue { serviceName: string, namedValueId: string, ifMatch: string, - options?: NamedValueDeleteOptionalParams + options?: NamedValueDeleteOptionalParams, ): Promise; /** * Gets the secret of the named value specified by its identifier. @@ -171,7 +171,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueListValueOptionalParams + options?: NamedValueListValueOptionalParams, ): Promise; /** * Refresh the secret of the named value specified by its identifier. @@ -184,7 +184,7 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -202,6 +202,6 @@ export interface NamedValue { resourceGroupName: string, serviceName: string, namedValueId: string, - options?: NamedValueRefreshSecretOptionalParams + options?: NamedValueRefreshSecretOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6bed7641b6b9..99089c4eb895 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -10,7 +10,7 @@ import { NetworkStatusListByServiceOptionalParams, NetworkStatusListByServiceResponse, NetworkStatusListByLocationOptionalParams, - NetworkStatusListByLocationResponse + NetworkStatusListByLocationResponse, } from "../models"; /** Interface representing a NetworkStatus. */ @@ -25,7 +25,7 @@ export interface NetworkStatus { listByService( resourceGroupName: string, serviceName: string, - options?: NetworkStatusListByServiceOptionalParams + options?: NetworkStatusListByServiceOptionalParams, ): Promise; /** * Gets the Connectivity Status to the external resources on which the Api Management service depends @@ -40,6 +40,6 @@ export interface NetworkStatus { resourceGroupName: string, serviceName: string, locationName: string, - options?: NetworkStatusListByLocationOptionalParams + options?: NetworkStatusListByLocationOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index 344725e96540..558444d21412 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -14,7 +14,7 @@ import { NotificationGetOptionalParams, NotificationGetResponse, NotificationCreateOrUpdateOptionalParams, - NotificationCreateOrUpdateResponse + NotificationCreateOrUpdateResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Notification { listByService( resourceGroupName: string, serviceName: string, - options?: NotificationListByServiceOptionalParams + options?: NotificationListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. @@ -42,7 +42,7 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationGetOptionalParams + options?: NotificationGetOptionalParams, ): Promise; /** * Create or Update API Management publisher notification. @@ -55,6 +55,6 @@ export interface Notification { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationCreateOrUpdateOptionalParams + options?: NotificationCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index 0d0742d5c743..91d6f77fe4d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -14,7 +14,7 @@ import { NotificationRecipientEmailCheckEntityExistsResponse, NotificationRecipientEmailCreateOrUpdateOptionalParams, NotificationRecipientEmailCreateOrUpdateResponse, - NotificationRecipientEmailDeleteOptionalParams + NotificationRecipientEmailDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientEmail. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientEmail { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientEmailListByNotificationOptionalParams + options?: NotificationRecipientEmailListByNotificationOptionalParams, ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCheckEntityExistsOptionalParams + options?: NotificationRecipientEmailCheckEntityExistsOptionalParams, ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailCreateOrUpdateOptionalParams + options?: NotificationRecipientEmailCreateOrUpdateOptionalParams, ): Promise; /** * Removes the email from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientEmail { serviceName: string, notificationName: NotificationName, email: string, - options?: NotificationRecipientEmailDeleteOptionalParams + options?: NotificationRecipientEmailDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 1e31f45716ba..6854f0dbee7e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -14,7 +14,7 @@ import { NotificationRecipientUserCheckEntityExistsResponse, NotificationRecipientUserCreateOrUpdateOptionalParams, NotificationRecipientUserCreateOrUpdateResponse, - NotificationRecipientUserDeleteOptionalParams + NotificationRecipientUserDeleteOptionalParams, } from "../models"; /** Interface representing a NotificationRecipientUser. */ @@ -30,7 +30,7 @@ export interface NotificationRecipientUser { resourceGroupName: string, serviceName: string, notificationName: NotificationName, - options?: NotificationRecipientUserListByNotificationOptionalParams + options?: NotificationRecipientUserListByNotificationOptionalParams, ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. @@ -45,7 +45,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCheckEntityExistsOptionalParams + options?: NotificationRecipientUserCheckEntityExistsOptionalParams, ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. @@ -60,7 +60,7 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserCreateOrUpdateOptionalParams + options?: NotificationRecipientUserCreateOrUpdateOptionalParams, ): Promise; /** * Removes the API Management user from the list of Notification. @@ -75,6 +75,6 @@ export interface NotificationRecipientUser { serviceName: string, notificationName: NotificationName, userId: string, - options?: NotificationRecipientUserDeleteOptionalParams + options?: NotificationRecipientUserDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index 580369d0e3de..f484453765fa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -21,7 +21,7 @@ import { OpenIdConnectProviderUpdateResponse, OpenIdConnectProviderDeleteOptionalParams, OpenIdConnectProviderListSecretsOptionalParams, - OpenIdConnectProviderListSecretsResponse + OpenIdConnectProviderListSecretsResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface OpenIdConnectProvider { listByService( resourceGroupName: string, serviceName: string, - options?: OpenIdConnectProviderListByServiceOptionalParams + options?: OpenIdConnectProviderListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. @@ -49,7 +49,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetEntityTagOptionalParams + options?: OpenIdConnectProviderGetEntityTagOptionalParams, ): Promise; /** * Gets specific OpenID Connect Provider without secrets. @@ -62,7 +62,7 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderGetOptionalParams + options?: OpenIdConnectProviderGetOptionalParams, ): Promise; /** * Creates or updates the OpenID Connect Provider. @@ -77,7 +77,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, parameters: OpenidConnectProviderContract, - options?: OpenIdConnectProviderCreateOrUpdateOptionalParams + options?: OpenIdConnectProviderCreateOrUpdateOptionalParams, ): Promise; /** * Updates the specific OpenID Connect Provider. @@ -95,7 +95,7 @@ export interface OpenIdConnectProvider { opid: string, ifMatch: string, parameters: OpenidConnectProviderUpdateContract, - options?: OpenIdConnectProviderUpdateOptionalParams + options?: OpenIdConnectProviderUpdateOptionalParams, ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. @@ -111,7 +111,7 @@ export interface OpenIdConnectProvider { serviceName: string, opid: string, ifMatch: string, - options?: OpenIdConnectProviderDeleteOptionalParams + options?: OpenIdConnectProviderDeleteOptionalParams, ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. @@ -124,6 +124,6 @@ export interface OpenIdConnectProvider { resourceGroupName: string, serviceName: string, opid: string, - options?: OpenIdConnectProviderListSecretsOptionalParams + options?: OpenIdConnectProviderListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index f5415a244e27..42f410721a83 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - OperationListByTagsOptionalParams + OperationListByTagsOptionalParams, } from "../models"; /// @@ -27,6 +27,6 @@ export interface OperationOperations { resourceGroupName: string, serviceName: string, apiId: string, - options?: OperationListByTagsOptionalParams + options?: OperationListByTagsOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationStatus.ts new file mode 100644 index 000000000000..26255a9068b4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationStatus.ts @@ -0,0 +1,27 @@ +/* + * 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 { + OperationStatusGetOptionalParams, + OperationStatusGetResponse, +} from "../models"; + +/** Interface representing a OperationStatus. */ +export interface OperationStatus { + /** + * Returns the current status of an async operation. + * @param location The name of the Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationStatusGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationsResults.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationsResults.ts new file mode 100644 index 000000000000..a7f4428d0d9f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationsResults.ts @@ -0,0 +1,27 @@ +/* + * 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 { + OperationsResultsGetOptionalParams, + OperationsResultsGetResponse, +} from "../models"; + +/** Interface representing a OperationsResults. */ +export interface OperationsResults { + /** + * Returns operation results for long running operations executing DELETE or PATCH on the resource. + * @param location The name of the Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index dd3d17095902..4249f9804050 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -8,7 +8,7 @@ import { OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, - OutboundNetworkDependenciesEndpointsListByServiceResponse + OutboundNetworkDependenciesEndpointsListByServiceResponse, } from "../models"; /** Interface representing a OutboundNetworkDependenciesEndpoints. */ @@ -22,6 +22,6 @@ export interface OutboundNetworkDependenciesEndpoints { listByService( resourceGroupName: string, serviceName: string, - options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + options?: OutboundNetworkDependenciesEndpointsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index 84d9f55f2198..85cde00c5990 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, PolicyListByServiceOptionalParams, - PolicyListByServiceResponse, PolicyIdName, PolicyGetEntityTagOptionalParams, PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a Policy. */ export interface Policy { /** @@ -31,8 +32,8 @@ export interface Policy { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyListByServiceOptionalParams - ): Promise; + options?: PolicyListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetEntityTagOptionalParams + options?: PolicyGetEntityTagOptionalParams, ): Promise; /** * Get the Global policy definition of the Api Management service. @@ -57,7 +58,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, policyId: PolicyIdName, - options?: PolicyGetOptionalParams + options?: PolicyGetOptionalParams, ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. @@ -72,7 +73,7 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: PolicyCreateOrUpdateOptionalParams + options?: PolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the global policy configuration of the Api Management Service. @@ -88,6 +89,6 @@ export interface Policy { serviceName: string, policyId: PolicyIdName, ifMatch: string, - options?: PolicyDeleteOptionalParams + options?: PolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 452f51ef1fdd..0b5fe45517a7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -8,7 +8,7 @@ import { PolicyDescriptionListByServiceOptionalParams, - PolicyDescriptionListByServiceResponse + PolicyDescriptionListByServiceResponse, } from "../models"; /** Interface representing a PolicyDescription. */ @@ -22,6 +22,6 @@ export interface PolicyDescription { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyDescriptionListByServiceOptionalParams + options?: PolicyDescriptionListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts index 171bfa2f20c0..4f3930a381a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -6,22 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + PolicyFragmentContract, PolicyFragmentListByServiceOptionalParams, - PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, } from "../models"; +/// /** Interface representing a PolicyFragment. */ export interface PolicyFragment { /** @@ -33,8 +34,8 @@ export interface PolicyFragment { listByService( resourceGroupName: string, serviceName: string, - options?: PolicyFragmentListByServiceOptionalParams - ): Promise; + options?: PolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of a policy fragment. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -46,7 +47,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetEntityTagOptionalParams + options?: PolicyFragmentGetEntityTagOptionalParams, ): Promise; /** * Gets a policy fragment. @@ -59,7 +60,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentGetOptionalParams + options?: PolicyFragmentGetOptionalParams, ): Promise; /** * Creates or updates a policy fragment. @@ -74,7 +75,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -94,7 +95,7 @@ export interface PolicyFragment { serviceName: string, id: string, parameters: PolicyFragmentContract, - options?: PolicyFragmentCreateOrUpdateOptionalParams + options?: PolicyFragmentCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a policy fragment. @@ -110,7 +111,7 @@ export interface PolicyFragment { serviceName: string, id: string, ifMatch: string, - options?: PolicyFragmentDeleteOptionalParams + options?: PolicyFragmentDeleteOptionalParams, ): Promise; /** * Lists policy resources that reference the policy fragment. @@ -123,6 +124,6 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, id: string, - options?: PolicyFragmentListReferencesOptionalParams + options?: PolicyFragmentListReferencesOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts new file mode 100644 index 000000000000..6d45e85cceba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestriction.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyRestrictionContract, + PolicyRestrictionListByServiceOptionalParams, + PolicyRestrictionGetEntityTagOptionalParams, + PolicyRestrictionGetEntityTagResponse, + PolicyRestrictionGetOptionalParams, + PolicyRestrictionGetResponse, + PolicyRestrictionCreateOrUpdateOptionalParams, + PolicyRestrictionCreateOrUpdateResponse, + PolicyRestrictionUpdateContract, + PolicyRestrictionUpdateOptionalParams, + PolicyRestrictionUpdateResponse, + PolicyRestrictionDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a PolicyRestriction. */ +export interface PolicyRestriction { + /** + * Gets all policy restrictions of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the policy restriction in the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy restriction of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionGetOptionalParams, + ): Promise; + /** + * Creates or updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + parameters: PolicyRestrictionContract, + options?: PolicyRestrictionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the policy restriction configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters The policy restriction to apply. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + ifMatch: string, + parameters: PolicyRestrictionUpdateContract, + options?: PolicyRestrictionUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy restriction configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param policyRestrictionId Policy restrictions after an entity level + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + policyRestrictionId: string, + options?: PolicyRestrictionDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts new file mode 100644 index 000000000000..caef535b7353 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyRestrictionValidations.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyRestrictionValidationsByServiceOptionalParams, + PolicyRestrictionValidationsByServiceResponse, +} from "../models"; + +/** Interface representing a PolicyRestrictionValidations. */ +export interface PolicyRestrictionValidations { + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + PolicyRestrictionValidationsByServiceResponse + > + >; + /** + * Validate all policies of API Management services. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginByServiceAndWait( + resourceGroupName: string, + serviceName: string, + options?: PolicyRestrictionValidationsByServiceOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts index d32c7d0eb75b..9787440b6ed4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PortalConfigContract, PortalConfigListByServiceOptionalParams, - PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, } from "../models"; +/// /** Interface representing a PortalConfig. */ export interface PortalConfig { /** @@ -31,8 +32,8 @@ export interface PortalConfig { listByService( resourceGroupName: string, serviceName: string, - options?: PortalConfigListByServiceOptionalParams - ): Promise; + options?: PortalConfigListByServiceOptionalParams, + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the developer portal configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,7 +45,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetEntityTagOptionalParams + options?: PortalConfigGetEntityTagOptionalParams, ): Promise; /** * Get the developer portal configuration. @@ -57,7 +58,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, portalConfigId: string, - options?: PortalConfigGetOptionalParams + options?: PortalConfigGetOptionalParams, ): Promise; /** * Update the developer portal configuration. @@ -75,7 +76,7 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigUpdateOptionalParams + options?: PortalConfigUpdateOptionalParams, ): Promise; /** * Create or update the developer portal configuration. @@ -93,6 +94,6 @@ export interface PortalConfig { portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, - options?: PortalConfigCreateOrUpdateOptionalParams + options?: PortalConfigCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index e0f92866e5f3..af64ab4c4332 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -18,7 +18,7 @@ import { PortalRevisionCreateOrUpdateOptionalParams, PortalRevisionCreateOrUpdateResponse, PortalRevisionUpdateOptionalParams, - PortalRevisionUpdateResponse + PortalRevisionUpdateResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface PortalRevision { listByService( resourceGroupName: string, serviceName: string, - options?: PortalRevisionListByServiceOptionalParams + options?: PortalRevisionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. @@ -47,7 +47,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetEntityTagOptionalParams + options?: PortalRevisionGetEntityTagOptionalParams, ): Promise; /** * Gets the developer portal's revision specified by its identifier. @@ -61,7 +61,7 @@ export interface PortalRevision { resourceGroupName: string, serviceName: string, portalRevisionId: string, - options?: PortalRevisionGetOptionalParams + options?: PortalRevisionGetOptionalParams, ): Promise; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` @@ -78,7 +78,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -100,7 +100,7 @@ export interface PortalRevision { serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, - options?: PortalRevisionCreateOrUpdateOptionalParams + options?: PortalRevisionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the description of specified portal revision or makes it current. @@ -119,7 +119,7 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -143,6 +143,6 @@ export interface PortalRevision { portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, - options?: PortalRevisionUpdateOptionalParams + options?: PortalRevisionUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7ce1b08a936..d1147416363b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -8,7 +8,7 @@ import { PortalSettingsListByServiceOptionalParams, - PortalSettingsListByServiceResponse + PortalSettingsListByServiceResponse, } from "../models"; /** Interface representing a PortalSettings. */ @@ -22,6 +22,6 @@ export interface PortalSettings { listByService( resourceGroupName: string, serviceName: string, - options?: PortalSettingsListByServiceOptionalParams + options?: PortalSettingsListByServiceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index b6f6c5b9b32b..edd3980bd196 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -20,7 +20,7 @@ import { PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, PrivateEndpointConnectionListPrivateLinkResourcesResponse, PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, - PrivateEndpointConnectionGetPrivateLinkResourceResponse + PrivateEndpointConnectionGetPrivateLinkResourceResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface PrivateEndpointConnectionOperations { listByService( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListByServiceOptionalParams + options?: PrivateEndpointConnectionListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. @@ -48,7 +48,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetByNameOptionalParams + options?: PrivateEndpointConnectionGetByNameOptionalParams, ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. @@ -63,7 +63,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, - options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams + options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified Private Endpoint Connection. @@ -96,7 +96,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. @@ -109,7 +109,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; /** * Gets the private link resources @@ -120,7 +120,7 @@ export interface PrivateEndpointConnectionOperations { listPrivateLinkResources( resourceGroupName: string, serviceName: string, - options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams + options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams, ): Promise; /** * Gets the private link resources @@ -133,6 +133,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, - options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams + options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index f6a72fe292f0..f5cb6d940fd1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -21,7 +21,7 @@ import { ProductUpdateParameters, ProductUpdateOptionalParams, ProductUpdateResponse, - ProductDeleteOptionalParams + ProductDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Product { listByService( resourceGroupName: string, serviceName: string, - options?: ProductListByServiceOptionalParams + options?: ProductListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. @@ -47,7 +47,7 @@ export interface Product { listByTags( resourceGroupName: string, serviceName: string, - options?: ProductListByTagsOptionalParams + options?: ProductListByTagsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. @@ -60,7 +60,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetEntityTagOptionalParams + options?: ProductGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the product specified by its identifier. @@ -73,7 +73,7 @@ export interface Product { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGetOptionalParams + options?: ProductGetOptionalParams, ): Promise; /** * Creates or Updates a product. @@ -88,7 +88,7 @@ export interface Product { serviceName: string, productId: string, parameters: ProductContract, - options?: ProductCreateOrUpdateOptionalParams + options?: ProductCreateOrUpdateOptionalParams, ): Promise; /** * Update existing product details. @@ -106,7 +106,7 @@ export interface Product { productId: string, ifMatch: string, parameters: ProductUpdateParameters, - options?: ProductUpdateOptionalParams + options?: ProductUpdateOptionalParams, ): Promise; /** * Delete product. @@ -122,6 +122,6 @@ export interface Product { serviceName: string, productId: string, ifMatch: string, - options?: ProductDeleteOptionalParams + options?: ProductDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 7051be981009..927b4e6cf567 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -14,7 +14,7 @@ import { ProductApiCheckEntityExistsResponse, ProductApiCreateOrUpdateOptionalParams, ProductApiCreateOrUpdateResponse, - ProductApiDeleteOptionalParams + ProductApiDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductApi { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductApiListByProductOptionalParams + options?: ProductApiListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. @@ -47,7 +47,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCheckEntityExistsOptionalParams + options?: ProductApiCheckEntityExistsOptionalParams, ): Promise; /** * Adds an API to the specified product. @@ -63,7 +63,7 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiCreateOrUpdateOptionalParams + options?: ProductApiCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the specified API from the specified product. @@ -79,6 +79,6 @@ export interface ProductApi { serviceName: string, productId: string, apiId: string, - options?: ProductApiDeleteOptionalParams + options?: ProductApiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts new file mode 100644 index 000000000000..2b6609c3e718 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductApiLink. */ +export interface ProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts index e44872094a3d..b884dd2ad404 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -14,7 +14,7 @@ import { ProductGroupCheckEntityExistsResponse, ProductGroupCreateOrUpdateOptionalParams, ProductGroupCreateOrUpdateResponse, - ProductGroupDeleteOptionalParams + ProductGroupDeleteOptionalParams, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ProductGroup { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductGroupListByProductOptionalParams + options?: ProductGroupListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. @@ -46,7 +46,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCheckEntityExistsOptionalParams + options?: ProductGroupCheckEntityExistsOptionalParams, ): Promise; /** * Adds the association between the specified developer group with the specified product. @@ -61,7 +61,7 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupCreateOrUpdateOptionalParams + options?: ProductGroupCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the association between the specified group and product. @@ -76,6 +76,6 @@ export interface ProductGroup { serviceName: string, productId: string, groupId: string, - options?: ProductGroupDeleteOptionalParams + options?: ProductGroupDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts new file mode 100644 index 000000000000..0030dd1e8641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a ProductGroupLink. */ +export interface ProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 9f08f040cfb3..a16e2fd5a2d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, ProductPolicyListByProductOptionalParams, - ProductPolicyListByProductResponse, PolicyIdName, ProductPolicyGetEntityTagOptionalParams, ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, } from "../models"; +/// /** Interface representing a ProductPolicy. */ export interface ProductPolicy { /** @@ -33,8 +34,8 @@ export interface ProductPolicy { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductPolicyListByProductOptionalParams - ): Promise; + options?: ProductPolicyListByProductOptionalParams, + ): PagedAsyncIterableIterator; /** * Get the ETag of the policy configuration at the Product level. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -48,7 +49,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetEntityTagOptionalParams + options?: ProductPolicyGetEntityTagOptionalParams, ): Promise; /** * Get the policy configuration at the Product level. @@ -63,7 +64,7 @@ export interface ProductPolicy { serviceName: string, productId: string, policyId: PolicyIdName, - options?: ProductPolicyGetOptionalParams + options?: ProductPolicyGetOptionalParams, ): Promise; /** * Creates or updates policy configuration for the Product. @@ -80,7 +81,7 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, parameters: PolicyContract, - options?: ProductPolicyCreateOrUpdateOptionalParams + options?: ProductPolicyCreateOrUpdateOptionalParams, ): Promise; /** * Deletes the policy configuration at the Product. @@ -98,6 +99,6 @@ export interface ProductPolicy { productId: string, policyId: PolicyIdName, ifMatch: string, - options?: ProductPolicyDeleteOptionalParams + options?: ProductPolicyDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 804f5bf882b7..3a0aa60bf2af 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SubscriptionContract, - ProductSubscriptionsListOptionalParams + ProductSubscriptionsListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ProductSubscriptions { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductSubscriptionsListOptionalParams + options?: ProductSubscriptionsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts index 540bdf5fa04a..d57a2a1bbb6a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -17,7 +17,7 @@ import { WikiUpdateContract, ProductWikiUpdateOptionalParams, ProductWikiUpdateResponse, - ProductWikiDeleteOptionalParams + ProductWikiDeleteOptionalParams, } from "../models"; /** Interface representing a ProductWiki. */ @@ -33,7 +33,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetEntityTagOptionalParams + options?: ProductWikiGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the Wiki for a Product specified by its identifier. @@ -46,7 +46,7 @@ export interface ProductWiki { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikiGetOptionalParams + options?: ProductWikiGetOptionalParams, ): Promise; /** * Creates a new Wiki for a Product or updates an existing one. @@ -61,7 +61,7 @@ export interface ProductWiki { serviceName: string, productId: string, parameters: WikiContract, - options?: ProductWikiCreateOrUpdateOptionalParams + options?: ProductWikiCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the Wiki for a Product specified by its identifier. @@ -79,7 +79,7 @@ export interface ProductWiki { productId: string, ifMatch: string, parameters: WikiUpdateContract, - options?: ProductWikiUpdateOptionalParams + options?: ProductWikiUpdateOptionalParams, ): Promise; /** * Deletes the specified Wiki from a Product. @@ -95,6 +95,6 @@ export interface ProductWiki { serviceName: string, productId: string, ifMatch: string, - options?: ProductWikiDeleteOptionalParams + options?: ProductWikiDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts index 878251c2a6a7..2020077c40db 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -23,6 +23,6 @@ export interface ProductWikis { resourceGroupName: string, serviceName: string, productId: string, - options?: ProductWikisListOptionalParams + options?: ProductWikisListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 8b06db3207dd..f46d280c79c5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -11,7 +11,7 @@ import { QuotaByCounterKeysListByServiceResponse, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams, - QuotaByCounterKeysUpdateResponse + QuotaByCounterKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByCounterKeys. */ @@ -31,7 +31,7 @@ export interface QuotaByCounterKeys { resourceGroupName: string, serviceName: string, quotaCounterKey: string, - options?: QuotaByCounterKeysListByServiceOptionalParams + options?: QuotaByCounterKeysListByServiceOptionalParams, ): Promise; /** * Updates all the quota counter values specified with the existing quota counter key to a value in the @@ -50,6 +50,6 @@ export interface QuotaByCounterKeys { serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByCounterKeysUpdateOptionalParams + options?: QuotaByCounterKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index 49641b09add3..10cce3ed5503 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -11,7 +11,7 @@ import { QuotaByPeriodKeysGetResponse, QuotaCounterValueUpdateContract, QuotaByPeriodKeysUpdateOptionalParams, - QuotaByPeriodKeysUpdateResponse + QuotaByPeriodKeysUpdateResponse, } from "../models"; /** Interface representing a QuotaByPeriodKeys. */ @@ -33,7 +33,7 @@ export interface QuotaByPeriodKeys { serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, - options?: QuotaByPeriodKeysGetOptionalParams + options?: QuotaByPeriodKeysGetOptionalParams, ): Promise; /** * Updates an existing quota counter value in the specified service instance. @@ -53,6 +53,6 @@ export interface QuotaByPeriodKeys { quotaCounterKey: string, quotaPeriodKey: string, parameters: QuotaCounterValueUpdateContract, - options?: QuotaByPeriodKeysUpdateOptionalParams + options?: QuotaByPeriodKeysUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index b65177a34f8c..5b89ca95f8f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -21,6 +21,6 @@ export interface Region { listByService( resourceGroupName: string, serviceName: string, - options?: RegionListByServiceOptionalParams + options?: RegionListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 0069ea94bbfc..6b5c2d05fda6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -17,7 +17,7 @@ import { ReportsListBySubscriptionOptionalParams, ReportsListByTimeOptionalParams, RequestReportRecordContract, - ReportsListByRequestOptionalParams + ReportsListByRequestOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByApiOptionalParams + options?: ReportsListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by User. @@ -59,7 +59,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByUserOptionalParams + options?: ReportsListByUserOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. @@ -83,7 +83,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByOperationOptionalParams + options?: ReportsListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Product. @@ -107,7 +107,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByProductOptionalParams + options?: ReportsListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by geography. @@ -131,7 +131,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByGeoOptionalParams + options?: ReportsListByGeoOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by subscription. @@ -155,7 +155,7 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListBySubscriptionOptionalParams + options?: ReportsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Time. @@ -183,7 +183,7 @@ export interface Reports { serviceName: string, filter: string, interval: string, - options?: ReportsListByTimeOptionalParams + options?: ReportsListByTimeOptionalParams, ): PagedAsyncIterableIterator; /** * Lists report records by Request. @@ -200,6 +200,6 @@ export interface Reports { resourceGroupName: string, serviceName: string, filter: string, - options?: ReportsListByRequestOptionalParams + options?: ReportsListByRequestOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 1c4b94321adb..66fb7549eac4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -14,7 +14,7 @@ import { PortalSigninSettings, SignInSettingsUpdateOptionalParams, SignInSettingsCreateOrUpdateOptionalParams, - SignInSettingsCreateOrUpdateResponse + SignInSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignInSettings. */ @@ -28,7 +28,7 @@ export interface SignInSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetEntityTagOptionalParams + options?: SignInSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign In Settings for the Portal @@ -39,7 +39,7 @@ export interface SignInSettings { get( resourceGroupName: string, serviceName: string, - options?: SignInSettingsGetOptionalParams + options?: SignInSettingsGetOptionalParams, ): Promise; /** * Update Sign-In settings. @@ -55,7 +55,7 @@ export interface SignInSettings { serviceName: string, ifMatch: string, parameters: PortalSigninSettings, - options?: SignInSettingsUpdateOptionalParams + options?: SignInSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-In settings. @@ -68,6 +68,6 @@ export interface SignInSettings { resourceGroupName: string, serviceName: string, parameters: PortalSigninSettings, - options?: SignInSettingsCreateOrUpdateOptionalParams + options?: SignInSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 1dbcacd372e8..03b31521f3bc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -14,7 +14,7 @@ import { PortalSignupSettings, SignUpSettingsUpdateOptionalParams, SignUpSettingsCreateOrUpdateOptionalParams, - SignUpSettingsCreateOrUpdateResponse + SignUpSettingsCreateOrUpdateResponse, } from "../models"; /** Interface representing a SignUpSettings. */ @@ -28,7 +28,7 @@ export interface SignUpSettings { getEntityTag( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetEntityTagOptionalParams + options?: SignUpSettingsGetEntityTagOptionalParams, ): Promise; /** * Get Sign Up Settings for the Portal @@ -39,7 +39,7 @@ export interface SignUpSettings { get( resourceGroupName: string, serviceName: string, - options?: SignUpSettingsGetOptionalParams + options?: SignUpSettingsGetOptionalParams, ): Promise; /** * Update Sign-Up settings. @@ -55,7 +55,7 @@ export interface SignUpSettings { serviceName: string, ifMatch: string, parameters: PortalSignupSettings, - options?: SignUpSettingsUpdateOptionalParams + options?: SignUpSettingsUpdateOptionalParams, ): Promise; /** * Create or Update Sign-Up settings. @@ -68,6 +68,6 @@ export interface SignUpSettings { resourceGroupName: string, serviceName: string, parameters: PortalSignupSettings, - options?: SignUpSettingsCreateOrUpdateOptionalParams + options?: SignUpSettingsCreateOrUpdateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 74d50388f102..08c67a4ea83b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -24,7 +24,7 @@ import { SubscriptionRegeneratePrimaryKeyOptionalParams, SubscriptionRegenerateSecondaryKeyOptionalParams, SubscriptionListSecretsOptionalParams, - SubscriptionListSecretsResponse + SubscriptionListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface Subscription { list( resourceGroupName: string, serviceName: string, - options?: SubscriptionListOptionalParams + options?: SubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. @@ -53,7 +53,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetEntityTagOptionalParams + options?: SubscriptionGetEntityTagOptionalParams, ): Promise; /** * Gets the specified Subscription entity. @@ -67,7 +67,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionGetOptionalParams + options?: SubscriptionGetOptionalParams, ): Promise; /** * Creates or updates the subscription of specified user to the specified product. @@ -83,7 +83,7 @@ export interface Subscription { serviceName: string, sid: string, parameters: SubscriptionCreateParameters, - options?: SubscriptionCreateOrUpdateOptionalParams + options?: SubscriptionCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of a subscription specified by its identifier. @@ -102,7 +102,7 @@ export interface Subscription { sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, - options?: SubscriptionUpdateOptionalParams + options?: SubscriptionUpdateOptionalParams, ): Promise; /** * Deletes the specified subscription. @@ -119,7 +119,7 @@ export interface Subscription { serviceName: string, sid: string, ifMatch: string, - options?: SubscriptionDeleteOptionalParams + options?: SubscriptionDeleteOptionalParams, ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. @@ -133,7 +133,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegeneratePrimaryKeyOptionalParams + options?: SubscriptionRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. @@ -147,7 +147,7 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionRegenerateSecondaryKeyOptionalParams + options?: SubscriptionRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Gets the specified Subscription keys. @@ -161,6 +161,6 @@ export interface Subscription { resourceGroupName: string, serviceName: string, sid: string, - options?: SubscriptionListSecretsOptionalParams + options?: SubscriptionListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index dca054554a45..c3f922cf1ea7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -43,7 +43,7 @@ import { TagCreateOrUpdateResponse, TagUpdateOptionalParams, TagUpdateResponse, - TagDeleteOptionalParams + TagDeleteOptionalParams, } from "../models"; /// @@ -64,7 +64,7 @@ export interface Tag { serviceName: string, apiId: string, operationId: string, - options?: TagListByOperationOptionalParams + options?: TagListByOperationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. @@ -78,7 +78,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, apiId: string, - options?: TagListByApiOptionalParams + options?: TagListByApiOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. @@ -91,7 +91,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, productId: string, - options?: TagListByProductOptionalParams + options?: TagListByProductOptionalParams, ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. @@ -102,7 +102,7 @@ export interface Tag { listByService( resourceGroupName: string, serviceName: string, - options?: TagListByServiceOptionalParams + options?: TagListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. @@ -121,7 +121,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetEntityStateByOperationOptionalParams + options?: TagGetEntityStateByOperationOptionalParams, ): Promise; /** * Get tag associated with the Operation. @@ -140,7 +140,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagGetByOperationOptionalParams + options?: TagGetByOperationOptionalParams, ): Promise; /** * Assign tag to the Operation. @@ -159,7 +159,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagAssignToOperationOptionalParams + options?: TagAssignToOperationOptionalParams, ): Promise; /** * Detach the tag from the Operation. @@ -178,7 +178,7 @@ export interface Tag { apiId: string, operationId: string, tagId: string, - options?: TagDetachFromOperationOptionalParams + options?: TagDetachFromOperationOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -194,7 +194,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetEntityStateByApiOptionalParams + options?: TagGetEntityStateByApiOptionalParams, ): Promise; /** * Get tag associated with the API. @@ -210,7 +210,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagGetByApiOptionalParams + options?: TagGetByApiOptionalParams, ): Promise; /** * Assign tag to the Api. @@ -226,7 +226,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagAssignToApiOptionalParams + options?: TagAssignToApiOptionalParams, ): Promise; /** * Detach the tag from the Api. @@ -242,7 +242,7 @@ export interface Tag { serviceName: string, apiId: string, tagId: string, - options?: TagDetachFromApiOptionalParams + options?: TagDetachFromApiOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -257,7 +257,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetEntityStateByProductOptionalParams + options?: TagGetEntityStateByProductOptionalParams, ): Promise; /** * Get tag associated with the Product. @@ -272,7 +272,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagGetByProductOptionalParams + options?: TagGetByProductOptionalParams, ): Promise; /** * Assign tag to the Product. @@ -287,7 +287,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagAssignToProductOptionalParams + options?: TagAssignToProductOptionalParams, ): Promise; /** * Detach the tag from the Product. @@ -302,7 +302,7 @@ export interface Tag { serviceName: string, productId: string, tagId: string, - options?: TagDetachFromProductOptionalParams + options?: TagDetachFromProductOptionalParams, ): Promise; /** * Gets the entity state version of the tag specified by its identifier. @@ -315,7 +315,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetEntityStateOptionalParams + options?: TagGetEntityStateOptionalParams, ): Promise; /** * Gets the details of the tag specified by its identifier. @@ -328,7 +328,7 @@ export interface Tag { resourceGroupName: string, serviceName: string, tagId: string, - options?: TagGetOptionalParams + options?: TagGetOptionalParams, ): Promise; /** * Creates a tag. @@ -343,7 +343,7 @@ export interface Tag { serviceName: string, tagId: string, parameters: TagCreateUpdateParameters, - options?: TagCreateOrUpdateOptionalParams + options?: TagCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the tag specified by its identifier. @@ -361,7 +361,7 @@ export interface Tag { tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, - options?: TagUpdateOptionalParams + options?: TagUpdateOptionalParams, ): Promise; /** * Deletes specific tag of the API Management service instance. @@ -377,6 +377,6 @@ export interface Tag { serviceName: string, tagId: string, ifMatch: string, - options?: TagDeleteOptionalParams + options?: TagDeleteOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts new file mode 100644 index 000000000000..0085aae40f13 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + TagApiLinkListByProductOptionalParams, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagApiLink. */ +export interface TagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts new file mode 100644 index 000000000000..021184c6709a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagOperationLink. */ +export interface TagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts new file mode 100644 index 000000000000..b30f1c54f23e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + TagProductLinkListByProductOptionalParams, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a TagProductLink. */ +export interface TagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts index 9290bd0da6f0..2445194f6d5b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TagResourceContract, - TagResourceListByServiceOptionalParams + TagResourceListByServiceOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface TagResource { listByService( resourceGroupName: string, serviceName: string, - options?: TagResourceListByServiceOptionalParams + options?: TagResourceListByServiceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 21cdd2908a90..f612f8d9683c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -24,7 +24,7 @@ import { TenantAccessRegeneratePrimaryKeyOptionalParams, TenantAccessRegenerateSecondaryKeyOptionalParams, TenantAccessListSecretsOptionalParams, - TenantAccessListSecretsResponse + TenantAccessListSecretsResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export interface TenantAccess { listByService( resourceGroupName: string, serviceName: string, - options?: TenantAccessListByServiceOptionalParams + options?: TenantAccessListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Tenant access metadata @@ -52,7 +52,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetEntityTagOptionalParams + options?: TenantAccessGetEntityTagOptionalParams, ): Promise; /** * Get tenant access information details without secrets. @@ -65,7 +65,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGetOptionalParams + options?: TenantAccessGetOptionalParams, ): Promise; /** * Update tenant access information details. @@ -83,7 +83,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationCreateParameters, - options?: TenantAccessCreateOptionalParams + options?: TenantAccessCreateOptionalParams, ): Promise; /** * Update tenant access information details. @@ -101,7 +101,7 @@ export interface TenantAccess { accessName: AccessIdName, ifMatch: string, parameters: AccessInformationUpdateParameters, - options?: TenantAccessUpdateOptionalParams + options?: TenantAccessUpdateOptionalParams, ): Promise; /** * Regenerate primary access key @@ -114,7 +114,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegeneratePrimaryKeyOptionalParams + options?: TenantAccessRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key @@ -127,7 +127,7 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessRegenerateSecondaryKeyOptionalParams + options?: TenantAccessRegenerateSecondaryKeyOptionalParams, ): Promise; /** * Get tenant access information details. @@ -140,6 +140,6 @@ export interface TenantAccess { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessListSecretsOptionalParams + options?: TenantAccessListSecretsOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index 12b13c1b73e1..60294dca17d2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -9,7 +9,7 @@ import { AccessIdName, TenantAccessGitRegeneratePrimaryKeyOptionalParams, - TenantAccessGitRegenerateSecondaryKeyOptionalParams + TenantAccessGitRegenerateSecondaryKeyOptionalParams, } from "../models"; /** Interface representing a TenantAccessGit. */ @@ -25,7 +25,7 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams + options?: TenantAccessGitRegeneratePrimaryKeyOptionalParams, ): Promise; /** * Regenerate secondary access key for GIT. @@ -38,6 +38,6 @@ export interface TenantAccessGit { resourceGroupName: string, serviceName: string, accessName: AccessIdName, - options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams + options?: TenantAccessGitRegenerateSecondaryKeyOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 81a7460fa896..ba65db3727bd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -18,7 +18,7 @@ import { TenantConfigurationValidateOptionalParams, TenantConfigurationValidateResponse, TenantConfigurationGetSyncStateOptionalParams, - TenantConfigurationGetSyncStateResponse + TenantConfigurationGetSyncStateResponse, } from "../models"; /** Interface representing a TenantConfiguration. */ @@ -37,7 +37,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -58,7 +58,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationDeployOptionalParams + options?: TenantConfigurationDeployOptionalParams, ): Promise; /** * This operation creates a commit with the current configuration snapshot to the specified branch in @@ -74,7 +74,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -95,7 +95,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, - options?: TenantConfigurationSaveOptionalParams + options?: TenantConfigurationSaveOptionalParams, ): Promise; /** * This operation validates the changes in the specified Git branch. This is a long running operation @@ -111,7 +111,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -132,7 +132,7 @@ export interface TenantConfiguration { serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, - options?: TenantConfigurationValidateOptionalParams + options?: TenantConfigurationValidateOptionalParams, ): Promise; /** * Gets the status of the most recent synchronization between the configuration database and the Git @@ -146,6 +146,6 @@ export interface TenantConfiguration { resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, - options?: TenantConfigurationGetSyncStateOptionalParams + options?: TenantConfigurationGetSyncStateOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index 4f8c4c6faa9f..b48636087514 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -12,7 +12,7 @@ import { TenantSettingsListByServiceOptionalParams, SettingsTypeName, TenantSettingsGetOptionalParams, - TenantSettingsGetResponse + TenantSettingsGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface TenantSettings { listByService( resourceGroupName: string, serviceName: string, - options?: TenantSettingsListByServiceOptionalParams + options?: TenantSettingsListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Get tenant settings. @@ -40,6 +40,6 @@ export interface TenantSettings { resourceGroupName: string, serviceName: string, settingsType: SettingsTypeName, - options?: TenantSettingsGetOptionalParams + options?: TenantSettingsGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index 0b6102704805..858bba72ea03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { UserContract, UserListByServiceOptionalParams, @@ -21,11 +22,12 @@ import { UserUpdateOptionalParams, UserUpdateResponse, UserDeleteOptionalParams, + UserDeleteResponse, UserGenerateSsoUrlOptionalParams, UserGenerateSsoUrlResponse, UserTokenParameters, UserGetSharedAccessTokenOptionalParams, - UserGetSharedAccessTokenResponse + UserGetSharedAccessTokenResponse, } from "../models"; /// @@ -40,7 +42,7 @@ export interface User { listByService( resourceGroupName: string, serviceName: string, - options?: UserListByServiceOptionalParams + options?: UserListByServiceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. @@ -53,7 +55,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetEntityTagOptionalParams + options?: UserGetEntityTagOptionalParams, ): Promise; /** * Gets the details of the user specified by its identifier. @@ -66,7 +68,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGetOptionalParams + options?: UserGetOptionalParams, ): Promise; /** * Creates or Updates a user. @@ -81,7 +83,7 @@ export interface User { serviceName: string, userId: string, parameters: UserCreateParameters, - options?: UserCreateOrUpdateOptionalParams + options?: UserCreateOrUpdateOptionalParams, ): Promise; /** * Updates the details of the user specified by its identifier. @@ -99,7 +101,7 @@ export interface User { userId: string, ifMatch: string, parameters: UserUpdateParameters, - options?: UserUpdateOptionalParams + options?: UserUpdateOptionalParams, ): Promise; /** * Deletes specific user. @@ -110,13 +112,31 @@ export interface User { * response of the GET request or it should be * for unconditional update. * @param options The options parameters. */ - delete( + beginDelete( resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, - options?: UserDeleteOptionalParams - ): Promise; + options?: UserDeleteOptionalParams, + ): Promise< + SimplePollerLike, UserDeleteResponse> + >; + /** + * Deletes specific user. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + serviceName: string, + userId: string, + ifMatch: string, + options?: UserDeleteOptionalParams, + ): Promise; /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. @@ -129,7 +149,7 @@ export interface User { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGenerateSsoUrlOptionalParams + options?: UserGenerateSsoUrlOptionalParams, ): Promise; /** * Gets the Shared Access Authorization Token for the User. @@ -144,6 +164,6 @@ export interface User { serviceName: string, userId: string, parameters: UserTokenParameters, - options?: UserGetSharedAccessTokenOptionalParams + options?: UserGetSharedAccessTokenOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 0479110f882e..706fefaeb642 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -21,6 +21,6 @@ export interface UserConfirmationPassword { resourceGroupName: string, serviceName: string, userId: string, - options?: UserConfirmationPasswordSendOptionalParams + options?: UserConfirmationPasswordSendOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index a2fbd8f792de..0f7885aa6694 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -23,6 +23,6 @@ export interface UserGroup { resourceGroupName: string, serviceName: string, userId: string, - options?: UserGroupListOptionalParams + options?: UserGroupListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1a242a6c686d..8364109a60a2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { UserIdentityContract, - UserIdentitiesListOptionalParams + UserIdentitiesListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface UserIdentities { resourceGroupName: string, serviceName: string, userId: string, - options?: UserIdentitiesListOptionalParams + options?: UserIdentitiesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 548a266d86dd..b47cd94788cc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -11,7 +11,7 @@ import { SubscriptionContract, UserSubscriptionListOptionalParams, UserSubscriptionGetOptionalParams, - UserSubscriptionGetResponse + UserSubscriptionGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface UserSubscription { resourceGroupName: string, serviceName: string, userId: string, - options?: UserSubscriptionListOptionalParams + options?: UserSubscriptionListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. @@ -44,6 +44,6 @@ export interface UserSubscription { serviceName: string, userId: string, sid: string, - options?: UserSubscriptionGetOptionalParams + options?: UserSubscriptionGetOptionalParams, ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts new file mode 100644 index 000000000000..3d50b2024a9a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + WorkspaceContract, + WorkspaceListByServiceOptionalParams, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a Workspace. */ +export interface Workspace { + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams, + ): Promise; + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts new file mode 100644 index 000000000000..531f6440d160 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts @@ -0,0 +1,165 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApiContract, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApi. */ +export interface WorkspaceApi { + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiDiagnostic.ts new file mode 100644 index 000000000000..3ea8afe64397 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiDiagnostic.ts @@ -0,0 +1,149 @@ +/* + * 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 { + DiagnosticContract, + WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + WorkspaceApiDiagnosticGetEntityTagOptionalParams, + WorkspaceApiDiagnosticGetEntityTagResponse, + WorkspaceApiDiagnosticGetOptionalParams, + WorkspaceApiDiagnosticGetResponse, + WorkspaceApiDiagnosticCreateOrUpdateOptionalParams, + WorkspaceApiDiagnosticCreateOrUpdateResponse, + DiagnosticUpdateContract, + WorkspaceApiDiagnosticUpdateOptionalParams, + WorkspaceApiDiagnosticUpdateResponse, + WorkspaceApiDiagnosticDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiDiagnostic. */ +export interface WorkspaceApiDiagnostic { + /** + * Lists all diagnostics 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. + */ + listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiDiagnosticListByWorkspaceOptionalParams, + ): 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. The name is case insensitive. + * @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 diagnosticId Diagnostic 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, + diagnosticId: string, + options?: WorkspaceApiDiagnosticGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Diagnostic 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 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 diagnosticId Diagnostic 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, + diagnosticId: string, + options?: WorkspaceApiDiagnosticGetOptionalParams, + ): Promise; + /** + * Creates a new Diagnostic 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 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 diagnosticId Diagnostic 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, + apiId: string, + diagnosticId: string, + parameters: DiagnosticContract, + options?: WorkspaceApiDiagnosticCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the Diagnostic 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 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 diagnosticId Diagnostic 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 Diagnostic Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + diagnosticId: string, + ifMatch: string, + parameters: DiagnosticUpdateContract, + options?: WorkspaceApiDiagnosticUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified Diagnostic 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 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 diagnosticId Diagnostic 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, + diagnosticId: string, + ifMatch: string, + options?: WorkspaceApiDiagnosticDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts new file mode 100644 index 000000000000..e29295e60020 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse, +} from "../models"; + +/** Interface representing a WorkspaceApiExport. */ +export interface WorkspaceApiExport { + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts new file mode 100644 index 000000000000..7f1525bdb32b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + OperationContract, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperation. */ +export interface WorkspaceApiOperation { + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams, + ): Promise; + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..eaf2688833f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperationPolicy. */ +export interface WorkspaceApiOperationPolicy { + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts new file mode 100644 index 000000000000..cf3f96418a36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiOptionalParams, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiPolicy. */ +export interface WorkspaceApiPolicy { + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts new file mode 100644 index 000000000000..836b17701932 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRelease. */ +export interface WorkspaceApiRelease { + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams, + ): Promise; + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams, + ): Promise; + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts new file mode 100644 index 000000000000..133012b77c3d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRevision. */ +export interface WorkspaceApiRevision { + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts new file mode 100644 index 000000000000..3276f1f5c9f3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiSchema. */ +export interface WorkspaceApiSchema { + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams, + ): Promise; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + >; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..d680f123b4f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceApiVersionSet. */ +export interface WorkspaceApiVersionSet { + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams, + ): Promise; + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceBackend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceBackend.ts new file mode 100644 index 000000000000..bcc58d1df426 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceBackend.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 { + BackendContract, + WorkspaceBackendListByWorkspaceOptionalParams, + WorkspaceBackendGetEntityTagOptionalParams, + WorkspaceBackendGetEntityTagResponse, + WorkspaceBackendGetOptionalParams, + WorkspaceBackendGetResponse, + WorkspaceBackendCreateOrUpdateOptionalParams, + WorkspaceBackendCreateOrUpdateResponse, + BackendUpdateParameters, + WorkspaceBackendUpdateOptionalParams, + WorkspaceBackendUpdateResponse, + WorkspaceBackendDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceBackend. */ +export interface WorkspaceBackend { + /** + * Lists a collection of backends in 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 options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceBackendListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the backend 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 backendId Identifier of the Backend entity. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + backendId: string, + options?: WorkspaceBackendGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the backend 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 backendId Identifier of the Backend entity. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + backendId: string, + options?: WorkspaceBackendGetOptionalParams, + ): Promise; + /** + * Creates or Updates a backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + parameters: BackendContract, + options?: WorkspaceBackendCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates an existing backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + ifMatch: string, + parameters: BackendUpdateParameters, + options?: WorkspaceBackendUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param backendId Identifier of the Backend entity. 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, + backendId: string, + ifMatch: string, + options?: WorkspaceBackendDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceCertificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceCertificate.ts new file mode 100644 index 000000000000..55adde910401 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceCertificate.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 { + CertificateContract, + WorkspaceCertificateListByWorkspaceOptionalParams, + WorkspaceCertificateGetEntityTagOptionalParams, + WorkspaceCertificateGetEntityTagResponse, + WorkspaceCertificateGetOptionalParams, + WorkspaceCertificateGetResponse, + CertificateCreateOrUpdateParameters, + WorkspaceCertificateCreateOrUpdateOptionalParams, + WorkspaceCertificateCreateOrUpdateResponse, + WorkspaceCertificateDeleteOptionalParams, + WorkspaceCertificateRefreshSecretOptionalParams, + WorkspaceCertificateRefreshSecretResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceCertificate. */ +export interface WorkspaceCertificate { + /** + * Lists a collection of all certificates in 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 options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceCertificateListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the certificate 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 certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the certificate 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 certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateGetOptionalParams, + ): Promise; + /** + * Creates or updates the certificate being used for authentication with the backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. 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, + certificateId: string, + parameters: CertificateCreateOrUpdateParameters, + options?: WorkspaceCertificateCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes specific certificate. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. 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, + certificateId: string, + ifMatch: string, + options?: WorkspaceCertificateDeleteOptionalParams, + ): Promise; + /** + * From KeyVault, Refresh the certificate being used for authentication with the backend. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + refreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + certificateId: string, + options?: WorkspaceCertificateRefreshSecretOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceDiagnostic.ts new file mode 100644 index 000000000000..e2ee45d6403e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceDiagnostic.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 { + DiagnosticContract, + WorkspaceDiagnosticListByWorkspaceOptionalParams, + WorkspaceDiagnosticGetEntityTagOptionalParams, + WorkspaceDiagnosticGetEntityTagResponse, + WorkspaceDiagnosticGetOptionalParams, + WorkspaceDiagnosticGetResponse, + WorkspaceDiagnosticCreateOrUpdateOptionalParams, + WorkspaceDiagnosticCreateOrUpdateResponse, + DiagnosticUpdateContract, + WorkspaceDiagnosticUpdateOptionalParams, + WorkspaceDiagnosticUpdateResponse, + WorkspaceDiagnosticDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceDiagnostic. */ +export interface WorkspaceDiagnostic { + /** + * Lists all diagnostics in 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 options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceDiagnosticListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Diagnostic 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + options?: WorkspaceDiagnosticGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Diagnostic 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + options?: WorkspaceDiagnosticGetOptionalParams, + ): Promise; + /** + * Creates a new Diagnostic 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 diagnosticId Diagnostic 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, + diagnosticId: string, + parameters: DiagnosticContract, + options?: WorkspaceDiagnosticCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the Diagnostic 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 diagnosticId Diagnostic 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 Diagnostic Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + diagnosticId: string, + ifMatch: string, + parameters: DiagnosticUpdateContract, + options?: WorkspaceDiagnosticUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified Diagnostic. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param diagnosticId Diagnostic 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, + diagnosticId: string, + ifMatch: string, + options?: WorkspaceDiagnosticDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..9d4e1493082c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGlobalSchema. */ +export interface WorkspaceGlobalSchema { + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams, + ): Promise; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts new file mode 100644 index 000000000000..4fcf68bb0d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GroupContract, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroup. */ +export interface WorkspaceGroup { + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams, + ): Promise; + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams, + ): Promise; + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts new file mode 100644 index 000000000000..4f8a67885818 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + UserContract, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceGroupUser. */ +export interface WorkspaceGroupUser { + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams, + ): Promise; + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceLogger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceLogger.ts new file mode 100644 index 000000000000..e066d886554f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceLogger.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 { + LoggerContract, + WorkspaceLoggerListByWorkspaceOptionalParams, + WorkspaceLoggerGetEntityTagOptionalParams, + WorkspaceLoggerGetEntityTagResponse, + WorkspaceLoggerGetOptionalParams, + WorkspaceLoggerGetResponse, + WorkspaceLoggerCreateOrUpdateOptionalParams, + WorkspaceLoggerCreateOrUpdateResponse, + LoggerUpdateContract, + WorkspaceLoggerUpdateOptionalParams, + WorkspaceLoggerUpdateResponse, + WorkspaceLoggerDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceLogger. */ +export interface WorkspaceLogger { + /** + * Lists a collection of loggers in 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 options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceLoggerListByWorkspaceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the logger 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 loggerId Logger identifier. Must be unique in the API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + options?: WorkspaceLoggerGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the logger 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 loggerId Logger identifier. Must be unique in the API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + options?: WorkspaceLoggerGetOptionalParams, + ): Promise; + /** + * Creates or Updates a logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + parameters: LoggerContract, + options?: WorkspaceLoggerCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates an existing logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @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 + * 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, + loggerId: string, + ifMatch: string, + parameters: LoggerUpdateContract, + options?: WorkspaceLoggerUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified logger. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @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 + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + loggerId: string, + ifMatch: string, + options?: WorkspaceLoggerDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts new file mode 100644 index 000000000000..db632db4b26b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts @@ -0,0 +1,240 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNamedValue. */ +export interface WorkspaceNamedValue { + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams, + ): Promise; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + >; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + >; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams, + ): Promise; + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams, + ): Promise; + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams, + ): Promise; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + >; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts new file mode 100644 index 000000000000..df7c4ad2515a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NotificationContract, + WorkspaceNotificationListByServiceOptionalParams, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceNotification. */ +export interface WorkspaceNotification { + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams, + ): Promise; + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..f77f15289981 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientEmail. */ +export interface WorkspaceNotificationRecipientEmail { + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + ): Promise; + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..a8f25d3cffbb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientUser. */ +export interface WorkspaceNotificationRecipientUser { + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + ): Promise; + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + ): Promise; + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + ): Promise; + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts new file mode 100644 index 000000000000..9119a194befa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspacePolicyListByApiOptionalParams, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicy. */ +export interface WorkspacePolicy { + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts new file mode 100644 index 000000000000..83f8fbf000e6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, +} from "../models"; + +/// +/** Interface representing a WorkspacePolicyFragment. */ +export interface WorkspacePolicyFragment { + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams, + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams, + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams, + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts new file mode 100644 index 000000000000..bad4997071bd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductContract, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProduct. */ +export interface WorkspaceProduct { + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams, + ): Promise; + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams, + ): Promise; + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams, + ): Promise; + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts new file mode 100644 index 000000000000..47a2eb5a2d02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductApiLink. */ +export interface WorkspaceProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..89cd940aa441 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceProductGroupLink. */ +export interface WorkspaceProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams, + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts new file mode 100644 index 000000000000..3466b9503f26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams, +} from "../models"; + +/** Interface representing a WorkspaceProductPolicy. */ +export interface WorkspaceProductPolicy { + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams, + ): Promise; + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams, + ): Promise; + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams, + ): Promise; + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts new file mode 100644 index 000000000000..d89a79dec29c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SubscriptionContract, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, +} from "../models"; + +/// +/** Interface representing a WorkspaceSubscription. */ +export interface WorkspaceSubscription { + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams, + ): Promise; + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams, + ): Promise; + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams, + ): Promise; + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + ): Promise; + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + ): Promise; + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts new file mode 100644 index 000000000000..0c3d925b8d2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagContract, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTag. */ +export interface WorkspaceTag { + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams, + ): Promise; + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams, + ): Promise; + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams, + ): Promise; + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts new file mode 100644 index 000000000000..9eb118dad062 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagApiLink. */ +export interface WorkspaceTagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams, + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..b0f2a7ef4109 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagOperationLink. */ +export interface WorkspaceTagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams, + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts new file mode 100644 index 000000000000..0e618dc525c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a WorkspaceTagProductLink. */ +export interface WorkspaceTagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams, + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts +++ b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index f92121c033f6..3e6ae96443f3 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-apimanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"